Fix embeds for custom command
This commit is contained in:
parent
96931c9952
commit
7fac368e31
1 changed files with 2 additions and 2 deletions
|
@ -3,7 +3,7 @@ const deleteCustomCommand = require("../../util/custom_commands/deleteCustomComm
|
||||||
const getAllCustomCommands = require("../../util/custom_commands/getAllCustomCommands");
|
const getAllCustomCommands = require("../../util/custom_commands/getAllCustomCommands");
|
||||||
const getOwnerOfCustomCommand = require("../../util/custom_commands/getOwnerOfCustomCommand");
|
const getOwnerOfCustomCommand = require("../../util/custom_commands/getOwnerOfCustomCommand");
|
||||||
const renameCustomCommand = require("../../util/custom_commands/renameCustomCommand");
|
const renameCustomCommand = require("../../util/custom_commands/renameCustomCommand");
|
||||||
const Discord = require('discord.js');
|
const {EmbedBuilder} = require('discord.js');
|
||||||
const fs = require('fs');
|
const fs = require('fs');
|
||||||
const editCustomCommand = require("../../util/custom_commands/editCustomCommand");
|
const editCustomCommand = require("../../util/custom_commands/editCustomCommand");
|
||||||
|
|
||||||
|
@ -56,7 +56,7 @@ module.exports = {
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case "list":
|
case "list":
|
||||||
const embed = new Discord.MessageEmbed();
|
const embed = new EmbedBuilder();
|
||||||
sendText = getAllCustomCommands();
|
sendText = getAllCustomCommands();
|
||||||
if(sendText != ""){
|
if(sendText != ""){
|
||||||
embed.setColor(15780145)
|
embed.setColor(15780145)
|
||||||
|
|
Loading…
Add table
Reference in a new issue