From 7fac368e3184bf9c0acb83bfd1a76a5782fdf92c Mon Sep 17 00:00:00 2001 From: SileNce5k Date: Thu, 7 Dec 2023 13:45:03 +0100 Subject: [PATCH] Fix embeds for custom command --- commands/misc/custom.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/commands/misc/custom.js b/commands/misc/custom.js index 318d2f1..1ab0060 100644 --- a/commands/misc/custom.js +++ b/commands/misc/custom.js @@ -3,7 +3,7 @@ const deleteCustomCommand = require("../../util/custom_commands/deleteCustomComm const getAllCustomCommands = require("../../util/custom_commands/getAllCustomCommands"); const getOwnerOfCustomCommand = require("../../util/custom_commands/getOwnerOfCustomCommand"); const renameCustomCommand = require("../../util/custom_commands/renameCustomCommand"); -const Discord = require('discord.js'); +const {EmbedBuilder} = require('discord.js'); const fs = require('fs'); const editCustomCommand = require("../../util/custom_commands/editCustomCommand"); @@ -56,7 +56,7 @@ module.exports = { break; case "list": - const embed = new Discord.MessageEmbed(); + const embed = new EmbedBuilder(); sendText = getAllCustomCommands(); if(sendText != ""){ embed.setColor(15780145)