#Getting Type Error in Slash command parameters when using aenum

1 messages · Page 1 of 1 (latest)

frozen mauve
#

I want to use the aenum class instead of python's std lib enum but I cant because slash commands don't let me set an aenum class as a parameter annotation. Is there any way to use aenums with slashcommands?

pliant saddle
#

aenum?

#

needs more info

formal arrow
#

-d ext.commands.Param

alpine wigeonBOT
#
disnake.ext.commands.Param(default=Ellipsis, *, name=None, description=None, choices=None, converter=None, convert_defaults=False, autocomplete=None, channel_types=None, lt=None, ...)```
A special function that creates an instance of [`ParamInfo`](https://docs.disnake.dev/en/stable/ext/commands/api.html#disnake.ext.commands.ParamInfo "disnake.ext.commands.ParamInfo") that contains some information about a slash command option. This instance should be assigned to a parameter of a function representing your slash command.

See [Parameters](https://docs.disnake.dev/en/stable/ext/commands/slash_commands.html#param-syntax) for more info.