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

    Constructors

    Properties

    connected: boolean
    emoteOnly: boolean
    followersCoolDown: number
    followersOnly: boolean
    id: number
    name: string
    r9k: boolean
    rituals: boolean
    self: boolean
    slowCoolDown: number
    slowMode: boolean
    subsOnly: boolean

    Methods

    • Returns the amount of users in the channel

      Returns number

      The amount of users in the channel

      Client.channels.get('channel-id').getUserCount();
      
    • Returns if the bot is connected to the channel

      Returns boolean

      True if the bot is connected to the channel, false if not

      Client.channels.get('channel-id').isConnected();
      
    • Leaves from the channel

      Returns Promise<string>

      • The channel name
    • Sends a message to the channel

      Parameters

      • message: string

        The message to send

      • options: string | string[]

        The options to send the message with - Like a console.log()

      Returns Promise<void>

      Client.channels.get('channel-id').send('Hello World!');