From b30d28ac0e866d26c7ca32479767ffe4371358f6 Mon Sep 17 00:00:00 2001 From: Medzik <8584366-Medzik@users.noreply.gitlab.com> Date: Thu, 15 Jul 2021 11:54:03 +0200 Subject: [PATCH] Fixed lint error --- discord/bot.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/discord/bot.go b/discord/bot.go index a7bdc37..300c48b 100644 --- a/discord/bot.go +++ b/discord/bot.go @@ -29,7 +29,10 @@ func Bot() { // DMIntents: disgord.IntentDirectMessages | disgord.IntentDirectMessageReactions | disgord.IntentDirectMessageTyping, }) - defer client.Gateway().StayConnectedUntilInterrupted() + defer func() { + err := client.Gateway().StayConnectedUntilInterrupted() + common.CheckErr(err, "stay bot connection") + }() filter, _ := std.NewMsgFilter(ctx, client)