connect(channel, options = {}) {
    const channelId = typeof channel === "object" ? channel?.id : channel;
    this.socket.manager.send(this.guild, {
      op: 4,
      d: {
        guild_id: this.guild,
        channel_id: channelId ? channelId : null,
        self_deaf: options.selfDeaf ?? false,
        self_mute: options.selfMute ?? false,
      },
    });
    this.channel = channelId;
    this.connected = !!channelId;
    return this;
  }
/**
   * Connects to the specified voice channel.
   * @param channel A channel id or object.
   * @param options Options for self mute, self deaf, or force connecting.
   * @since 2.1.x
   */
Connects to the specified voice channel.
@param channel A channel id or object.
@param options Options for self mute, self deaf, or force connecting.
Connects to the specified voice channel . @param channel A channel id or object . @param options Options for self mute self deaf or force connecting .
connect(channel, options = {}) {
    const channelId = typeof channel === "object" ? channel?.id : channel;
    this.socket.manager.send(this.guild, {
      op: 4,
      d: {
        guild_id: this.guild,
        channel_id: channelId ? channelId : null,
        self_deaf: options.selfDeaf ?? false,
        self_mute: options.selfMute ?? false,
      },
    });
    this.channel = channelId;
    this.connected = !!channelId;
    return this;
  }
connect ( channel , options = { } ) { const channelId = typeof channel === "object" ? channel ?. id : channel ; this . socket . manager . send ( this . guild , { op : 4 , d : { guild_id : this . guild , channel_id : channelId ? channelId : null , self_deaf : options . selfDeaf ?? false , self_mute : options . selfMute ?? false , } , } ) ; this . channel = channelId ; this . connected = ! ! channelId ; return this ; }
Connects to the specified voice channel.
Connects to the specified voice channel .