Skip to main content

Variable: toTitleCaseDiscordJsVariants

const toTitleCaseDiscordJsVariants: Record<string, string>

The variants that will not strictly follow the toTitleCase algorithm and will instead return the value matched with the key.

This table lists how certain terms are converted. Any terms not included are converted to regular Titlecase.

TermConverted To
textchannelTextChannel
voicechannelVoiceChannel
categorychannelCategoryChannel
guildmemberGuildMember

Source

lib/toTitleCase.ts:16