fix: added some docstrings so the cog doesn't break

This commit is contained in:
Seaswimmer 2023-08-08 10:19:51 -04:00
parent 2928c5f89f
commit 524bf59df5
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -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: