static updateActivity() {
    let numStreams = Object.keys(this.onlineChannels).length;
    let activity = `${numStreams} stream${numStreams == 1 ? "" : "s"}`;
    this.discordClient.user.setActivity(activity, {
      "type": "WATCHING"
    });

    logger.log('[StreamActivity]', `Update current activity: watching ${activity}.`);
  }
/**
   * Updates the user activity on Discord.
   * Either clears the activity if no channels are online, or sets it to "watching" if a stream is up.
   */
Updates the user activity on Discord.
Either clears the activity if no channels are online, or sets it to "watching" if a stream is up.
Updates the user activity on Discord . Either clears the activity if no channels are online or sets it to " watching " if a stream is up .
static updateActivity() {
    let numStreams = Object.keys(this.onlineChannels).length;
    let activity = `${numStreams} stream${numStreams == 1 ? "" : "s"}`;
    this.discordClient.user.setActivity(activity, {
      "type": "WATCHING"
    });
    logger.log('[StreamActivity]', `Update current activity: watching ${activity}.`);
  }
static updateActivity ( ) { let numStreams = Object . keys ( this . onlineChannels ) . length ; let activity = ` ${ numStreams } ${ numStreams == 1 ? "" : "s" } ` ; this . discordClient . user . setActivity ( activity , { "type" : "WATCHING" } ) ; logger . log ( '[StreamActivity]' , ` ${ activity } ` ) ; }
Updates the user activity on Discord.
Updates the user activity on Discord .