forked from cswimr/SeaCogs
fix(emojiinfo): fixed error if you input a default discord emoji
This commit is contained in:
parent
c266997a78
commit
d87c37239d
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue