Skip to main content

Module: discord-utilities/src

Classes

Variables

ApplicationCommandLimits

Const ApplicationCommandLimits: Object

Type declaration

NameTypeDescription
MaximumDescriptionCharacters100
MaximumNameCharacters32
MaximumOptionsLength25

Defined in

projects/utilities/packages/discord-utilities/src/lib/limits.ts:129


ApplicationCommandOptionLimits

Const ApplicationCommandOptionLimits: Object

Type declaration

NameTypeDescription
MaximumChoicesLength25
MaximumDescriptionCharacters100
MaximumNameCharacters32

Defined in

projects/utilities/packages/discord-utilities/src/lib/limits.ts:149


AutoCompleteLimits

Const AutoCompleteLimits: Object

Type declaration

NameTypeDescription
MaximumAmountOfOptions25
MaximumLengthOfNameOfOption100

Defined in

projects/utilities/packages/discord-utilities/src/lib/limits.ts:302


ButtonLimits

Const ButtonLimits: Object

Type declaration

NameTypeDescription
MaximumCustomIdCharacters100
MaximumLabelCharacters80

Defined in

projects/utilities/packages/discord-utilities/src/lib/limits.ts:169


ChannelLimits

Const ChannelLimits: Object

Type declaration

NameTypeDescription
MaximumDescriptionLength1024
MaximumNameLength100
MaximumViewersPerScreenShare50

Defined in

projects/utilities/packages/discord-utilities/src/lib/limits.ts:4


ChannelMentionRegex

Const ChannelMentionRegex: RegExp

Defined in

projects/utilities/packages/discord-utilities/src/lib/regexes.ts:6


ChannelMessageRegex

Const ChannelMessageRegex: RegExp

Defined in

projects/utilities/packages/discord-utilities/src/lib/regexes.ts:15


DiscordHostnameRegex

Const DiscordHostnameRegex: RegExp

Defined in

projects/utilities/packages/discord-utilities/src/lib/regexes.ts:25


DiscordInviteLinkRegex

Const DiscordInviteLinkRegex: RegExp

Defined in

projects/utilities/packages/discord-utilities/src/lib/regexes.ts:33


EmbedLimits

Const EmbedLimits: Object

Type declaration

NameTypeDescription
MaximumAuthorNameLength256
MaximumDescriptionLength4096
MaximumFieldNameLength256
MaximumFieldValueLength1024
MaximumFields25
MaximumFooterLength2048
MaximumTitleLength256
MaximumTotalCharacters6000

Defined in

projects/utilities/packages/discord-utilities/src/lib/limits.ts:24


EmojiLimits

Const EmojiLimits: Object

Type declaration

NameTypeDescription
MaximumEmojiNameLength32

Defined in

projects/utilities/packages/discord-utilities/src/lib/limits.ts:69


EmojiRegex

Const EmojiRegex: RegExp

Defined in

projects/utilities/packages/discord-utilities/src/lib/regexes.ts:42


FormattedCustomEmoji

Const FormattedCustomEmoji: RegExp

Defined in

projects/utilities/packages/discord-utilities/src/lib/regexes.ts:49


FormattedCustomEmojiWithGroups

Const FormattedCustomEmojiWithGroups: RegExp

Defined in

projects/utilities/packages/discord-utilities/src/lib/regexes.ts:59


GuildLimits

Const GuildLimits: Object

Type declaration

NameTypeDescription
MaximumChannels500
MaximumRoles250

Defined in

projects/utilities/packages/discord-utilities/src/lib/limits.ts:79


GuildMemberLimits

Const GuildMemberLimits: Object

Type declaration

NameTypeDescription
MaximumDisplayNameLength32

Defined in

projects/utilities/packages/discord-utilities/src/lib/limits.ts:94


HttpUrlRegex

Const HttpUrlRegex: RegExp

Defined in

projects/utilities/packages/discord-utilities/src/lib/regexes.ts:66


InteractionLimits

Const InteractionLimits: Object

Type declaration

NameTypeDescription
MaximumButtonsPerActionRow5
MaximumOptionsInSelectMenus25
MaximumSelectMenusPerActionRow1
MaximumTextInputsPerActionRow1

Defined in

projects/utilities/packages/discord-utilities/src/lib/limits.ts:104


MessageLimits

Const MessageLimits: Object

Type declaration

NameTypeDescription
MaximumActionRows5
MaximumEmbeds10
MaximumLength2000
MaximumNitroLength4000
MaximumNitroUploadSize5000000000
MaximumReactions20
MaximumUploadSize8000000
MaximumUploadSizeInGuildreadonly [8000000, 8000000, 50000000, 100000000]

Defined in

projects/utilities/packages/discord-utilities/src/lib/limits.ts:219


MessageLinkRegex

Const MessageLinkRegex: RegExp

Defined in

projects/utilities/packages/discord-utilities/src/lib/regexes.ts:75


ModalLimits

Const ModalLimits: Object

Type declaration

NameTypeDescription
MaximumComponents5
MaximumCustomIdCharacters100
MaximumTitleCharacters45

Defined in

projects/utilities/packages/discord-utilities/src/lib/limits.ts:317


ModerationLimits

Const ModerationLimits: Object

Type declaration

NameTypeDescription
MaximumTimeoutDuration2419200

Defined in

projects/utilities/packages/discord-utilities/src/lib/limits.ts:267


ParsedCustomEmoji

Const ParsedCustomEmoji: RegExp

Defined in

projects/utilities/packages/discord-utilities/src/lib/regexes.ts:84


ParsedCustomEmojiWithGroups

Const ParsedCustomEmojiWithGroups: RegExp

Defined in

projects/utilities/packages/discord-utilities/src/lib/regexes.ts:95


RoleLimits

Const RoleLimits: Object

Type declaration

NameTypeDescription
MaximumNameLength100

Defined in

projects/utilities/packages/discord-utilities/src/lib/limits.ts:277


RoleMentionRegex

Const RoleMentionRegex: RegExp

Defined in

projects/utilities/packages/discord-utilities/src/lib/regexes.ts:102


SelectMenuLimits

Const SelectMenuLimits: Object

Type declaration

NameTypeDescription
MaximumCustomIdCharacters100
MaximumLengthOfNameOfOption100
MaximumMaxValuesSize25
MaximumMinValuesSize25
MaximumOptionsLength25
MaximumPlaceholderCharacters150

Defined in

projects/utilities/packages/discord-utilities/src/lib/limits.ts:184


SnowflakeRegex

Const SnowflakeRegex: RegExp

Defined in

projects/utilities/packages/discord-utilities/src/lib/regexes.ts:109


TextInputLimits

Const TextInputLimits: Object

Type declaration

NameTypeDescription
MaximumCustomIdCharacters100
MaximumLabelCharacters45
MaximumPlaceholderCharacters100
MaximumValueCharacters4000

Defined in

projects/utilities/packages/discord-utilities/src/lib/limits.ts:337


TokenRegex

Const TokenRegex: RegExp

Defined in

projects/utilities/packages/discord-utilities/src/lib/regexes.ts:121


TwemojiRegex

Const TwemojiRegex: RegExp

Defined in

projects/utilities/packages/discord-utilities/src/lib/TwemojiRegex.ts:5


UserLimits

Const UserLimits: Object

Type declaration

NameTypeDescription
MaximumBiographyLength190
MaximumUsersPerDMGroup10

Defined in

projects/utilities/packages/discord-utilities/src/lib/limits.ts:287


UserOrMemberMentionRegex

Const UserOrMemberMentionRegex: RegExp

Defined in

projects/utilities/packages/discord-utilities/src/lib/regexes.ts:128


WebSocketUrlRegex

Const WebSocketUrlRegex: RegExp

Defined in

projects/utilities/packages/discord-utilities/src/lib/regexes.ts:135


WebhookRegex

Const WebhookRegex: RegExp

Defined in

projects/utilities/packages/discord-utilities/src/lib/regexes.ts:145