fix: added some docstrings so the cog doesn't break
This commit is contained in:
parent
2928c5f89f
commit
524bf59df5
1 changed files with 3 additions and 1 deletions
|
@ -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()}).")
|
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)
|
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")
|
@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):
|
async def coco_emoji(self, interaction: discord.Interaction, emoji: discord.Emoji = None):
|
||||||
"""Sets Coco's emoji."""
|
"""Sets Coco's emoji."""
|
||||||
if emoji:
|
if emoji:
|
||||||
|
@ -102,6 +103,7 @@ class Galaxy(commands.Cog):
|
||||||
await interaction.response.send_message(embed=embed)
|
await interaction.response.send_message(embed=embed)
|
||||||
|
|
||||||
@coco.command(name="set")
|
@coco.command(name="set")
|
||||||
|
@app_commands.describe(member="Who are you targetting?")
|
||||||
async def coco_set(self, interaction: discord.Interaction, member: discord.Member):
|
async def coco_set(self, interaction: discord.Interaction, member: discord.Member):
|
||||||
"""Sets Coco's target."""
|
"""Sets Coco's target."""
|
||||||
if member:
|
if member:
|
||||||
|
|
Loading…
Reference in a new issue