We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 117bac3 + 94abe45 commit 340881bCopy full SHA for 340881b
1 file changed
src/events/messageCreate.ts
@@ -18,7 +18,7 @@ export async function handleMessageCreate(
18
) return;
19
20
// Split command and arguments
21
- const args = message.content.slice(1).trim().split(/ +/);
+ const args = message.content.slice(config.prefix!.length).trim().split(/ +/);
22
23
// If no command provided, ignore
24
if (args.length === 0) {
@@ -41,4 +41,4 @@ export async function handleMessageCreate(
41
await message.react('❌');
42
await message.reply(`❌ **Error**: Unknown command. Use \`${config.prefix}help\` to see available commands.`);
43
}
44
-}
+}
0 commit comments