|
Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <application_commands.h>
Data Fields | |
| enum discord_application_command_option_types | type |
| char * | name |
| char * | description |
| bool | required |
| struct discord_application_command_option_choices * | choices |
| struct discord_application_command_options * | options |
| struct integers * | channel_types |
| char * | min_value |
| char * | max_value |
| bool | autocomplete |
| enum discord_application_command_option_types discord_application_command_option::type |
value of application command option type
| char* discord_application_command_option::name |
1-32 character name
| char* discord_application_command_option::description |
1-100 character description
| bool discord_application_command_option::required |
if the parameter is required or optional – default false
| struct discord_application_command_option_choices* discord_application_command_option::choices |
choices for string and int types for the user to pick from
| struct discord_application_command_options* discord_application_command_option::options |
if the option is a subcommand or subcommand group type, this nested options will be the parameters
| struct integers* discord_application_command_option::channel_types |
if the option is a channel type, the channels shown will be restricted to these types
| char* discord_application_command_option::min_value |
if the option is an INTEGER or NUMBER type, the minimum value permitted
| char* discord_application_command_option::max_value |
if the option is an INTEGER or NUMBER type, the maximum value permitted
| bool discord_application_command_option::autocomplete |
enable autocomplete interactions for this option