From 7a0fcb2d049356a70692cd2e37ec2ac27ebe3679 Mon Sep 17 00:00:00 2001 From: Lost Date: Tue, 19 Oct 2021 20:05:45 -0400 Subject: [PATCH] use behavior over entity in voice connect method --- .../main/kotlin/behavior/channel/BaseVoiceChannelBehavior.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/main/kotlin/behavior/channel/BaseVoiceChannelBehavior.kt b/core/src/main/kotlin/behavior/channel/BaseVoiceChannelBehavior.kt index 9e45a28df996..171aaee89272 100644 --- a/core/src/main/kotlin/behavior/channel/BaseVoiceChannelBehavior.kt +++ b/core/src/main/kotlin/behavior/channel/BaseVoiceChannelBehavior.kt @@ -39,7 +39,7 @@ public interface BaseVoiceChannelBehavior : TopGuildChannelBehavior { @KordVoice public suspend fun connect(builder: VoiceConnectionBuilder.() -> Unit): VoiceConnection { val voiceConnection = VoiceConnection( - getGuild().gateway ?: GatewayNotFoundException.voiceConnectionGatewayNotFound(guildId), + guild.gateway ?: GatewayNotFoundException.voiceConnectionGatewayNotFound(guildId), kord.selfId, id, guildId,