fix: I forgot to await a corotuine 💀
This commit is contained in:
parent
83053a84a9
commit
8c2d290266
1 changed files with 1 additions and 1 deletions
|
@ -103,7 +103,7 @@ class Galaxy(commands.Cog):
|
||||||
if emoji:
|
if emoji:
|
||||||
emoji_id = self.extract_id(input_string=emoji)
|
emoji_id = self.extract_id(input_string=emoji)
|
||||||
try:
|
try:
|
||||||
emoji_obj = interaction.guild.fetch_emoji(emoji_id)
|
emoji_obj = await interaction.guild.fetch_emoji(emoji_id)
|
||||||
except discord.NotFound or discord.HTTPException as error:
|
except discord.NotFound or discord.HTTPException as error:
|
||||||
await interaction.response.send_message(content="You're trying to set the coco emoji to an emoji I don't have access to!", ephemeral=True)
|
await interaction.response.send_message(content="You're trying to set the coco emoji to an emoji I don't have access to!", ephemeral=True)
|
||||||
return
|
return
|
||||||
|
|
Loading…
Reference in a new issue