fix(emojiinfo): awaited a coroutine

This commit is contained in:
Seaswimmer 2024-05-08 15:59:10 -04:00
parent ce53908938
commit 66df7664a5
Signed by untrusted user: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

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