From c6b4c061de625fc56df123d83bef2fb3eee68fb4 Mon Sep 17 00:00:00 2001 From: Stein Ivar Berghei Date: Wed, 23 Nov 2022 10:26:07 +0100 Subject: [PATCH] Give an error if the speaker doesnt init correctly --- discord.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/discord.go b/discord.go index 06c556c..d54b631 100644 --- a/discord.go +++ b/discord.go @@ -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.") }