Variable DiscordConstantsConst
DiscordConstants: {
APPLICATION_COMMAND_LIMITS: {
AUTOCOMPLETE_MAX_CHOICES: 25;
DESCRIPTION: 100;
NAME: 32;
OPTION: {
CHOICES: 25;
DESCRIPTION: 100;
NAME: 32;
};
OPTIONS: 25;
};
CDN: {
BASE_URL: "https://cdn.discordapp.com";
IMAGE_FORMATS: readonly ["gif", "jpeg", "jpg", "json", "png", "webp"];
IMAGE_SIZES: readonly [16, 32, 64, 128, 256, 512, 1024, 2048, 4096];
};
DISCORD_EPOCH: 1420070400000;
GATEWAY: {
INTENTS: {
AUTO_MODERATION_CONFIGURATION: AutoModerationConfiguration;
AUTO_MODERATION_EXECUTION: AutoModerationExecution;
DIRECT_MESSAGES: DirectMessages;
DIRECT_MESSAGE_REACTIONS: DirectMessageReactions;
DIRECT_MESSAGE_TYPING: DirectMessageTyping;
GUILDS: Guilds;
GUILD_BANS: GuildModeration;
GUILD_EMOJIS_AND_STICKERS: GuildEmojisAndStickers;
GUILD_INTEGRATIONS: GuildIntegrations;
GUILD_INVITES: GuildInvites;
GUILD_MEMBERS: GuildMembers;
GUILD_MESSAGES: GuildMessages;
GUILD_MESSAGE_REACTIONS: GuildMessageReactions;
GUILD_MESSAGE_TYPING: GuildMessageTyping;
GUILD_PRESENCES: GuildPresences;
GUILD_SCHEDULED_EVENTS: GuildScheduledEvents;
GUILD_VOICE_STATES: GuildVoiceStates;
GUILD_WEBHOOKS: GuildWebhooks;
MESSAGE_CONTENT: MessageContent;
};
PRIVILEGED_INTENTS: {
GUILD_MEMBERS: GuildMembers;
GUILD_PRESENCES: GuildPresences;
MESSAGE_CONTENT: MessageContent;
};
RATELIMITS: {
SEND_LIMIT: 120;
SEND_RESET_AFTER: 60000;
SHARD_SPAWN_COOLDOWN: 5000;
};
REQUEST_GUILD_MEMBERS_MAX_NONCE_LENGTH: 32;
};
MESSAGE_COMPONENT_LIMITS: {
BUTTON: {
CUSTOM_ID: 100;
LABEL: 80;
};
SELECT_MENU: {
CUSTOM_ID: 100;
MAX_VALUES: {
MAX: 25;
MIN: 1;
};
MIN_VALUES: {
MAX: 25;
MIN: 0;
};
OPTION: {
DESCRIPTION: 100;
LABEL: 100;
VALUE: 100;
};
OPTIONS: 25;
PLACEHOLDER: 150;
};
TEXT_INPUT: {
CUSTOM_ID: 100;
LABEL: 45;
MAX_LENGTH: {
MAX: 4000;
MIN: 1;
};
MIN_LENGTH: {
MAX: 4000;
MIN: 0;
};
PLACEHOLDER: 100;
VALUE: 4000;
};
};
MESSAGE_LIMITS: {
ATTACHMENTS: 10;
CONTENT: 2000;
EMBED: {
AUTHOR_NAME: 256;
DESCRIPTION: 4096;
FIELD: {
NAME: 256;
VALUE: 1024;
};
FIELDS: 25;
FOOTER_TEXT: 2048;
TITLE: 256;
};
EMBEDS: 10;
EMBEDS_LENGTH: 6000;
MAX_DEFAULT_ATTACHMENTS_SIZE: 8388608;
};
MODAL_LIMITS: {
COMPONENTS: 5;
CUSTOM_ID: 100;
TITLE: 45;
};
PERMISSION_FLAGS: {
ADD_REACTIONS: bigint;
ADMINISTRATOR: bigint;
ATTACH_FILES: bigint;
BAN_MEMBERS: bigint;
CHANGE_NICKNAME: bigint;
CONNECT: bigint;
CREATE_INSTANT_INVITE: bigint;
CREATE_PRIVATE_THREADS: bigint;
CREATE_PUBLIC_THREADS: bigint;
DEAFEN_MEMBERS: bigint;
EMBED_LINKS: bigint;
KICK_MEMBERS: bigint;
MANAGE_CHANNELS: bigint;
MANAGE_EMOJIS_AND_STICKERS: bigint;
MANAGE_EVENTS: bigint;
MANAGE_GUILD: bigint;
MANAGE_MESSAGES: bigint;
MANAGE_NICKNAMES: bigint;
MANAGE_ROLES: bigint;
MANAGE_THREADS: bigint;
MANAGE_WEBHOOKS: bigint;
MENTION_EVERYONE: bigint;
MODERATE_MEMBERS: bigint;
MOVE_MEMBERS: bigint;
MUTE_MEMBERS: bigint;
PRIORITY_SPEAKER: bigint;
READ_MESSAGE_HISTORY: bigint;
REQUEST_TO_SPEAK: bigint;
SEND_MESSAGES: bigint;
SEND_MESSAGES_IN_THREADS: bigint;
SEND_TTS_MESSAGES: bigint;
SPEAK: bigint;
STREAM: bigint;
USE_APPLICATION_COMMANDS: bigint;
USE_EMBEDDED_ACTIVITIES: bigint;
USE_EXTERNAL_EMOJIS: bigint;
USE_EXTERNAL_STICKERS: bigint;
USE_VAD: bigint;
VIEW_AUDIT_LOG: bigint;
VIEW_CHANNEL: bigint;
VIEW_GUILD_INSIGHTS: bigint;
};
PERMISSION_FLAGS_TIMEOUT: {
READ_MESSAGE_HISTORY: bigint;
VIEW_CHANNEL: bigint;
};
REST: {
BASE_URL: "https://discord.com/api";
ERROR_KEY: "_errors";
OLD_MESSAGE_THRESHOLD: 1209600000;
RATELIMIT_HEADERS: {
BUCKET: "x-ratelimit-bucket";
GLOBAL: "x-ratelimit-global";
GLOBAL_RETRY_AFTER: "retry-after";
LIMIT: "x-ratelimit-limit";
REMAINING: "x-ratelimit-remaining";
RESET: "x-ratelimit-reset";
RESET_AFTER: "x-ratelimit-reset-after";
SCOPE: "x-ratelimit-scope";
};
};
} = ...
Type declaration
-
Readonly
APPLICATION_COMMAND_LIMITS: {
AUTOCOMPLETE_MAX_CHOICES: 25;
DESCRIPTION: 100;
NAME: 32;
OPTION: {
CHOICES: 25;
DESCRIPTION: 100;
NAME: 32;
};
OPTIONS: 25;
}
-
Readonly
AUTOCOMPLETE_MAX_CHOICES: 25
-
Readonly
DESCRIPTION: 100
-
Readonly
NAME: 32
-
Readonly
OPTION: {
CHOICES: 25;
DESCRIPTION: 100;
NAME: 32;
}
-
Readonly
CHOICES: 25
-
Readonly
DESCRIPTION: 100
-
Readonly
NAME: 32
-
Readonly
OPTIONS: 25
-
Readonly
CDN: {
BASE_URL: "https://cdn.discordapp.com";
IMAGE_FORMATS: readonly ["gif", "jpeg", "jpg", "json", "png", "webp"];
IMAGE_SIZES: readonly [16, 32, 64, 128, 256, 512, 1024, 2048, 4096];
}
-
Readonly
BASE_URL: "https://cdn.discordapp.com"
-
Readonly
IMAGE_FORMATS: readonly ["gif", "jpeg", "jpg", "json", "png", "webp"]
-
Readonly
IMAGE_SIZES: readonly [16, 32, 64, 128, 256, 512, 1024, 2048, 4096]
-
Readonly
DISCORD_EPOCH: 1420070400000
-
Readonly
GATEWAY: {
INTENTS: {
AUTO_MODERATION_CONFIGURATION: AutoModerationConfiguration;
AUTO_MODERATION_EXECUTION: AutoModerationExecution;
DIRECT_MESSAGES: DirectMessages;
DIRECT_MESSAGE_REACTIONS: DirectMessageReactions;
DIRECT_MESSAGE_TYPING: DirectMessageTyping;
GUILDS: Guilds;
GUILD_BANS: GuildModeration;
GUILD_EMOJIS_AND_STICKERS: GuildEmojisAndStickers;
GUILD_INTEGRATIONS: GuildIntegrations;
GUILD_INVITES: GuildInvites;
GUILD_MEMBERS: GuildMembers;
GUILD_MESSAGES: GuildMessages;
GUILD_MESSAGE_REACTIONS: GuildMessageReactions;
GUILD_MESSAGE_TYPING: GuildMessageTyping;
GUILD_PRESENCES: GuildPresences;
GUILD_SCHEDULED_EVENTS: GuildScheduledEvents;
GUILD_VOICE_STATES: GuildVoiceStates;
GUILD_WEBHOOKS: GuildWebhooks;
MESSAGE_CONTENT: MessageContent;
};
PRIVILEGED_INTENTS: {
GUILD_MEMBERS: GuildMembers;
GUILD_PRESENCES: GuildPresences;
MESSAGE_CONTENT: MessageContent;
};
RATELIMITS: {
SEND_LIMIT: 120;
SEND_RESET_AFTER: 60000;
SHARD_SPAWN_COOLDOWN: 5000;
};
REQUEST_GUILD_MEMBERS_MAX_NONCE_LENGTH: 32;
}
-
Readonly
INTENTS: {
AUTO_MODERATION_CONFIGURATION: AutoModerationConfiguration;
AUTO_MODERATION_EXECUTION: AutoModerationExecution;
DIRECT_MESSAGES: DirectMessages;
DIRECT_MESSAGE_REACTIONS: DirectMessageReactions;
DIRECT_MESSAGE_TYPING: DirectMessageTyping;
GUILDS: Guilds;
GUILD_BANS: GuildModeration;
GUILD_EMOJIS_AND_STICKERS: GuildEmojisAndStickers;
GUILD_INTEGRATIONS: GuildIntegrations;
GUILD_INVITES: GuildInvites;
GUILD_MEMBERS: GuildMembers;
GUILD_MESSAGES: GuildMessages;
GUILD_MESSAGE_REACTIONS: GuildMessageReactions;
GUILD_MESSAGE_TYPING: GuildMessageTyping;
GUILD_PRESENCES: GuildPresences;
GUILD_SCHEDULED_EVENTS: GuildScheduledEvents;
GUILD_VOICE_STATES: GuildVoiceStates;
GUILD_WEBHOOKS: GuildWebhooks;
MESSAGE_CONTENT: MessageContent;
}
-
Readonly
AUTO_MODERATION_CONFIGURATION: AutoModerationConfiguration
-
Readonly
AUTO_MODERATION_EXECUTION: AutoModerationExecution
-
Readonly
DIRECT_MESSAGES: DirectMessages
-
Readonly
DIRECT_MESSAGE_REACTIONS: DirectMessageReactions
-
Readonly
DIRECT_MESSAGE_TYPING: DirectMessageTyping
-
Readonly
GUILDS: Guilds
-
Readonly
GUILD_BANS: GuildModeration
-
Readonly
GUILD_EMOJIS_AND_STICKERS: GuildEmojisAndStickers
-
Readonly
GUILD_INTEGRATIONS: GuildIntegrations
-
Readonly
GUILD_INVITES: GuildInvites
-
Readonly
GUILD_MEMBERS: GuildMembers
-
Readonly
GUILD_MESSAGES: GuildMessages
-
Readonly
GUILD_MESSAGE_REACTIONS: GuildMessageReactions
-
Readonly
GUILD_MESSAGE_TYPING: GuildMessageTyping
-
Readonly
GUILD_PRESENCES: GuildPresences
-
Readonly
GUILD_SCHEDULED_EVENTS: GuildScheduledEvents
-
Readonly
GUILD_VOICE_STATES: GuildVoiceStates
-
Readonly
GUILD_WEBHOOKS: GuildWebhooks
-
Readonly
MESSAGE_CONTENT: MessageContent
-
Readonly
PRIVILEGED_INTENTS: {
GUILD_MEMBERS: GuildMembers;
GUILD_PRESENCES: GuildPresences;
MESSAGE_CONTENT: MessageContent;
}
-
Readonly
GUILD_MEMBERS: GuildMembers
-
Readonly
GUILD_PRESENCES: GuildPresences
-
Readonly
MESSAGE_CONTENT: MessageContent
-
Readonly
RATELIMITS: {
SEND_LIMIT: 120;
SEND_RESET_AFTER: 60000;
SHARD_SPAWN_COOLDOWN: 5000;
}
-
Readonly
SEND_LIMIT: 120
-
Readonly
SEND_RESET_AFTER: 60000
-
Readonly
SHARD_SPAWN_COOLDOWN: 5000
-
Readonly
REQUEST_GUILD_MEMBERS_MAX_NONCE_LENGTH: 32
-
Readonly
MESSAGE_COMPONENT_LIMITS: {
BUTTON: {
CUSTOM_ID: 100;
LABEL: 80;
};
SELECT_MENU: {
CUSTOM_ID: 100;
MAX_VALUES: {
MAX: 25;
MIN: 1;
};
MIN_VALUES: {
MAX: 25;
MIN: 0;
};
OPTION: {
DESCRIPTION: 100;
LABEL: 100;
VALUE: 100;
};
OPTIONS: 25;
PLACEHOLDER: 150;
};
TEXT_INPUT: {
CUSTOM_ID: 100;
LABEL: 45;
MAX_LENGTH: {
MAX: 4000;
MIN: 1;
};
MIN_LENGTH: {
MAX: 4000;
MIN: 0;
};
PLACEHOLDER: 100;
VALUE: 4000;
};
}
-
Readonly
BUTTON: {
CUSTOM_ID: 100;
LABEL: 80;
}
-
Readonly
CUSTOM_ID: 100
-
Readonly
LABEL: 80
-
Readonly
SELECT_MENU: {
CUSTOM_ID: 100;
MAX_VALUES: {
MAX: 25;
MIN: 1;
};
MIN_VALUES: {
MAX: 25;
MIN: 0;
};
OPTION: {
DESCRIPTION: 100;
LABEL: 100;
VALUE: 100;
};
OPTIONS: 25;
PLACEHOLDER: 150;
}
-
Readonly
CUSTOM_ID: 100
-
Readonly
MAX_VALUES: {
MAX: 25;
MIN: 1;
}
-
Readonly
MAX: 25
-
Readonly
MIN: 1
-
Readonly
MIN_VALUES: {
MAX: 25;
MIN: 0;
}
-
Readonly
MAX: 25
-
Readonly
MIN: 0
-
Readonly
OPTION: {
DESCRIPTION: 100;
LABEL: 100;
VALUE: 100;
}
-
Readonly
DESCRIPTION: 100
-
Readonly
LABEL: 100
-
Readonly
VALUE: 100
-
Readonly
OPTIONS: 25
-
Readonly
PLACEHOLDER: 150
-
Readonly
TEXT_INPUT: {
CUSTOM_ID: 100;
LABEL: 45;
MAX_LENGTH: {
MAX: 4000;
MIN: 1;
};
MIN_LENGTH: {
MAX: 4000;
MIN: 0;
};
PLACEHOLDER: 100;
VALUE: 4000;
}
-
Readonly
CUSTOM_ID: 100
-
Readonly
LABEL: 45
-
Readonly
MAX_LENGTH: {
MAX: 4000;
MIN: 1;
}
-
Readonly
MAX: 4000
-
Readonly
MIN: 1
-
Readonly
MIN_LENGTH: {
MAX: 4000;
MIN: 0;
}
-
Readonly
MAX: 4000
-
Readonly
MIN: 0
-
Readonly
PLACEHOLDER: 100
-
Readonly
VALUE: 4000
-
Readonly
MESSAGE_LIMITS: {
ATTACHMENTS: 10;
CONTENT: 2000;
EMBED: {
AUTHOR_NAME: 256;
DESCRIPTION: 4096;
FIELD: {
NAME: 256;
VALUE: 1024;
};
FIELDS: 25;
FOOTER_TEXT: 2048;
TITLE: 256;
};
EMBEDS: 10;
EMBEDS_LENGTH: 6000;
MAX_DEFAULT_ATTACHMENTS_SIZE: 8388608;
}
-
Readonly
ATTACHMENTS: 10
-
Readonly
CONTENT: 2000
-
Readonly
EMBED: {
AUTHOR_NAME: 256;
DESCRIPTION: 4096;
FIELD: {
NAME: 256;
VALUE: 1024;
};
FIELDS: 25;
FOOTER_TEXT: 2048;
TITLE: 256;
}
-
Readonly
AUTHOR_NAME: 256
-
Readonly
DESCRIPTION: 4096
-
Readonly
FIELD: {
NAME: 256;
VALUE: 1024;
}
-
Readonly
NAME: 256
-
Readonly
VALUE: 1024
-
Readonly
FIELDS: 25
-
Readonly
FOOTER_TEXT: 2048
-
Readonly
TITLE: 256
-
Readonly
EMBEDS: 10
-
Readonly
EMBEDS_LENGTH: 6000
-
Readonly
MAX_DEFAULT_ATTACHMENTS_SIZE: 8388608
-
Readonly
MODAL_LIMITS: {
COMPONENTS: 5;
CUSTOM_ID: 100;
TITLE: 45;
}
-
Readonly
COMPONENTS: 5
-
Readonly
CUSTOM_ID: 100
-
Readonly
TITLE: 45
-
Readonly
PERMISSION_FLAGS: {
ADD_REACTIONS: bigint;
ADMINISTRATOR: bigint;
ATTACH_FILES: bigint;
BAN_MEMBERS: bigint;
CHANGE_NICKNAME: bigint;
CONNECT: bigint;
CREATE_INSTANT_INVITE: bigint;
CREATE_PRIVATE_THREADS: bigint;
CREATE_PUBLIC_THREADS: bigint;
DEAFEN_MEMBERS: bigint;
EMBED_LINKS: bigint;
KICK_MEMBERS: bigint;
MANAGE_CHANNELS: bigint;
MANAGE_EMOJIS_AND_STICKERS: bigint;
MANAGE_EVENTS: bigint;
MANAGE_GUILD: bigint;
MANAGE_MESSAGES: bigint;
MANAGE_NICKNAMES: bigint;
MANAGE_ROLES: bigint;
MANAGE_THREADS: bigint;
MANAGE_WEBHOOKS: bigint;
MENTION_EVERYONE: bigint;
MODERATE_MEMBERS: bigint;
MOVE_MEMBERS: bigint;
MUTE_MEMBERS: bigint;
PRIORITY_SPEAKER: bigint;
READ_MESSAGE_HISTORY: bigint;
REQUEST_TO_SPEAK: bigint;
SEND_MESSAGES: bigint;
SEND_MESSAGES_IN_THREADS: bigint;
SEND_TTS_MESSAGES: bigint;
SPEAK: bigint;
STREAM: bigint;
USE_APPLICATION_COMMANDS: bigint;
USE_EMBEDDED_ACTIVITIES: bigint;
USE_EXTERNAL_EMOJIS: bigint;
USE_EXTERNAL_STICKERS: bigint;
USE_VAD: bigint;
VIEW_AUDIT_LOG: bigint;
VIEW_CHANNEL: bigint;
VIEW_GUILD_INSIGHTS: bigint;
}
-
Readonly
ADD_REACTIONS: bigint
-
Readonly
ADMINISTRATOR: bigint
-
Readonly
ATTACH_FILES: bigint
-
Readonly
BAN_MEMBERS: bigint
-
Readonly
CHANGE_NICKNAME: bigint
-
Readonly
CONNECT: bigint
-
Readonly
CREATE_INSTANT_INVITE: bigint
-
Readonly
CREATE_PRIVATE_THREADS: bigint
-
Readonly
CREATE_PUBLIC_THREADS: bigint
-
Readonly
DEAFEN_MEMBERS: bigint
-
Readonly
EMBED_LINKS: bigint
-
Readonly
KICK_MEMBERS: bigint
-
Readonly
MANAGE_CHANNELS: bigint
-
Readonly
MANAGE_EMOJIS_AND_STICKERS: bigint
-
Readonly
MANAGE_EVENTS: bigint
-
Readonly
MANAGE_GUILD: bigint
-
Readonly
MANAGE_MESSAGES: bigint
-
Readonly
MANAGE_NICKNAMES: bigint
-
Readonly
MANAGE_ROLES: bigint
-
Readonly
MANAGE_THREADS: bigint
-
Readonly
MANAGE_WEBHOOKS: bigint
-
Readonly
MENTION_EVERYONE: bigint
-
Readonly
MODERATE_MEMBERS: bigint
-
Readonly
MOVE_MEMBERS: bigint
-
Readonly
MUTE_MEMBERS: bigint
-
Readonly
PRIORITY_SPEAKER: bigint
-
Readonly
READ_MESSAGE_HISTORY: bigint
-
Readonly
REQUEST_TO_SPEAK: bigint
-
Readonly
SEND_MESSAGES: bigint
-
Readonly
SEND_MESSAGES_IN_THREADS: bigint
-
Readonly
SEND_TTS_MESSAGES: bigint
-
Readonly
SPEAK: bigint
-
Readonly
STREAM: bigint
-
Readonly
USE_APPLICATION_COMMANDS: bigint
-
Readonly
USE_EMBEDDED_ACTIVITIES: bigint
-
Readonly
USE_EXTERNAL_EMOJIS: bigint
-
Readonly
USE_EXTERNAL_STICKERS: bigint
-
Readonly
USE_VAD: bigint
-
Readonly
VIEW_AUDIT_LOG: bigint
-
Readonly
VIEW_CHANNEL: bigint
-
Readonly
VIEW_GUILD_INSIGHTS: bigint
-
Readonly
PERMISSION_FLAGS_TIMEOUT: {
READ_MESSAGE_HISTORY: bigint;
VIEW_CHANNEL: bigint;
}
-
Readonly
READ_MESSAGE_HISTORY: bigint
-
Readonly
VIEW_CHANNEL: bigint
-
Readonly
REST: {
BASE_URL: "https://discord.com/api";
ERROR_KEY: "_errors";
OLD_MESSAGE_THRESHOLD: 1209600000;
RATELIMIT_HEADERS: {
BUCKET: "x-ratelimit-bucket";
GLOBAL: "x-ratelimit-global";
GLOBAL_RETRY_AFTER: "retry-after";
LIMIT: "x-ratelimit-limit";
REMAINING: "x-ratelimit-remaining";
RESET: "x-ratelimit-reset";
RESET_AFTER: "x-ratelimit-reset-after";
SCOPE: "x-ratelimit-scope";
};
}
-
Readonly
BASE_URL: "https://discord.com/api"
-
Readonly
ERROR_KEY: "_errors"
-
Readonly
OLD_MESSAGE_THRESHOLD: 1209600000
-
Readonly
RATELIMIT_HEADERS: {
BUCKET: "x-ratelimit-bucket";
GLOBAL: "x-ratelimit-global";
GLOBAL_RETRY_AFTER: "retry-after";
LIMIT: "x-ratelimit-limit";
REMAINING: "x-ratelimit-remaining";
RESET: "x-ratelimit-reset";
RESET_AFTER: "x-ratelimit-reset-after";
SCOPE: "x-ratelimit-scope";
}
-
Readonly
BUCKET: "x-ratelimit-bucket"
-
Readonly
GLOBAL: "x-ratelimit-global"
-
Readonly
GLOBAL_RETRY_AFTER: "retry-after"
-
Readonly
LIMIT: "x-ratelimit-limit"
-
Readonly
REMAINING: "x-ratelimit-remaining"
-
Readonly
RESET: "x-ratelimit-reset"
-
Readonly
RESET_AFTER: "x-ratelimit-reset-after"
-
Readonly
SCOPE: "x-ratelimit-scope"
Discord API constants.