Skip to content
This repository was archived by the owner on Dec 24, 2024. It is now read-only.

Commit 1f0cd40

Browse files
author
tnfAngel
committed
fix: šŸ› command error handler fix
1 parent 2de5941 commit 1f0cd40

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

ā€Žsrc/services/discord/events/messageCreate.tsā€Ž

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,7 +141,10 @@ module.exports = async (
141141
console.error(error);
142142
await message.reply({
143143
content: `:warning: Ocurrió un error al ejecutar el comando.
144-
${client.discord.util.toCodeBlock('ts', error.toString())}`,
144+
${client.discord.util.toCodeBlock(
145+
'ts',
146+
error.stack ?? `${error.name}: ${error.message}`
147+
)}`,
145148
});
146149
});
147150
}

0 commit comments

Comments
Ā (0)