Function VoiceClient.disconnect

Disconnects from the voice channel. If clean is true, waits to finish playing.

Prototype

void disconnect(
  bool clean = true
);