From 6ab0923d71c495d571a4793c6e9c924ec915ea94 Mon Sep 17 00:00:00 2001 From: Ean Milligan Date: Thu, 1 May 2025 18:20:23 -0400 Subject: [PATCH] how did i never catch this, if prefix is not 2 characters it breaks, this allows it to be anything --- src/commands/roll.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/commands/roll.ts b/src/commands/roll.ts index f686961..bc2f535 100644 --- a/src/commands/roll.ts +++ b/src/commands/roll.ts @@ -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,