@twitchapis/twitch.js - v2.0.0-beta.6
    Preparing search index...

    Class UserStructure

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    admin: boolean
    badges: any
    broadcaster: boolean
    client: Client
    color: string
    displayName: string
    globalMod: boolean
    haveBadges: boolean
    id: string
    mod: boolean
    name: string
    premium: boolean
    self: boolean
    staff: boolean
    subscriber: boolean
    turbo: boolean
    username: string
    userType: boolean
    vip: boolean

    Methods

    • Ban user on a channel

      Parameters

      • reason: string = ''

        The reason for the ban

      Returns Promise<void>

    • Timeout user on a channel

      Parameters

      • Params: { reason: string; seconds?: number }

        the timeout params

        • reason: string

          The reason why this user got a timeout

        • Optionalseconds?: number

          The time in seconds to timeout this user

      Returns Promise<void>