{}
The preferred authentication method for authorized actions such as moderation.
authMethod?:
BotAuthMethod
Aliased type: "bot" | "broadcaster"
The {@link AuthProvider} instance to use for authenticating the bot and its users.
The channel to join.
channel?: string
The channels to join.
channels?: ResolvableValue<string[]>
Additional options to pass to the constructor of the underlying {@link ChatClient}.
chatClientOptions?: Omit<ChatClientOptions, "authProvider" | "channels">
The commands to register.
commands?: BotCommand[]
Whether to enable debug logs.
debug?: boolean
Whether to receive `onMessage` events for message that were already handled as a command.
emitCommandMessageEvents?: boolean
The prefix for all commands.
prefix?: string
Properties
authMethod
Type: BotAuthMethodAliased type: "bot" | "broadcaster"
Aliased type: "bot" | "broadcaster"
The preferred authentication method for authorized actions such as moderation.
Defaults to bot authentication.
Some methods can only use broadcaster authentication - they will be marked as such.
authProvider
Type: AuthProvider
The AuthProvider instance to use for authenticating the bot and its users.
chatClientOptions
Type: ?Omit<ChatClientOptions, "authProvider" | "channels">
Additional options to pass to the constructor of the underlying ChatClient.
emitCommandMessageEvents
Type: ?boolean
Whether to receive onMessage
events for message that were already handled as a command.