Skip to content

Commit

Permalink
fix: nil pointer exception
Browse files Browse the repository at this point in the history
  • Loading branch information
TheTipo01 committed Nov 30, 2023
1 parent 519025e commit 213f4b3
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion sound.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ func playSound(guildID string, el *queue.Element) bool {
err error
)

// Start speaking.
if server[guildID].vc == nil {
return false
}
_ = server[guildID].vc.Speaking(true)

for {
Expand Down

0 comments on commit 213f4b3

Please sign in to comment.