fix(emojiinfo): made the ephemeral argument optional in the slash command

This commit is contained in:
Seaswimmer 2024-05-08 16:00:36 -04:00
parent 66df7664a5
commit d126f1e6d3
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -91,7 +91,7 @@ class EmojiInfo(commands.Cog):
emoji="What emoji would you like to get information on?",
ephemeral="Would you like the response to be hidden?"
)
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 = False) -> None:
"""Retrieve information about an emoji."""
await interaction.response.defer(ephemeral=ephemeral)