fixed customization module implementation

This commit is contained in:
2024-04-14 16:15:57 +02:00
parent a0269f37f8
commit d308a2cfc8
9 changed files with 18 additions and 30 deletions

View File

@@ -4,6 +4,7 @@ import (
"github.com/disgoorg/disgo/discord"
"github.com/disgoorg/disgo/events"
"github.com/sirupsen/logrus"
"github.com/vaporvee/acecore/custom"
)
var cmd_ask = Command{
@@ -29,7 +30,7 @@ var cmd_ask = Command{
},
Interact: func(e *events.ApplicationCommandInteractionCreate) {
err := e.CreateMessage(discord.NewMessageCreateBuilder().
AddEmbeds(discord.NewEmbedBuilder().SetImage(simpleGetFromAPI("image", "https://yesno.wtf/api").(string)).SetColor(hexToDecimal(color["primary"])).Build()).
AddEmbeds(discord.NewEmbedBuilder().SetImage(simpleGetFromAPI("image", "https://yesno.wtf/api").(string)).SetColor(custom.GetColor("primary")).Build()).
Build())
if err != nil {
logrus.Error(err)