Skip to main content

Type Alias: CommandOption

type CommandOption: CommandOptionCommon & object | CommandOptionCommon & object;

Discriminated union:

  • If type is 'channel', allow optional channelTypes: ChannelType[]
  • Otherwise (or if type omitted), forbid channelTypes.