discord_lfg.commands
Creates discord commands programmatically.
AutocompleteError(messages)
#
ChannelWhitelistError(message)
#
autocomplete_validator(interaction, **kwargs)
#
Validates that the user inputs match the autocomplete lists they choose from.
When discord shows an autocompletion list to a user, there is no validation of what the user puts in, so you can get a result that doesn't match the autocomplete list. This function is designed to validate the result and respond to the user if they did not enter values that match the autocompletion list.
Source code in src\discord_lfg\commands.py
build_command(user_inputs, command_config, func_name, func_desc, func_call)
#
Builds a discord slash command programmatically.