Add sleep
This commit is contained in:
parent
bc63d5b938
commit
74506f178d
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user