reciple 1.0.11 → 1.0.12

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.
@@ -104,7 +104,7 @@ class MessageCommandBuilder {
104
104
  const arg = args[i];
105
105
  if (!arg && option.required)
106
106
  return;
107
- if (!option.validate(arg))
107
+ if (typeof arg !== 'undefined' && !option.validate(arg))
108
108
  return;
109
109
  result = [...result, { name: option.name, value: arg, required: option.required }];
110
110
  i++;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "reciple",
3
- "version": "1.0.11",
3
+ "version": "1.0.12",
4
4
  "description": "A Discord.js bot",
5
5
  "author": "FalloutStudios",
6
6
  "license": "GPL-3.0",