Description
Summary
The slash command didn't work when I add slash option which contains Union[discord.Emoji, discord.PartialEmoji]
type
Reproduction Steps
I tested code that has attribute type Union[discord.Emoji, discord.PartialEmoji]
and this command didn't synced with guilds.
Minimal Reproducible Code
@discord.commands.slash_command(name="test")
async def emoji(self, ctx: discord.ApplicationContext, emoji : Union[discord.Emoji, discord.PartialEmoji]):
await ctx.respond(emoji.name)
Expected Results
I want the slash option support for discord.Emoji
and discord.PartialEmoji
Actual Results
The command didn't synced with guilds.
Intents
intents = discord.Intents.all()
System Information
- Python v3.10.2-final
- py-cord v2.0.1-final
- aiohttp v3.8.1
- system info: Windows 10 10.0.22000
Checklist
- I have searched the open issues for duplicates.
- I have shown the entire traceback, if possible.
- I have removed my token from display, if visible.
Additional Context
No response