fix(emojiinfo): fixed error if you input a default discord emoji

This commit is contained in:
Seaswimmer 2024-05-08 13:58:58 -04:00
parent c266997a78
commit d87c37239d
Signed by: cswimr
GPG key ID: 5D671B5D03D65A7F

View file

@ -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)