#Slash command help
1 messages · Page 1 of 1 (latest)
Give the parameter a default value
assign a default value to the parameter
@commands.slash_command()
async def my_command(self, inter, my_parameter: Optional[str] = None):
...
don't copypaste the example
(It doesn't have to be None)
tysm!