Add EmojiInfo cog #27

Merged
cswimr merged 27 commits from emoji into main 2024-05-08 16:07:30 -04:00
Showing only changes of commit 8fdf587bde - Show all commits

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)