disconnect method

Future<void> disconnect()

Disconnects the user from a voice channel

Example :

final member = guild.members.cache.get('240561194958716924');

if (member != null) {
  await member.disconnect();
}

Implementation

Future<void> disconnect() async {
  _updateChannel(null);
}