Give an error if the speaker doesnt init correctly

nostruct
Stein Ivar Berghei 2022-11-23 10:26:07 +01:00
parent 3a0c09c7e0
commit c6b4c061de
1 changed files with 4 additions and 1 deletions

View File

@ -34,6 +34,9 @@ func init() {
// app.voice.LogLevel = discordgo.LogDebug
discordspeaker.Init(app.voice)
err = discordspeaker.Init(app.voice)
if err != nil {
log.Fatal(err)
}
log.Println("discord.go done.")
}