From d87c37239d9c22954594a19a3fdc334c60f8fd97 Mon Sep 17 00:00:00 2001 From: SeaswimmerTheFsh Date: Wed, 8 May 2024 13:58:58 -0400 Subject: [PATCH] fix(emojiinfo): fixed error if you input a default discord emoji --- emojiinfo/emojiinfo.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/emojiinfo/emojiinfo.py b/emojiinfo/emojiinfo.py index 40701d6..ab39a05 100644 --- a/emojiinfo/emojiinfo.py +++ b/emojiinfo/emojiinfo.py @@ -1,6 +1,5 @@ from typing import Any, Literal -import discord from red_commons.logging import RedTraceLogger, getLogger from redbot.core import commands from redbot.core.bot import Red @@ -31,6 +30,6 @@ class EmojiInfo(commands.Cog): return "\n".join(text) @commands.hybrid_command(name="emoji") - async def emoji(self, ctx: commands.Context, emoji: discord.Emoji, ephemeral: bool = False) -> None: + async def emoji(self, ctx: commands.Context, emoji: str, ephemeral: bool = False) -> None: """Retrieve information about an emoji.""" await ctx.send(content=f"Emoji: {emoji}", ephemeral=ephemeral)