Fix command descriptions
This commit is contained in:
parent
1fc0aec8f6
commit
54dd6f40a8
4 changed files with 35 additions and 8 deletions
|
@ -22,7 +22,10 @@ class RolepingCog(Scale):
|
|||
"""J.A.R.V.I.S. RolepingCog."""
|
||||
|
||||
@slash_command(
|
||||
name="roleping", sub_cmd_name="add", sub_cmd_description="Add a role to roleping"
|
||||
name="roleping",
|
||||
description="Set up warnings for pinging specific roles",
|
||||
sub_cmd_name="add",
|
||||
sub_cmd_description="Add a role to roleping",
|
||||
)
|
||||
@slash_option(name="role", description="Role to add", opt_type=OptionTypes.ROLE, required=True)
|
||||
@check(admin_or_permissions(Permissions.MANAGE_GUILD))
|
||||
|
|
|
@ -27,7 +27,10 @@ class RolegiverCog(Scale):
|
|||
self.bot = bot
|
||||
|
||||
@slash_command(
|
||||
name="rolegiver", sub_cmd_name="add", sub_cmd_description="Add a role to rolegiver"
|
||||
name="rolegiver",
|
||||
description="Allow users to choose their own roles",
|
||||
sub_cmd_name="add",
|
||||
sub_cmd_description="Add a role to rolegiver",
|
||||
)
|
||||
@slash_option(name="role", description="Role to add", opt_type=OptionTypes.ROLE, required=True)
|
||||
@check(admin_or_permissions(Permissions.MANAGE_GUILD))
|
||||
|
|
|
@ -33,7 +33,12 @@ class StarboardCog(Scale):
|
|||
def __init__(self, bot: Snake):
|
||||
self.bot = bot
|
||||
|
||||
@slash_command(name="starboard", sub_cmd_name="list", sub_cmd_description="List all starboards")
|
||||
@slash_command(
|
||||
name="starboard",
|
||||
description="Extra pins! Manage starboards",
|
||||
sub_cmd_name="list",
|
||||
sub_cmd_description="List all starboards",
|
||||
)
|
||||
@check(admin_or_permissions(Permissions.MANAGE_GUILD))
|
||||
async def _list(self, ctx: InteractionContext) -> None:
|
||||
starboards = await Starboard.find(q(guild=ctx.guild.id)).to_list(None)
|
||||
|
@ -221,7 +226,12 @@ class StarboardCog(Scale):
|
|||
async def _star_message(self, ctx: InteractionContext) -> None:
|
||||
await self._star_add(ctx, message=str(ctx.target_id))
|
||||
|
||||
@slash_command(name="star", sub_cmd_name="add", description="Star a message")
|
||||
@slash_command(
|
||||
name="star",
|
||||
description="Manage stars",
|
||||
sub_cmd_name="add",
|
||||
sub_cmd_description="Star a message",
|
||||
)
|
||||
@slash_option(
|
||||
name="message", description="Message to star", opt_type=OptionTypes.STRING, required=True
|
||||
)
|
||||
|
@ -237,7 +247,9 @@ class StarboardCog(Scale):
|
|||
) -> None:
|
||||
await self._star_add(ctx, message, channel)
|
||||
|
||||
@slash_command(name="star", sub_cmd_name="delete", description="Delete a starred message")
|
||||
@slash_command(
|
||||
name="star", sub_cmd_name="delete", sub_cmd_description="Delete a starred message"
|
||||
)
|
||||
@slash_option(
|
||||
name="id", description="Star ID to delete", opt_type=OptionTypes.INTEGER, required=True
|
||||
)
|
||||
|
|
|
@ -33,7 +33,12 @@ class TwitterCog(Scale):
|
|||
self._guild_cache = {}
|
||||
self._channel_cache = {}
|
||||
|
||||
@slash_command(name="twitter", sub_cmd_name="follow", description="Follow a Twitter acount")
|
||||
@slash_command(
|
||||
name="twitter",
|
||||
description="Manage Twitter follows",
|
||||
sub_cmd_name="follow",
|
||||
sub_cmd_description="Follow a Twitter acount",
|
||||
)
|
||||
@slash_option(
|
||||
name="handle", description="Twitter account", opt_type=OptionTypes.STRING, required=True
|
||||
)
|
||||
|
@ -107,7 +112,9 @@ class TwitterCog(Scale):
|
|||
|
||||
await ctx.send(f"Now following `@{handle}` in {channel.mention}")
|
||||
|
||||
@slash_command(name="twitter", sub_cmd_name="unfollow", description="Unfollow Twitter accounts")
|
||||
@slash_command(
|
||||
name="twitter", sub_cmd_name="unfollow", sub_cmd_description="Unfollow Twitter accounts"
|
||||
)
|
||||
@check(admin_or_permissions(Permissions.MANAGE_GUILD))
|
||||
async def _twitter_unfollow(self, ctx: InteractionContext) -> None:
|
||||
t = TwitterFollow.find(q(guild=ctx.guild.id))
|
||||
|
@ -162,7 +169,9 @@ class TwitterCog(Scale):
|
|||
await message.edit(components=components)
|
||||
|
||||
@slash_command(
|
||||
name="twitter", sub_cmd_name="retweets", description="Modify followed Twitter accounts"
|
||||
name="twitter",
|
||||
sub_cmd_name="retweets",
|
||||
sub_cmd_description="Modify followed Twitter accounts",
|
||||
)
|
||||
@slash_option(
|
||||
name="retweets",
|
||||
|
|
Loading…
Add table
Reference in a new issue