From 524bf59df5242aef420c1965e172273dcc88ee8d Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 8 Aug 2023 10:19:51 -0400 Subject: [PATCH] fix: added some docstrings so the cog doesn't break --- galaxy/galaxy.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/galaxy/galaxy.py b/galaxy/galaxy.py index 6e7aa53..87f23cc 100644 --- a/galaxy/galaxy.py +++ b/galaxy/galaxy.py @@ -86,9 +86,10 @@ class Galaxy(commands.Cog): embed = discord.Embed(color=await self.bot.get_embed_color(None), description=f"Coco is currently set to <@{cocotarget}> ({cocotarget}).\nCoco's emoji is currently set to {emoji} ({await self.config.guild(ctx.guild).cocoemoji()}).") await ctx.send(embed=embed) - coco = app_commands.Group(name='coco', guild_only=True) + coco = app_commands.Group(name='coco', guild_only=True, description="This group handles the autoreact functionality.") @coco.command(name="emoji") + @app_commands.describe(emoji="Which emoji are you setting Coco to use?") async def coco_emoji(self, interaction: discord.Interaction, emoji: discord.Emoji = None): """Sets Coco's emoji.""" if emoji: @@ -102,6 +103,7 @@ class Galaxy(commands.Cog): await interaction.response.send_message(embed=embed) @coco.command(name="set") + @app_commands.describe(member="Who are you targetting?") async def coco_set(self, interaction: discord.Interaction, member: discord.Member): """Sets Coco's target.""" if member: