Reference
The numbers you keep looking up while building a bot: opcodes, error codes, permission bits, intents, flags and formatting for API v10, copied from the official docs. Click any value to copy it.
Gateway
The op field of every gateway payload, and which side sends it.
0123WebSocket close codes from the gateway, and whether reconnecting makes sense.
4000400140024003Intent bits for IDENTIFY, the events each one gates, and which are privileged.
1 << 01 << 11 << 21 << 3Voice WebSocket opcodes, including the DAVE end-to-end encryption set.
0123Close codes from the voice WebSocket and what each one means.
4001400240034004HTTP API
Status codes the REST API returns and what they mean in Discord terms.
200201204304Every documented code in the error body, from 10003 Unknown Channel to 50013 Missing Permissions.
0100011000210003Rate limit headers, the global and invalid-request limits, and other hard caps.
X-RateLimit-LimitX-RateLimit-RemainingX-RateLimit-ResetX-RateLimit-Reset-AfterWhich REST and gateway versions are available, deprecated or gone.
10987Objects
Every permission bit with hex and decimal values, plus which channel types it applies to.
1 << 01 << 11 << 21 << 3The type integer on channel objects, from GUILD_TEXT to GUILD_MEDIA.
0123Bits in the channel flags field: pinned threads, required tags and more.
1 << 11 << 41 << 151 << 17The message type integer, and which system messages can be deleted.
0123Bits on message.flags: ephemeral, suppress embeds, voice messages, components v2.
1 << 01 << 11 << 21 << 3Public user flag bits behind profile badges, plus premium_type values.
1 << 01 << 11 << 21 << 3Documented strings in guild.features, and which ones you can toggle.
ANIMATED_BANNERANIMATED_ICONAPPLICATION_COMMAND_PERMISSIONS_V2AUTO_MODERATIONBits on application.flags, including the intent approval flags.
1 << 61 << 121 << 131 << 14action_type values for audit log entries and the object each one changes.
1101112Interactions
Formatting & media
Mentions, emoji, timestamp styles, guild navigation links and markdown syntax.
<@USER_ID><@!USER_ID><#CHANNEL_ID><@&ROLE_ID>Image paths on cdn.discordapp.com, supported formats and size rules.
emojis/{emoji_id}.pngicons/{guild_id}/{guild_icon}.pngsplashes/{guild_id}/{guild_splash}.pngdiscovery-splashes/{guild_id}/{guild_discovery_splash}.pngHow Discord ids are built, with a decoder for timestamps.
(snowflake >> 22) + 1420070400000(snowflake & 0x3E0000) >> 17(snowflake & 0x1F000) >> 12snowflake & 0xFFFCharacter limits on every embed field and the 6000-character total.
titledescriptionfieldsfield.nameUpload limits and long-standing perks by Nitro tier and server boost level.
Upload size per fileCustom emoji anywhereServer boosts includedHD video and Go LiveLocale codes for user.locale, guild preferred_locale and command localizations.
iddadeen-GB