fix (rroles): Update docs and messages.
This commit is contained in:
@@ -237,7 +237,7 @@ async def cmd_reactionroles(ctx, flags):
|
|||||||
default_price: The default price of each role on this message.
|
default_price: The default price of each role on this message.
|
||||||
required_role: The role required to use these reactions roles.
|
required_role: The role required to use these reactions roles.
|
||||||
Reaction Settings::
|
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.
|
tduration: How long this role will last after being selected or bought.
|
||||||
Configuration Examples``:
|
Configuration Examples``:
|
||||||
{prefix}rroles {ctx.msg.id} --maximum 5
|
{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 a message setting: `{prefix}rroles messageid --setting value`\n"
|
||||||
"To update an emoji setting: `{prefix}rroles messageid emoji --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"
|
"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(
|
).format(
|
||||||
prefix=ctx.best_prefix,
|
prefix=ctx.best_prefix,
|
||||||
settings_table=target.settings.tabulated()
|
settings_table=target.settings.tabulated()
|
||||||
|
|||||||
@@ -191,7 +191,7 @@ class price(setting_types.Integer, ReactionSetting):
|
|||||||
_data_column = 'price'
|
_data_column = 'price'
|
||||||
|
|
||||||
display_name = "price"
|
display_name = "price"
|
||||||
desc = "Price of this reaction role."
|
desc = "Price of this reaction role (may be negative)."
|
||||||
|
|
||||||
long_desc = (
|
long_desc = (
|
||||||
"The number of coins that will be deducted from the user when this reaction is used.\n"
|
"The number of coins that will be deducted from the user when this reaction is used.\n"
|
||||||
|
|||||||
@@ -425,7 +425,7 @@ class ReactionRoleMessage:
|
|||||||
self.message_link,
|
self.message_link,
|
||||||
role.mention,
|
role.mention,
|
||||||
member.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(
|
"\nThis role will expire at <t:{:.0f}>.".format(
|
||||||
expiry.timestamp()
|
expiry.timestamp()
|
||||||
) if expiry else ''
|
) if expiry else ''
|
||||||
|
|||||||
Reference in New Issue
Block a user