mirror of https://github.com/MedzikUser/go-cdn
Fixed lint error
This commit is contained in:
parent
87933a3f92
commit
b30d28ac0e
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue