Concord - C Discord API library
A Discord API wrapper library written in C
discord_application_command_option Struct Reference

#include <application_commands.h>

Collaboration diagram for discord_application_command_option:
[legend]

Data Fields

enum discord_application_command_option_types type
 
char * name
 
char * description
 
bool required
 
struct discord_application_command_option_choiceschoices
 
struct discord_application_command_optionsoptions
 
struct integerschannel_types
 
char * min_value
 
char * max_value
 
bool autocomplete
 

Detailed Description

Field Documentation

◆ type

enum discord_application_command_option_types discord_application_command_option::type

value of application command option type

◆ name

char* discord_application_command_option::name

1-32 character name

◆ description

char* discord_application_command_option::description

1-100 character description

◆ required

bool discord_application_command_option::required

if the parameter is required or optional – default false

◆ choices

struct discord_application_command_option_choices* discord_application_command_option::choices

choices for string and int types for the user to pick from

◆ options

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

Examples
slash-commands.c.

◆ channel_types

struct integers* discord_application_command_option::channel_types

if the option is a channel type, the channels shown will be restricted to these types

◆ min_value

char* discord_application_command_option::min_value

if the option is an INTEGER or NUMBER type, the minimum value permitted

◆ max_value

char* discord_application_command_option::max_value

if the option is an INTEGER or NUMBER type, the maximum value permitted

◆ autocomplete

bool discord_application_command_option::autocomplete

enable autocomplete interactions for this option


The documentation for this struct was generated from the following file: