Constants#

Snowflake#

group DiscordLimitsSnowflake

Defines

DISCORD_SNOWFLAKE_INCREMENT 12#
DISCORD_SNOWFLAKE_PROCESS_ID 17#
DISCORD_SNOWFLAKE_INTERNAL_WORKER_ID 22#
DISCORD_SNOWFLAKE_TIMESTAMP 64#

General#

group DiscordLimitsGeneral

Note

assume the worst-case scenario for strings, where each character is 4 bytes long (UTF8)

Defines

DISCORD_MAX_NAME_LEN 4 * 100 + 1#
DISCORD_MAX_TOPIC_LEN 4 * 1024 + 1#
DISCORD_MAX_DESCRIPTION_LEN 4 * 2048 + 1#
DISCORD_MAX_USERNAME_LEN 4 * 32 + 1#
DISCORD_MAX_DISCRIMINATOR_LEN 4 + 1#
DISCORD_MAX_REASON_LEN 4 * 512 + 1#
DISCORD_MAX_MESSAGE_LEN 4 * 2000 + 1#
DISCORD_MAX_PAYLOAD_LEN 4 * 4096 + 1#
DISCORD_MAX_VOICE_CONNECTIONS 512#

Embed#

group DiscordLimitsEmbed

Note

assume the worst-case scenario for strings, where each character is 4 bytes long (UTF8)

Defines

DISCORD_EMBED_TITLE_LEN 4 * 256 + 1#
DISCORD_EMBED_DESCRIPTION_LEN 4 * 2048 + 1#
DISCORD_EMBED_MAX_FIELDS 25#
DISCORD_EMBED_FIELD_NAME_LEN 4 * 256 + 1#
DISCORD_EMBED_FIELD_VALUE_LEN 4 * 1024 + 1#
DISCORD_EMBED_AUTHOR_NAME_LEN 4 * 256 + 1#

Webhook#

group DiscordLimitsWebhook

Note

assume the worst-case scenario for strings, where each character is 4 bytes long (UTF8)

Defines

DISCORD_WEBHOOK_NAME_LEN 4 * 80 + 1#