fix (rroles): Update docs and messages.

This commit is contained in:
2022-01-29 03:31:00 +02:00
parent 702aa5a75a
commit 728a8a882e
3 changed files with 4 additions and 4 deletions

View File

@@ -237,7 +237,7 @@ async def cmd_reactionroles(ctx, flags):
default_price: The default price of each role on this message.
required_role: The role required to use these reactions roles.
Reaction Settings::
price: The price of this reaction role.
price: The price of this reaction role. (May be negative for a reward.)
tduration: How long this role will last after being selected or bought.
Configuration Examples``:
{prefix}rroles {ctx.msg.id} --maximum 5
@@ -915,7 +915,7 @@ async def cmd_reactionroles(ctx, flags):
"To update a message setting: `{prefix}rroles messageid --setting value`\n"
"To update an emoji setting: `{prefix}rroles messageid emoji --setting value`\n"
"See examples and more usage information with `{prefix}help rroles`.\n"
"*(!) Replace the `setting` with one of the settings on this page.*\n"
"**(!) Replace the `setting` with one of the settings on this page.**\n"
).format(
prefix=ctx.best_prefix,
settings_table=target.settings.tabulated()

View File

@@ -191,7 +191,7 @@ class price(setting_types.Integer, ReactionSetting):
_data_column = 'price'
display_name = "price"
desc = "Price of this reaction role."
desc = "Price of this reaction role (may be negative)."
long_desc = (
"The number of coins that will be deducted from the user when this reaction is used.\n"

View File

@@ -425,7 +425,7 @@ class ReactionRoleMessage:
self.message_link,
role.mention,
member.mention,
" for `{}` coins.".format(price) if price else '',
" for `{}` coins".format(price) if price else '',
"\nThis role will expire at <t:{:.0f}>.".format(
expiry.timestamp()
) if expiry else ''