Fixed lint error

This commit is contained in:
Medzik 2021-07-15 11:54:03 +02:00
parent 87933a3f92
commit b30d28ac0e
1 changed files with 4 additions and 1 deletions

View File

@ -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)