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

#include <application_commands.h>

Collaboration diagram for discord_application_command:
[legend]

Data Fields

u64snowflake id
 
enum discord_application_command_types type
 
u64snowflake application_id
 
u64snowflake guild_id
 
char * name
 
char * description
 
struct discord_application_command_optionsoptions
 
u64bitmask default_member_permissions
 
bool dm_permission
 
bool default_permission
 
u64snowflake version
 

Detailed Description

Field Documentation

◆ id

u64snowflake discord_application_command::id

unique ID of the command

Examples
slash-commands2.c.

◆ type

enum discord_application_command_types discord_application_command::type

one of application command types

◆ application_id

u64snowflake discord_application_command::application_id

unique ID of the parent application

◆ guild_id

u64snowflake discord_application_command::guild_id

guild ID of the command, if not global

Examples
slash-commands2.c.

◆ name

char* discord_application_command::name

1-32 character name

Examples
slash-commands2.c.

◆ description

char* discord_application_command::description

1-100 character description for CHAT_INPUT commands, empty string for USER and MESSAGE commands

◆ options

struct discord_application_command_options* discord_application_command::options

the parameters for the command, max 25

◆ default_member_permissions

u64bitmask discord_application_command::default_member_permissions

Set of Discord permissions represented as a bit set

◆ dm_permission

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.

◆ default_permission

bool discord_application_command::default_permission
Deprecated:
use default_member_permissions instead

◆ version

u64snowflake discord_application_command::version

autoincrementing version identifier updated during substantial record changes


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