Skip to main content

Module constants

Module constants 

Source
Expand description

A set of constants used by the library.

Structs§

CloseCode
An enum representing the gateway close codes.
Opcode
An enum representing the gateway opcodes.

Constants§

EMBED_MAX_COUNT
The maximum number of embeds in a message.
EMBED_MAX_LENGTH
The maximum length of the textual size of an embed.
GATEWAY_VERSION
The gateway version used by the library. The gateway URL is retrieved via the REST API.
LARGE_THRESHOLD
The large threshold to send on identify.
MEMBER_FETCH_LIMIT
The maximum number of members the bot can fetch at once
MESSAGE_CODE_LIMIT
The maximum unicode code points allowed within a message by Discord.
MESSAGE_SEARCH_CONTENT_CODE_LIMIT
The maximum unicode code points allowed within the content param of a message search by Discord.
MESSAGE_SEARCH_MAX_ATTACHMENT_FILENAME_CODE_LIMIT
The maximum unicode code points allowed for each attachment filename param of a message search by Discord.
MESSAGE_SEARCH_MAX_CHANNELS_COUNT
The maximum number of channel ids allowed in a message search by Discord.
MESSAGE_SEARCH_MAX_ITEMS_COUNT
The maximum number of items allowed in various parameters (users, roles, embed providers, etc) in a message search by Discord.
MESSAGE_SEARCH_MAX_STRING_ITEM_CODE_LIMIT
The maximum unicode code points allowed for each item of various parameters (users, roles, embed providers, etc) in a message search by Discord.
STICKER_MAX_COUNT
The maximum number of stickers in a message.