From dab65b2794455170bd705618e57ca5c4616c9d7f Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Tue, 8 Aug 2023 10:59:25 -0400 Subject: [PATCH] fix: hopefully made custom emojis work again --- galaxy/galaxy.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/galaxy/galaxy.py b/galaxy/galaxy.py index dc5a764..5acd349 100644 --- a/galaxy/galaxy.py +++ b/galaxy/galaxy.py @@ -130,7 +130,11 @@ class Galaxy(commands.Cog): await interaction.response.send_message(embed=embed) else: emoji_id = self.extract_id(input_string=emoji) - emoji_obj = self.bot.get_emoji(emoji_id) + for guild in self.bot.guilds: + emoji_to_find = discord.utils.get(guild.emojis, id=emoji_id) + if emoji_to_find: + emoji_obj = emoji_to_find + break if emoji_obj is None: 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