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

EventSubChannelBanEvent

An EventSub event representing a user being banned in a channel.

Overview

Properties

broadcasterDisplayName

Type: string

The display name of the broadcaster from whose chat the user was banned.

broadcasterId

Type: string

The ID of the broadcaster from whose chat the user was banned.

broadcasterName

Type: string

The name of the broadcaster from whose chat the user was banned.

endDate

Type: Date | null

If it is a timeout, the date and time when the timeout will end. Will be null if permanent ban.

isPermanent

Type: boolean

Whether the ban is permanent.

moderatorDisplayName

Type: string

The display name of the moderator who issued the ban/timeout.

moderatorId

Type: string

The ID of the moderator who issued the ban/timeout.

moderatorName

Type: string

The name of the moderator who issued the ban/timeout.

reason

Type: string

The reason behind the ban.

userDisplayName

Type: string

The display name of the banned user.

userId

Type: string

The ID of the banned user.

userName

Type: string

The name of the banned user.

Methods

getBroadcaster()

async

Retrieves more information about the broadcaster.

Return type: HelixUser

getModerator()

async

Retrieves more information about the moderator.

Return type: HelixUser

getUser()

async

Retrieves more information about the banned user.

Return type: HelixUser