1
1
mirror of https://github.com/Burn-E99/TheArtificer.git synced 2026-01-06 20:37:54 -05:00

only add prefix to rolls that need it

This commit is contained in:
Ean Milligan
2025-07-09 14:41:43 -04:00
parent e0fdb1eb31
commit 515021a295

View File

@ -40,7 +40,7 @@ export const roll = async (message: DiscordenoMessage, args: string[], command:
// Rest of this command is in a try-catch to protect all sends/edits from erroring out
try {
const originalCommand = `${config.prefix}${command}${command.length === 0 ? args.join('').trim() : args.join('')}`;
const originalCommand = `${command ? config.prefix : ''}${command}${command.length === 0 ? args.join('').trim() : args.join('')}`;
const m = await message.reply(rollingEmbed);