#Getting Type Error in Slash command parameters when using aenum
1 messages · Page 1 of 1 (latest)
assuming your "aenums" are not too different from python's std enums, you can use choices in Param call and set it to your enum's values
-d ext.commands.Param
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.