Fix slash command creation
This commit is contained in:
parent
d90e6ac262
commit
9d23c3ef39
@ -8,6 +8,7 @@ import (
|
||||
"github.com/TicketsBot/worker/bot/command/impl/admin"
|
||||
"github.com/TicketsBot/worker/bot/command/manager"
|
||||
"github.com/gin-gonic/gin"
|
||||
"github.com/rxdn/gdl/objects/interaction"
|
||||
"github.com/rxdn/gdl/rest"
|
||||
"time"
|
||||
)
|
||||
@ -95,6 +96,7 @@ func GetWhitelabelCreateInteractions() func(*gin.Context) {
|
||||
Name: option.Name,
|
||||
Description: option.Description,
|
||||
Options: option.Options,
|
||||
Type: interaction.ApplicationCommandTypeChatInput,
|
||||
}
|
||||
|
||||
interactions = append(interactions, data)
|
||||
|
Loading…
x
Reference in New Issue
Block a user