vimcord 1.0.58 → 1.0.59

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.js CHANGED
@@ -875,13 +875,12 @@ var prefixCommandHandler = new EventBuilder({
875
875
  }
876
876
  }
877
877
  if (!prefixUsed) return;
878
- const contentWithoutPrefix = message.content.slice(prefixUsed.length).trim();
879
- const args = contentWithoutPrefix.split(/\s+/);
880
- const trigger = args.shift();
878
+ const contentWithoutPrefix = message.content.slice(prefixUsed.length).trimStart();
879
+ const trigger = contentWithoutPrefix.match(/^\S+/)?.[0];
881
880
  if (!trigger) return;
882
881
  const command = client.commands.prefix.get(trigger);
883
882
  if (!command) return;
884
- message.content = args.join(" ");
883
+ message.content = contentWithoutPrefix.slice(trigger.length).trimStart();
885
884
  try {
886
885
  return await command.run(client, client, message);
887
886
  } catch (err) {
@@ -1707,7 +1706,7 @@ var VimcordErrorHandler = class {
1707
1706
  import chalk2 from "chalk";
1708
1707
 
1709
1708
  // package.json
1710
- var version = "1.0.57";
1709
+ var version = "1.0.58";
1711
1710
 
1712
1711
  // src/client/vimcord.logger.ts
1713
1712
  var clientLoggerFactory = (client) => new Logger({ prefixEmoji: "\u26A1", prefix: `vimcord (i${client.clientId})` }).extend({