Skip to content

Commit

Permalink
use behavior over entity in voice connect method
Browse files Browse the repository at this point in the history
  • Loading branch information
lost-illusi0n committed Oct 21, 2021
1 parent f9ccb4c commit 0c037ae
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 0c037ae

Please sign in to comment.