Skip to content

Warning

Represents a warning.

Extends

  • Base<T>

Type parameters

Type parameter
T extends EventSubConnection

Constructors

new Warning()

1
new Warning<T>(chatbot: ChatBot<T>, data: Warning): Warning<T>

Creates a new instance of a warning.

Parameters

ParameterTypeDescription
chatbotChatBot<T>The current instance of the chatbot.
dataWarningThe data of the warning returned by the API.

Returns

Warning<T>

Overrides

Base<T>.constructor

Source

twitchfy/packages/chatbot/src/structures/Warning.ts:21

Properties

PropertyModifierTypeDescriptionInherited from
chatbotreadonlyChatBot<T>The current instance of the chatbot.Base.chatbot

Accessors

broadcasterId

1
get broadcasterId(): string

The Id of the channel’s broadcaster where the user received the warning.

Returns

string

Source

twitchfy/packages/chatbot/src/structures/Warning.ts:29


chatroomId

1
get chatroomId(): string

The Id of the chatroom where the warning was received.

Returns

string

Source

twitchfy/packages/chatbot/src/structures/Warning.ts:36


moderatorId

1
get moderatorId(): string

The Id of the moderator who warned the user.

Returns

string

Source

twitchfy/packages/chatbot/src/structures/Warning.ts:52


reason

1
get reason(): string

The reason for the warning.

Returns

string

Source

twitchfy/packages/chatbot/src/structures/Warning.ts:60


userId

1
get userId(): string

The Id of the user who received the warning.

Returns

string

Source

twitchfy/packages/chatbot/src/structures/Warning.ts:44