fix(emojiinfo): made the ephemeral argument optional in the slash command
This commit is contained in:
parent
66df7664a5
commit
d126f1e6d3
1 changed files with 1 additions and 1 deletions
|
@ -91,7 +91,7 @@ class EmojiInfo(commands.Cog):
|
||||||
emoji="What emoji would you like to get information on?",
|
emoji="What emoji would you like to get information on?",
|
||||||
ephemeral="Would you like the response to be hidden?"
|
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."""
|
"""Retrieve information about an emoji."""
|
||||||
await interaction.response.defer(ephemeral=ephemeral)
|
await interaction.response.defer(ephemeral=ephemeral)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue