Skip to main content
Discord uses numbers for kinds, styles and levels. ChapterJS exports their names, so you never write a number whose meaning you have to remember.
Permissions are not here: they have their own page. The flags of a message and of a user are read by name (message.flags, user.flags): see Message and User.
Each enum is both a value and a type: ChannelType.GuildVoice is 2, and a variable of type ChannelType accepts any of the values.

ChannelType

The kind of a channel: channel.type, and the type of ChannelCreateOptions and ThreadCreateOptions. The is...() methods of a channel answer the same question without a number: see Channels. Discord documentation

ForumLayoutType

How the posts of a forum are shown: defaultForumLayout in the channel options. Discord documentation

ForumSortOrderType

How the posts of a forum or media channel are ordered: defaultSortOrder in the channel options. Discord documentation

VideoQualityMode

The camera quality of a voice channel: videoQualityMode in the channel options. Discord documentation

Locale

The languages of Discord: guild.preferredLocale, interaction.locale, user.locale, and the keys of the locales of a command (see Translations). The values are the language codes themselves, so Locale.French and 'fr' are the same thing. Discord documentation

ButtonStyle

The style of a button as Discord sends it in a message you receive. In your files, a button takes a ButtonStyleName ('primary', 'danger'…) instead. Discord documentation

ComponentType

The type of a component of a message you receive. The components you send are made with button(), select() and the layout helpers, which set it for you. Discord documentation

TextInputStyle

The style of a text input. Discord documentation

DefaultMessageNotificationLevel

What members are notified of by default: defaultMessageNotifications in GuildEditOptions. Discord documentation

ExplicitContentFilterLevel

Whose images and videos Discord scans: explicitContentFilter in GuildEditOptions. Discord documentation

PremiumTier

The boost level of a server: guild.premiumTier. Discord documentation

VerificationLevel

What Discord asks of new members before they can write: guild.verificationLevel, and verificationLevel in GuildEditOptions. Discord documentation

AuditLogEvent

What an entry of the audit log is about: actionType of an entry of AuditLog, and the actionType filter of guild.fetchAuditLog(). Discord documentation

MessageFlags

The flags a message can have. message.flags gives their names (MessageFlagName), so you rarely need the bits. Discord documentation

MessageType

The kind of a message: message.type. message.isFromUser is true for Default and Reply only, when a person wrote them. Discord documentation

UserFlags

The badges of an account. user.flags gives their names (UserFlagName), so you rarely need the bits. Discord documentation