From f12586e1f488ab5608be1d5e29835c0800ab4eb9 Mon Sep 17 00:00:00 2001 From: XboxBedrock <68715625+XboxBedrock@users.noreply.github.com> Date: Wed, 25 Oct 2023 22:21:38 -0700 Subject: [PATCH] we do some fixing --- src/commands/modpack.command.ts | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/src/commands/modpack.command.ts b/src/commands/modpack.command.ts index 1f91d497..76b8f439 100644 --- a/src/commands/modpack.command.ts +++ b/src/commands/modpack.command.ts @@ -7,7 +7,7 @@ import CommandMessage from "../struct/CommandMessage.js" import JSON5 from "json5" import fetch from "node-fetch" import sizeOf from "buffer-image-size" -import { isURL } from "@buildtheearth/bot-utils" +import { hexToNum, isURL } from "@buildtheearth/bot-utils" export default new Command({ name: "modpack", @@ -89,11 +89,16 @@ export default new Command({ const queue = format("queue") const store = format("store") - message.sendSuccess({ - author: { name: "Image list" }, - fields: [ - { name: "Queue", value: queue }, - { name: "Store", value: store } + message.send({ embeds: [ + { + author: { name: "Image list" }, + description: "### Queue\n" + queue, + color: hexToNum(client.config.colors.success) + }, + { + description: "### Store\n" + store, + color: hexToNum(client.config.colors.success) + }, ] }) } else if (subcommand === "set") {