#How can I make a Autocomplete optional that it is not Required?

1 messages · Page 1 of 1 (latest)

uncut geode
#

How can I make a Autocomplete optional that it is not Required?

round field
#

commands.Params is one way.

muted pastureBOT
#
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/latest/ext/commands/api/app_commands.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/latest/ext/commands/slash_commands.html#param-syntax) for more info.
uncut geode
#
status: str = commands.Param(autocomplete=autocomp_status)
#

That is currently my Code

#

I dont find any required in commands.Params