xernerx 4.0.3 → 4.0.5

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/main.d.ts CHANGED
@@ -9,5 +9,5 @@ export * from 'discord.js';
9
9
  export * from 'dumfunctions';
10
10
  import ExtensionBuilder from 'xernerx-extension-builder';
11
11
  import Discord from 'discord.js';
12
- declare const version = '4.0.2';
12
+ declare const version = '4.0.5';
13
13
  export { XernerxClient, MessageCommandBuilder, SlashCommandBuilder, ContextCommandBuilder, EventBuilder, InhibitorBuilder, ExtensionBuilder, Discord, version };
package/dist/main.js CHANGED
@@ -9,5 +9,5 @@ export * from 'discord.js';
9
9
  export * from 'dumfunctions';
10
10
  import ExtensionBuilder from 'xernerx-extension-builder';
11
11
  import Discord from 'discord.js';
12
- const version = '4.0.2';
12
+ const version = '4.0.5';
13
13
  export { XernerxClient, MessageCommandBuilder, SlashCommandBuilder, ContextCommandBuilder, EventBuilder, InhibitorBuilder, ExtensionBuilder, Discord, version };
@@ -146,7 +146,7 @@ export interface MessageCommandArgumentOptions {
146
146
  type: MessageCommandArgumentType;
147
147
  name: string;
148
148
  content?: Array<string>;
149
- match?: string;
149
+ match?: string | Array<string>;
150
150
  description?: string;
151
151
  default?: string | Function;
152
152
  separator?: string | RegExp;
@@ -30,7 +30,8 @@ export default async function commandValidation(event, command) {
30
30
  return false;
31
31
  }
32
32
  async function emit(event, reason) {
33
- return await event.client.emit('commandBlock', event, reason);
33
+ event.client.emit('commandBlock', event, reason);
34
+ return true;
34
35
  }
35
36
  function toBigInt(permissions) {
36
37
  let bigIntPermissions = 0n;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "xernerx",
3
- "version": "4.0.3",
3
+ "version": "4.0.5",
4
4
  "description": "A bot framework for discord.js.",
5
5
  "main": "dist/main.js",
6
6
  "type": "module",