From 3d2e86cfe8d2353cf310b9840f8fe3c3048c22d1 Mon Sep 17 00:00:00 2001 From: Zephyrkul <23347632+Zephyrkul@users.noreply.github.com> Date: Fri, 1 Nov 2024 14:18:10 -0400 Subject: [PATCH] fix emoji_converter returning the wrong type --- customhelp/core/utils.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/customhelp/core/utils.py b/customhelp/core/utils.py index e58f4d2..73e353c 100644 --- a/customhelp/core/utils.py +++ b/customhelp/core/utils.py @@ -17,7 +17,8 @@ def emoji_converter(bot, emoji) -> Optional[str]: if not emoji: return if isinstance(emoji, int) or emoji.isdigit(): - return bot.get_emoji(int(emoji)) + emoji = bot.get_emoji(int(emoji)) + return str(emoji) if emoji is not None else None emoji = emoji.strip() return emoji