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 66df7664a5 - Show all commits

View file

@ -93,7 +93,7 @@ class EmojiInfo(commands.Cog):
) )
async def emoji_slash(self, interaction: discord.Interaction, emoji: str, ephemeral: bool) -> None: async def emoji_slash(self, interaction: discord.Interaction, emoji: str, ephemeral: bool) -> None:
"""Retrieve information about an emoji.""" """Retrieve information about an emoji."""
interaction.response.defer(ephemeral=ephemeral) await interaction.response.defer(ephemeral=ephemeral)
emoji: PartialEmoji = PartialEmoji.from_str(self, value=emoji) emoji: PartialEmoji = PartialEmoji.from_str(self, value=emoji)