removed now-unneeded .toJSON() for embeds

This commit is contained in:
Aster Fialla
2026-02-23 15:20:39 -05:00
parent 654338f88e
commit e31d9c2881

View File

@@ -50,7 +50,7 @@ cmds.memberCommand = async function(message, args) {
cmds.commandsMap.set('help', {
description: enums.help.SHORT_DESC_HELP,
async execute(message) {
const fields = [...cmds.entries()].map(([name, cmd]) => ({
const fields = [...cmds.commandsMap.entries()].map(([name, cmd]) => ({
name: `${messageHelper.prefix}${name}`,
value: cmd.description,
inline: true,
@@ -63,7 +63,7 @@ cmds.commandsMap.set('help', {
.setFooter({ text: `Prefix: ${messageHelper.prefix}` })
.setTimestamp();
await message.reply({ embeds: [embed.toJSON()] });
await message.reply({ embeds: [embed] });
},
})