TwurpleAuthenticationGetting dataExamplesFAQMigration

Main classes

HelixBan

Information about the ban of a user.

Overview

Properties

creationDate

Type: Date

The date and time that the ban/timeout was created.

expiryDate

Type: Date | null

The date and time that the timeout will end. Is null if the user was banned instead of put in a timeout.

moderatorDisplayName

Type: string

The display name of the moderator that banned or put the user in the timeout.

moderatorId

Type: string

The ID of the moderator that banned or put the user in the timeout.

moderatorName

Type: string

The name of the moderator that banned or put the user in the timeout.

reason

Type: string | null

The reason why the user was banned or timed out. Returns null if no reason was given.

userDisplayName

Type: string

The display name of the user that was banned or put in a timeout.

userId

Type: string

The ID of the user that was banned or put in a timeout.

userName

Type: string

The name of the user that was banned or put in a timeout.

Methods

getModerator()

async

Gets more information about the moderator that banned or put the user in the timeout.

Return type: HelixUser

getUser()

async

Gets more information about the user that was banned or put in a timeout.

Return type: HelixUser