how did i never catch this, if prefix is not 2 characters it breaks, this allows it to be anything

This commit is contained in:
Ean Milligan 2025-05-01 18:20:23 -04:00
parent 7230a7e6b5
commit 6ab0923d71
1 changed files with 1 additions and 1 deletions

View File

@ -50,7 +50,7 @@ export const roll = async (message: DiscordenoMessage, args: string[], command:
}
// Rejoin all of the args and send it into the solver, if solver returns a falsy item, an error object will be substituted in
const rollCmd = message.content.substring(2);
const rollCmd = message.content.substring(config.prefix.length);
queueRoll({
apiRoll: false,