Add sleep
This commit is contained in:
parent
bc63d5b938
commit
74506f178d
@ -16,6 +16,7 @@ import (
|
||||
"github.com/rxdn/gdl/rest"
|
||||
"strconv"
|
||||
"strings"
|
||||
"time"
|
||||
)
|
||||
|
||||
func WhitelabelPost() func(*gin.Context) {
|
||||
@ -73,6 +74,9 @@ func WhitelabelPost() func(*gin.Context) {
|
||||
return
|
||||
}
|
||||
|
||||
// Allow some time for the database change to be propagated
|
||||
time.Sleep(time.Millisecond * 500)
|
||||
|
||||
// Set intents
|
||||
var currentFlags application.Flag = 0
|
||||
if bot.Flags != nil {
|
||||
|
Loading…
x
Reference in New Issue
Block a user