Concord - C Discord API library
A Discord API wrapper library written in C
|
#include <application_commands.h>
Data Fields | |
u64snowflake | id |
enum discord_application_command_types | type |
u64snowflake | application_id |
u64snowflake | guild_id |
char * | name |
char * | description |
struct discord_application_command_options * | options |
u64bitmask | default_member_permissions |
bool | dm_permission |
bool | default_permission |
u64snowflake | version |
u64snowflake discord_application_command::id |
unique ID of the command
enum discord_application_command_types discord_application_command::type |
one of application command types
u64snowflake discord_application_command::application_id |
unique ID of the parent application
u64snowflake discord_application_command::guild_id |
guild ID of the command, if not global
char* discord_application_command::name |
1-32 character name
char* discord_application_command::description |
1-100 character description for CHAT_INPUT
commands, empty string for USER
and MESSAGE
commands
struct discord_application_command_options* discord_application_command::options |
the parameters for the command, max 25
u64bitmask discord_application_command::default_member_permissions |
Set of Discord permissions represented as a bit set
bool discord_application_command::dm_permission |
Indicates whether the command is available in DMs with the app, only for globally-scoped commands. By default, commands are invisible.
bool discord_application_command::default_permission |
default_member_permissions
instead u64snowflake discord_application_command::version |
autoincrementing version identifier updated during substantial record changes