Skip to content
GitHub

LocalizationKey

type alias in meocord/common Since 4.1.0

type LocalizationKey<C> = {
  [K in StringMessageKey<C>]: [Placeholders<MessageAt<C, K>>] extends [never]
    ? K
    : never
}[StringMessageKey<C>]

The keys Translator.localizations takes: a single string with no {params}, since Discord shows a command's name or description as written, with no plural forms.