Limits
constLimits:object
Defined in: sdk/js/src/limits.ts:2
Protocol limits, checked by the builders before sending.
Type Declaration
Section titled “Type Declaration”autocompleteChoices
Section titled “autocompleteChoices”
readonlyautocompleteChoices:25=25
buttonLabel
Section titled “buttonLabel”
readonlybuttonLabel:80=80
buttonsPerRow
Section titled “buttonsPerRow”
readonlybuttonsPerRow:5=5
chatInputCommands
Section titled “chatInputCommands”
readonlychatInputCommands:100=100
checkboxOptions
Section titled “checkboxOptions”
readonlycheckboxOptions: readonly [1,10]
choices
Section titled “choices”
readonlychoices:25=25
choiceText
Section titled “choiceText”
readonlychoiceText:100=100
commandDescription
Section titled “commandDescription”
readonlycommandDescription:100=100
commandName
Section titled “commandName”
readonlycommandName:32=32
commandOptions
Section titled “commandOptions”
readonlycommandOptions:25=25
componentsTotal
Section titled “componentsTotal”
readonlycomponentsTotal:40=40
contextMenuCommands
Section titled “contextMenuCommands”
readonlycontextMenuCommands:15=15
customId
Section titled “customId”
readonlycustomId:100=100
embedAuthor
Section titled “embedAuthor”
readonlyembedAuthor:256=256
embedDescription
Section titled “embedDescription”
readonlyembedDescription:4096=4096
embedFieldName
Section titled “embedFieldName”
readonlyembedFieldName:256=256
embedFields
Section titled “embedFields”
readonlyembedFields:25=25
embedFieldValue
Section titled “embedFieldValue”
readonlyembedFieldValue:1024=1024
embedFooter
Section titled “embedFooter”
readonlyembedFooter:2048=2048
embeds
Section titled “embeds”
readonlyembeds:10=10
embedTitle
Section titled “embedTitle”
readonlyembedTitle:256=256
embedTotal
Section titled “embedTotal”
readonlyembedTotal:6000=6000
fileUploads
Section titled “fileUploads”
readonlyfileUploads:10=10
followups
Section titled “followups”
readonlyfollowups:10=10
labelDescription
Section titled “labelDescription”
readonlylabelDescription:100=100
labelText
Section titled “labelText”
readonlylabelText:45=45
mediaDescription
Section titled “mediaDescription”
readonlymediaDescription:1024=1024
mediaGalleryItems
Section titled “mediaGalleryItems”
readonlymediaGalleryItems:10=10
messageContent
Section titled “messageContent”
readonlymessageContent:4000=4000
modalItems
Section titled “modalItems”
readonlymodalItems:5=5
modalTitle
Section titled “modalTitle”
readonlymodalTitle:45=45
optionLength
Section titled “optionLength”
readonlyoptionLength:6000=6000
radioOptions
Section titled “radioOptions”
readonlyradioOptions: readonly [2,10]
readonlyrows:5=5
sectionTexts
Section titled “sectionTexts”
readonlysectionTexts:3=3
selectOptions
Section titled “selectOptions”
readonlyselectOptions:25=25
selectOptionText
Section titled “selectOptionText”
readonlyselectOptionText:100=100
selectPlaceholder
Section titled “selectPlaceholder”
readonlyselectPlaceholder:150=150
textDisplayTotal
Section titled “textDisplayTotal”
readonlytextDisplayTotal:4000=4000
textInput
Section titled “textInput”
readonlytextInput:4000=4000
textInputPlaceholder
Section titled “textInputPlaceholder”
readonlytextInputPlaceholder:100=100