fix: I forgot to await a corotuine 💀

This commit is contained in:
Seaswimmer 2023-08-08 10:36:35 -04:00
parent 83053a84a9
commit 8c2d290266
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -103,7 +103,7 @@ class Galaxy(commands.Cog):
if emoji:
emoji_id = self.extract_id(input_string=emoji)
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:
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