Skip to content

const Limits: object

Defined in: sdk/js/src/limits.ts:2

Protocol limits, checked by the builders before sending.

readonly autocompleteChoices: 25 = 25

readonly buttonLabel: 80 = 80

readonly buttonsPerRow: 5 = 5

readonly chatInputCommands: 100 = 100

readonly checkboxOptions: readonly [1, 10]

readonly choices: 25 = 25

readonly choiceText: 100 = 100

readonly commandDescription: 100 = 100

readonly commandName: 32 = 32

readonly commandOptions: 25 = 25

readonly componentsTotal: 40 = 40

readonly contextMenuCommands: 15 = 15

readonly customId: 100 = 100

readonly embedAuthor: 256 = 256

readonly embedDescription: 4096 = 4096

readonly embedFieldName: 256 = 256

readonly embedFields: 25 = 25

readonly embedFieldValue: 1024 = 1024

readonly embedFooter: 2048 = 2048

readonly embeds: 10 = 10

readonly embedTitle: 256 = 256

readonly embedTotal: 6000 = 6000

readonly fileUploads: 10 = 10

readonly followups: 10 = 10

readonly labelDescription: 100 = 100

readonly labelText: 45 = 45

readonly mediaDescription: 1024 = 1024

readonly mediaGalleryItems: 10 = 10

readonly messageContent: 4000 = 4000

readonly modalItems: 5 = 5

readonly modalTitle: 45 = 45

readonly optionLength: 6000 = 6000

readonly radioOptions: readonly [2, 10]

readonly rows: 5 = 5

readonly sectionTexts: 3 = 3

readonly selectOptions: 25 = 25

readonly selectOptionText: 100 = 100

readonly selectPlaceholder: 150 = 150

readonly textDisplayTotal: 4000 = 4000

readonly textInput: 4000 = 4000

readonly textInputPlaceholder: 100 = 100