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.cjs CHANGED
@@ -987,13 +987,12 @@ var prefixCommandHandler = new EventBuilder({
987
987
  }
988
988
  }
989
989
  if (!prefixUsed) return;
990
- const contentWithoutPrefix = message.content.slice(prefixUsed.length).trim();
991
- const args = contentWithoutPrefix.split(/\s+/);
992
- const trigger = args.shift();
990
+ const contentWithoutPrefix = message.content.slice(prefixUsed.length).trimStart();
991
+ const trigger = contentWithoutPrefix.match(/^\S+/)?.[0];
993
992
  if (!trigger) return;
994
993
  const command = client.commands.prefix.get(trigger);
995
994
  if (!command) return;
996
- message.content = args.join(" ");
995
+ message.content = contentWithoutPrefix.slice(trigger.length).trimStart();
997
996
  try {
998
997
  return await command.run(client, client, message);
999
998
  } catch (err) {
@@ -1801,7 +1800,7 @@ var VimcordErrorHandler = class {
1801
1800
  var import_chalk2 = __toESM(require("chalk"));
1802
1801
 
1803
1802
  // package.json
1804
- var version = "1.0.57";
1803
+ var version = "1.0.58";
1805
1804
 
1806
1805
  // src/client/vimcord.logger.ts
1807
1806
  var clientLoggerFactory = (client) => new Logger({ prefixEmoji: "\u26A1", prefix: `vimcord (i${client.clientId})` }).extend({