Add EmojiInfo cog #27

Merged
cswimr merged 27 commits from emoji into main 2024-05-08 16:07:30 -04:00
Showing only changes of commit d87c37239d - Show all commits

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)