Add sleep

This commit is contained in:
rxdn 2024-06-19 00:18:23 +01:00
parent bc63d5b938
commit 74506f178d

View File

@ -16,6 +16,7 @@ import (
"github.com/rxdn/gdl/rest" "github.com/rxdn/gdl/rest"
"strconv" "strconv"
"strings" "strings"
"time"
) )
func WhitelabelPost() func(*gin.Context) { func WhitelabelPost() func(*gin.Context) {
@ -73,6 +74,9 @@ func WhitelabelPost() func(*gin.Context) {
return return
} }
// Allow some time for the database change to be propagated
time.Sleep(time.Millisecond * 500)
// Set intents // Set intents
var currentFlags application.Flag = 0 var currentFlags application.Flag = 0
if bot.Flags != nil { if bot.Flags != nil {