leave
fun GatewayDiscordClient.leave(guildId: Snowflake, selfMute: Boolean = false, selfDeaf: Boolean = false): Mono<Void>
Disconnects from the channel on guildId.
Important: If you want to use want to use this with Lavalink call installVoiceHandler first.
Java users use:
Discord4JUtils.leave(gatewayClient, guildId);
Content copied to clipboard