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
1 changed files with 1 additions and 1 deletions

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);