twitcheasy-twitch-bottwitch-authtwitch-auth-tmitwitch-chat-clienttwitch-eventsubtwitch-pubsub-clienttwitch-webhooks

Bot

Overview

Properties

Methods

Constructor

new Bot(api, params)

ParameterTypeRequiredDefaultDescription
apiApiClientnonenone
paramsobjectnonesee below
params.channelstringnonenone
params.channelsundefined | Array<string> | () => T | Promise<T>nonenone
params.commandsArray<BotCommand>nonenone
params.debugbooleannonenone
params.prefixstringnonenone

Properties

api

Type: ApiClient

chat

Type: ChatClient

Methods

create(config)

staticasync
ParameterTypeRequiredDefaultDescription
configBotConfignonenone
Return type: Bot