fix: fixed nothing being output if bot fails to find emoji

This commit is contained in:
Seaswimmer 2023-08-08 11:01:50 -04:00
parent dab65b2794
commit 1ff1b7a6d0
No known key found for this signature in database
GPG key ID: 5019678FD9CF50D8

View file

@ -135,7 +135,7 @@ class Galaxy(commands.Cog):
if emoji_to_find:
emoji_obj = emoji_to_find
break
if emoji_obj is None:
else:
await interaction.response.send_message(content=f"You're trying to set the coco emoji to an emoji I don't have access to!\n{emoji_id}", ephemeral=True)
return
await self.config.guild(interaction.guild).cocoemoji.set(emoji_obj.id)