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:
@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user