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

#include <application_commands.h>

Collaboration diagram for discord_create_guild_application_command:
[legend]

Data Fields

char * name
 
char * description
 
struct discord_application_command_optionsoptions
 
u64bitmask default_member_permissions
 
bool dm_permission
 
bool default_permission
 
enum discord_application_command_types type
 

Detailed Description

Field Documentation

◆ name

char* discord_create_guild_application_command::name

1-32 lowercase character name

Examples
slash-commands.c, and slash-commands2.c.

◆ description

char* discord_create_guild_application_command::description

1-100 character description

◆ options

struct discord_application_command_options* discord_create_guild_application_command::options

the parameters for the command

◆ default_member_permissions

u64bitmask discord_create_guild_application_command::default_member_permissions

Set of Discord permissions represented as a bit set

◆ dm_permission

bool discord_create_guild_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_create_guild_application_command::default_permission
Deprecated:
use default_member_permissions instead

◆ type

enum discord_application_command_types discord_create_guild_application_command::type

the type of command, default 1 if not set


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