diff --git a/jarvis/cogs/admin/roleping.py b/jarvis/cogs/admin/roleping.py index a9bf020..38a3c87 100644 --- a/jarvis/cogs/admin/roleping.py +++ b/jarvis/cogs/admin/roleping.py @@ -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)) diff --git a/jarvis/cogs/rolegiver.py b/jarvis/cogs/rolegiver.py index 7a115b9..ea6b148 100644 --- a/jarvis/cogs/rolegiver.py +++ b/jarvis/cogs/rolegiver.py @@ -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)) diff --git a/jarvis/cogs/starboard.py b/jarvis/cogs/starboard.py index 8ae8da8..871e25c 100644 --- a/jarvis/cogs/starboard.py +++ b/jarvis/cogs/starboard.py @@ -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 ) diff --git a/jarvis/cogs/twitter.py b/jarvis/cogs/twitter.py index dc7d875..836b57b 100644 --- a/jarvis/cogs/twitter.py +++ b/jarvis/cogs/twitter.py @@ -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",