fix(emoji): specify a name for the hybrid command

This commit is contained in:
Seaswimmer 2024-05-08 13:50:46 -04:00
parent ea1f7a7f8e
commit 8fdf587bde
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -30,7 +30,7 @@ class Emoji(commands.cog):
] ]
return "\n".join(text) return "\n".join(text)
@commands.hybrid_command() @commands.hybrid_command(name="emoji")
async def emoji(self, ctx: commands.Context, emoji: discord.Emoji, ephemeral: bool = False) -> None: async def emoji(self, ctx: commands.Context, emoji: discord.Emoji, ephemeral: bool = False) -> None:
"""Retrieve information about an emoji.""" """Retrieve information about an emoji."""
await ctx.send(content=f"Emoji: {emoji}", ephemeral=ephemeral) await ctx.send(content=f"Emoji: {emoji}", ephemeral=ephemeral)