xernerx 4.17.3 → 4.17.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.
Files changed (62) hide show
  1. package/dist/build/XernerxContextCommand.d.ts +75 -47
  2. package/dist/build/XernerxContextCommand.js +119 -115
  3. package/dist/build/XernerxEvent.d.ts +10 -10
  4. package/dist/build/XernerxEvent.js +17 -17
  5. package/dist/build/XernerxInhibitor.d.ts +39 -15
  6. package/dist/build/XernerxInhibitor.js +18 -18
  7. package/dist/build/XernerxMessageCommand.d.ts +78 -52
  8. package/dist/build/XernerxMessageCommand.js +118 -114
  9. package/dist/build/XernerxSlashCommand.d.ts +96 -62
  10. package/dist/build/XernerxSlashCommand.js +176 -172
  11. package/dist/client/XernerxClient.d.ts +55 -45
  12. package/dist/client/XernerxClient.js +83 -88
  13. package/dist/client/XernerxShardClient.d.ts +14 -14
  14. package/dist/client/XernerxShardClient.js +61 -47
  15. package/dist/functions/deploy.js +45 -52
  16. package/dist/functions/load.js +28 -29
  17. package/dist/functions/reload.js +23 -24
  18. package/dist/functions/setPresence.d.ts +1 -1
  19. package/dist/functions/setPresence.js +17 -16
  20. package/dist/functions/xernerxUser.js +5 -6
  21. package/dist/handlers/CommandHandler.d.ts +10 -10
  22. package/dist/handlers/CommandHandler.js +311 -336
  23. package/dist/handlers/EventHandler.d.ts +3 -3
  24. package/dist/handlers/EventHandler.js +48 -21
  25. package/dist/handlers/ExtensionHandler.d.ts +3 -3
  26. package/dist/handlers/ExtensionHandler.js +23 -23
  27. package/dist/handlers/Handler.d.ts +19 -14
  28. package/dist/handlers/Handler.js +46 -50
  29. package/dist/handlers/InhibitorHandler.d.ts +3 -3
  30. package/dist/handlers/InhibitorHandler.js +25 -23
  31. package/dist/handlers/IntegrationHandler.d.ts +6 -6
  32. package/dist/handlers/IntegrationHandler.js +20 -20
  33. package/dist/main.d.ts +28 -21
  34. package/dist/main.js +28 -21
  35. package/dist/models/Arguments.d.ts +4 -1
  36. package/dist/models/Arguments.js +134 -149
  37. package/dist/models/Cooldowns.d.ts +6 -6
  38. package/dist/models/Cooldowns.js +25 -29
  39. package/dist/tools/XernerxError.d.ts +4 -4
  40. package/dist/tools/XernerxError.js +8 -8
  41. package/dist/tools/XernerxIntents.d.ts +2 -2
  42. package/dist/tools/XernerxIntents.js +21 -21
  43. package/dist/tools/XernerxLog.d.ts +23 -23
  44. package/dist/tools/XernerxLog.js +125 -110
  45. package/dist/tools/XernerxText.d.ts +23 -23
  46. package/dist/tools/XernerxText.js +79 -89
  47. package/dist/types/extenders.d.ts +55 -47
  48. package/dist/types/interfaces.d.ts +192 -189
  49. package/dist/types/types.d.ts +104 -5
  50. package/dist/utils/ClientUtil.d.ts +12 -9
  51. package/dist/utils/ClientUtil.js +96 -79
  52. package/dist/utils/InteractionUtil.d.ts +13 -13
  53. package/dist/utils/InteractionUtil.js +148 -147
  54. package/dist/utils/MessageUtil.d.ts +14 -14
  55. package/dist/utils/MessageUtil.js +162 -161
  56. package/dist/utils/Util.d.ts +4 -4
  57. package/dist/utils/Util.js +7 -7
  58. package/dist/validators/commandValidation.d.ts +4 -1
  59. package/dist/validators/commandValidation.js +157 -114
  60. package/dist/validators/inhibitorValidations.d.ts +21 -2
  61. package/dist/validators/inhibitorValidations.js +39 -39
  62. package/package.json +3 -3
@@ -3,7 +3,7 @@ import XernerxClient from '../client/XernerxClient.js';
3
3
  import { EventHandlerOptions } from '../types/interfaces.js';
4
4
  import Handler from './Handler.js';
5
5
  export default class EventHandler extends Handler {
6
- readonly readyTimestamp: number;
7
- constructor(client: XernerxClient);
8
- loadEvents(options: EventHandlerOptions): Promise<void>;
6
+ readonly readyTimestamp: number;
7
+ constructor(client: XernerxClient);
8
+ loadEvents(options: EventHandlerOptions): Promise<void>;
9
9
  }
@@ -5,25 +5,52 @@ import * as path from 'path';
5
5
  import Handler from './Handler.js';
6
6
  import XernerxLog from '../tools/XernerxLog.js';
7
7
  export default class EventHandler extends Handler {
8
- constructor(client) {
9
- super(client);
10
- this.readyTimestamp = Number(Date.now());
11
- }
12
- async loadEvents(options) {
13
- const events = [];
14
- options = z
15
- .object({
16
- directory: z.string(),
17
- })
18
- .parse(options);
19
- this.client.modules.options.events = options;
20
- const files = this.readdir(options.directory, 'Events');
21
- for (const file of files) {
22
- const filepath = `${path.resolve(options.directory)}\\${file}`;
23
- const event = await this.load(filepath, 'Event');
24
- this.emit(event);
25
- events.push(event.id);
26
- }
27
- new XernerxLog(this.client).info(`Loaded ${Style.log(String(this.client.events.size), { color: Style.TextColor.Cyan })} Events: ${events.map((event) => Style.log(event, { color: Style.TextColor.LightYellow })).join(', ')}`);
28
- }
8
+ constructor(client) {
9
+ super(client);
10
+ this.readyTimestamp = Number(Date.now());
11
+ }
12
+ async loadEvents(options) {
13
+ const events = [];
14
+ options = z
15
+ .object({
16
+ directory: z.string(),
17
+ })
18
+ .parse(options);
19
+ this.client.modules.options.events = options;
20
+ const files = await this.readdir(options.directory, 'Events');
21
+ for (const file of files) {
22
+ const filepath = `${path.resolve(options.directory)}\\${file}`;
23
+ const event = await this.load(filepath, 'Event');
24
+ this.emit(event);
25
+ events.push(event.id);
26
+ }
27
+ new XernerxLog(this.client).info(
28
+ `Loaded ${Style.log(String(this.client.events.size), { color: Style.TextColor.Cyan })} Events: ${events.map((event) => Style.log(event, { color: Style.TextColor.LightYellow })).join(', ')}`
29
+ );
30
+ process.on('unhandledRejection', async (error) => {
31
+ if (this.client.settings.ceaseless) new XernerxLog(this.client).error('An uncaught error happpened, this is triggered from the ceaseless setting.', error);
32
+ const data = {
33
+ channel: null,
34
+ message: null,
35
+ user: null,
36
+ url: error.url || null,
37
+ stack: error.stack || error,
38
+ };
39
+ if (error.url) {
40
+ await error.url.match(/(channels|messages|servers|users)\/\d{10,100}/gim)?.map(async (identifier) => {
41
+ const [type, id] = identifier.split('/');
42
+ console.log(type, id);
43
+ switch (type) {
44
+ case 'channels':
45
+ return (data.channel = (await this.client.channels.fetch(id)) || id);
46
+ case 'messages' && data.channel:
47
+ return (data.message = (await data.channel.messages.cache.get(id)) || id);
48
+ case 'users':
49
+ return (data.user = (await this.client.users.fetch(id)) || id);
50
+ }
51
+ });
52
+ }
53
+ this.client.emit('processError', this.client, data);
54
+ });
55
+ }
29
56
  }
@@ -3,7 +3,7 @@ import XernerxExtensionBuilder from 'xernerx-extension-builder';
3
3
  import XernerxClient from '../client/XernerxClient.js';
4
4
  import Handler from './Handler.js';
5
5
  export default class ExtensionHandler extends Handler {
6
- readonly readyTimestamp: number;
7
- constructor(client: XernerxClient);
8
- loadExtensions(...extensions: Array<XernerxExtensionBuilder>): void;
6
+ readonly readyTimestamp: number;
7
+ constructor(client: XernerxClient);
8
+ loadExtensions(...extensions: Array<XernerxExtensionBuilder>): void;
9
9
  }
@@ -3,27 +3,27 @@ import { Style } from 'dumfunctions';
3
3
  import Handler from './Handler.js';
4
4
  import XernerxLog from '../tools/XernerxLog.js';
5
5
  export default class ExtensionHandler extends Handler {
6
- constructor(client) {
7
- super(client);
8
- this.readyTimestamp = Number(Date.now());
9
- }
10
- loadExtensions(...extensions) {
11
- const active = extensions.map((extension) => {
12
- try {
13
- if (extension.main)
14
- extension.main(this.client);
15
- if (extension.defer) {
16
- this.client.on('ready', (client) => extension.defer(client));
17
- }
18
- return extension.name;
19
- }
20
- catch (error) {
21
- return new XernerxLog(this.client).error(`An error occurred while loading ${Style.log(extension.name, { color: Style.TextColor.Red })}`, error);
22
- }
23
- });
24
- new XernerxLog(this.client).info(`Loaded ${Style.log(String(extensions.length), { color: Style.TextColor.Cyan })} Extensions: ${active
25
- .filter((e) => e)
26
- .map((event) => Style.log(event, { color: Style.TextColor.LightYellow }))
27
- .join(', ')}`);
28
- }
6
+ constructor(client) {
7
+ super(client);
8
+ this.readyTimestamp = Number(Date.now());
9
+ }
10
+ loadExtensions(...extensions) {
11
+ const active = extensions.map((extension) => {
12
+ try {
13
+ if (extension.main) extension.main(this.client);
14
+ if (extension.defer) {
15
+ this.client.on('ready', (client) => extension.defer(client));
16
+ }
17
+ return extension.name;
18
+ } catch (error) {
19
+ return new XernerxLog(this.client).error(`An error occurred while loading ${Style.log(extension.name, { color: Style.TextColor.Red })}`, error);
20
+ }
21
+ });
22
+ new XernerxLog(this.client).info(
23
+ `Loaded ${Style.log(String(extensions.length), { color: Style.TextColor.Cyan })} Extensions: ${active
24
+ .filter((e) => e)
25
+ .map((event) => Style.log(event, { color: Style.TextColor.LightYellow }))
26
+ .join(', ')}`
27
+ );
28
+ }
29
29
  }
@@ -6,18 +6,23 @@ import XernerxContextCommand from '../build/XernerxContextCommand.js';
6
6
  import { filetype } from '../types/types.js';
7
7
  import { XernerxClientEvents, XernerxEvent, XernerxInhibitor } from '../main.js';
8
8
  export default class Handler {
9
- readonly client: XernerxClient<unknown>;
10
- readonly files: Array<MessageCommandBuilder | XernerxSlashCommand | XernerxContextCommand>;
11
- constructor(client: XernerxClient);
12
- readdir(dir: string, type: string): string[];
13
- load(filepath: string, type: filetype): Promise<any>;
14
- /**
15
- * Emits a file that has been loaded into the handler.
16
- * @param file - The file to emit.
17
- */
18
- emit<File extends {
19
- name: string;
20
- filetype: 'MessageCommand' | 'SlashCommand' | 'ContextCommand';
21
- run: Function;
22
- } | XernerxInhibitor | XernerxEvent<keyof XernerxClientEvents>>(file: File): Promise<void>;
9
+ readonly client: XernerxClient<unknown>;
10
+ readonly files: Array<MessageCommandBuilder | XernerxSlashCommand | XernerxContextCommand>;
11
+ constructor(client: XernerxClient);
12
+ readdir(dir: string, type: string): Promise<string[]>;
13
+ load(filepath: string, type: filetype): Promise<any>;
14
+ /**
15
+ * Emits a file that has been loaded into the handler.
16
+ * @param file - The file to emit.
17
+ */
18
+ emit<
19
+ File extends
20
+ | {
21
+ name: string;
22
+ filetype: 'MessageCommand' | 'SlashCommand' | 'ContextCommand';
23
+ run: Function;
24
+ }
25
+ | XernerxInhibitor
26
+ | XernerxEvent<keyof XernerxClientEvents>,
27
+ >(file: File): Promise<void>;
23
28
  }
@@ -2,55 +2,51 @@
2
2
  import * as fs from 'fs';
3
3
  import * as path from 'path';
4
4
  import load from '../functions/load.js';
5
- import { Style } from '../main.js';
6
- import XernerxLog from '../tools/XernerxLog.js';
5
+ import { Style, XernerxLog } from '../main.js';
7
6
  export default class Handler {
8
- client;
9
- files;
10
- constructor(client) {
11
- this.client = client;
12
- this.files = [];
13
- }
14
- readdir(dir, type) {
15
- try {
16
- return fs.readdirSync(path.resolve(dir)).filter((file) => file.endsWith('.js'));
17
- }
18
- catch (error) {
19
- new XernerxLog(this.client).error(`Cannot load ${type.toLowerCase()}, there is no such directory ${Style.log(dir, { color: Style.BackgroundColor.Grey })}.`);
20
- }
21
- return [];
22
- }
23
- async load(filepath, type) {
24
- const file = await load(this.client, filepath, type);
25
- this.files.push(file);
26
- return file;
27
- }
28
- /**
29
- * Emits a file that has been loaded into the handler.
30
- * @param file - The file to emit.
31
- */
32
- async emit(file) {
33
- if (!file?.filetype)
34
- return;
35
- if (file.filetype === 'Inhibitor')
36
- return;
37
- if (file.filetype === 'Event' && file.emitter) {
38
- if (file.emitter === 'client') {
39
- this.client[file.once ? 'once' : 'on'](file.name, (...args) => file.run(...args));
40
- }
41
- else if (file.emitter === 'process') {
42
- process[file.once ? 'once' : 'on'](file.name, (...args) => file.run(...args));
43
- }
44
- else if (file.emitter === 'rest') {
45
- this.client.rest[file.once ? 'once' : 'on'](file.name, (...args) => file.run(...args));
46
- }
47
- else {
48
- // @ts-expect-error
49
- this.client[file.emitter][file.once ? 'once' : 'on'](file.name, (...args) => file.run(...args));
50
- }
51
- }
52
- else {
53
- this.client.on(file.name, (...args) => file.run(...args));
54
- }
55
- }
7
+ client;
8
+ files;
9
+ constructor(client) {
10
+ this.client = client;
11
+ this.files = [];
12
+ }
13
+ async readdir(dir, type) {
14
+ try {
15
+ return fs.readdirSync(path.resolve(dir)).filter((file) => file.endsWith('.js'));
16
+ } catch (error) {
17
+ // const spinner = clack.spinner();
18
+ // spinner.start();
19
+ new XernerxLog(this.client).error(`Cannot load ${type.toLowerCase()}, there is no such directory ${Style.log(dir, { color: Style.BackgroundColor.Grey })}.`);
20
+ // spinner.stop();
21
+ // console.log(c);
22
+ }
23
+ return [];
24
+ }
25
+ async load(filepath, type) {
26
+ const file = await load(this.client, filepath, type);
27
+ this.files.push(file);
28
+ return file;
29
+ }
30
+ /**
31
+ * Emits a file that has been loaded into the handler.
32
+ * @param file - The file to emit.
33
+ */
34
+ async emit(file) {
35
+ if (!file?.filetype) return;
36
+ if (file.filetype === 'Inhibitor') return;
37
+ if (file.filetype === 'Event' && file.emitter) {
38
+ if (file.emitter === 'client') {
39
+ this.client[file.once ? 'once' : 'on'](file.name, (...args) => file.run(...args));
40
+ } else if (file.emitter === 'process') {
41
+ process[file.once ? 'once' : 'on'](file.name, (...args) => file.run(...args));
42
+ } else if (file.emitter === 'rest') {
43
+ this.client.rest[file.once ? 'once' : 'on'](file.name, (...args) => file.run(...args));
44
+ } else {
45
+ // @ts-expect-error
46
+ this.client[file.emitter][file.once ? 'once' : 'on'](file.name, (...args) => file.run(...args));
47
+ }
48
+ } else {
49
+ this.client.on(file.name, (...args) => file.run(...args));
50
+ }
51
+ }
56
52
  }
@@ -3,7 +3,7 @@ import XernerxClient from '../client/XernerxClient.js';
3
3
  import Handler from './Handler.js';
4
4
  import { InhibitorHandlerOptions } from '../types/interfaces.js';
5
5
  export default class InhibitorHandler extends Handler {
6
- readonly readyTimestamp: number;
7
- constructor(client: XernerxClient);
8
- loadInhibitors(options: InhibitorHandlerOptions): Promise<void>;
6
+ readonly readyTimestamp: number;
7
+ constructor(client: XernerxClient);
8
+ loadInhibitors(options: InhibitorHandlerOptions): Promise<void>;
9
9
  }
@@ -5,27 +5,29 @@ import { Style } from 'dumfunctions';
5
5
  import Handler from './Handler.js';
6
6
  import XernerxLog from '../tools/XernerxLog.js';
7
7
  export default class InhibitorHandler extends Handler {
8
- constructor(client) {
9
- super(client);
10
- this.readyTimestamp = Number(Date.now());
11
- }
12
- async loadInhibitors(options) {
13
- const inhibitors = [];
14
- options = z
15
- .object({
16
- directory: z.string(),
17
- })
18
- .parse(options);
19
- this.client.modules.options.inhibitors = options;
20
- const files = this.readdir(options.directory, 'Inhibitors');
21
- for (const file of files) {
22
- const filepath = `${path.resolve(options.directory)}\\${file}`;
23
- const inhibitor = await this.load(filepath, 'Inhibitor');
24
- this.emit(inhibitor);
25
- inhibitors.push(inhibitor.id);
26
- }
27
- new XernerxLog(this.client).info(`Loaded ${Style.log(String(this.client.inhibitors.size), { color: Style.TextColor.Cyan })} Inhibitors: ${inhibitors
28
- .map((inhibitor) => Style.log(inhibitor, { color: Style.TextColor.LightYellow }))
29
- .join(', ')}`);
30
- }
8
+ constructor(client) {
9
+ super(client);
10
+ this.readyTimestamp = Number(Date.now());
11
+ }
12
+ async loadInhibitors(options) {
13
+ const inhibitors = [];
14
+ options = z
15
+ .object({
16
+ directory: z.string(),
17
+ })
18
+ .parse(options);
19
+ this.client.modules.options.inhibitors = options;
20
+ const files = await this.readdir(options.directory, 'Inhibitors');
21
+ for (const file of files) {
22
+ const filepath = `${path.resolve(options.directory)}\\${file}`;
23
+ const inhibitor = await this.load(filepath, 'Inhibitor');
24
+ this.emit(inhibitor);
25
+ inhibitors.push(inhibitor.id);
26
+ }
27
+ new XernerxLog(this.client).info(
28
+ `Loaded ${Style.log(String(this.client.inhibitors.size), { color: Style.TextColor.Cyan })} Inhibitors: ${inhibitors
29
+ .map((inhibitor) => Style.log(inhibitor, { color: Style.TextColor.LightYellow }))
30
+ .join(', ')}`
31
+ );
32
+ }
31
33
  }
@@ -3,13 +3,13 @@ import dbl from 'dbl-sdk';
3
3
  import XernerxClient from '../client/XernerxClient.js';
4
4
  import Handler from './Handler.js';
5
5
  export default class IntegrationHandler extends Handler {
6
- readonly readyTimestamp: number;
7
- readonly dbl: dbl;
8
- constructor(client: XernerxClient);
9
- loadIntegrations(options?: DBLOptions): Promise<void>;
6
+ readonly readyTimestamp: number;
7
+ readonly dbl: dbl;
8
+ constructor(client: XernerxClient);
9
+ loadIntegrations(options?: DBLOptions): Promise<void>;
10
10
  }
11
11
  interface DBLOptions {
12
- post?: boolean;
13
- votes?: boolean;
12
+ post?: boolean;
13
+ votes?: boolean;
14
14
  }
15
15
  export {};
@@ -3,24 +3,24 @@ import dbl from 'dbl-sdk';
3
3
  import XernerxLog from '../tools/XernerxLog.js';
4
4
  import Handler from './Handler.js';
5
5
  export default class IntegrationHandler extends Handler {
6
- constructor(client) {
7
- super(client);
8
- this.dbl = new dbl(client, client.config);
9
- this.readyTimestamp = Number(Date.now());
10
- }
11
- async loadIntegrations(options = { votes: true }) {
12
- this.client.once('ready', async (client) => {
13
- this.client.dbl.validate = (user) => this.dbl.validate(user);
14
- if (options.post) {
15
- this.dbl.post();
16
- }
17
- if (options.votes) {
18
- this.dbl.votes();
19
- this.client.on('dbl-sync', (client, responses) => {
20
- this.client.stats.voteCount = responses.voteCount;
21
- });
22
- }
23
- });
24
- new XernerxLog(this.client).info(`Successfully syncing with top.gg.`);
25
- }
6
+ constructor(client) {
7
+ super(client);
8
+ this.dbl = new dbl(client, client.config);
9
+ this.readyTimestamp = Number(Date.now());
10
+ }
11
+ async loadIntegrations(options = { votes: true }) {
12
+ this.client.once('ready', async (client) => {
13
+ this.client.dbl.validate = (user) => this.dbl.validate(user);
14
+ if (options.post) {
15
+ this.dbl.post();
16
+ }
17
+ if (options.votes) {
18
+ this.dbl.votes();
19
+ this.client.on('dbl-sync', (client, responses) => {
20
+ this.client.stats.voteCount = responses.voteCount;
21
+ });
22
+ }
23
+ });
24
+ new XernerxLog(this.client).info(`Successfully syncing with top.gg.`);
25
+ }
26
26
  }
package/dist/main.d.ts CHANGED
@@ -17,24 +17,31 @@ export * from './types/types.js';
17
17
  export * from './types/extenders.js';
18
18
  export * from './types/interfaces.js';
19
19
  export default XernerxClient;
20
- export {
21
- /**
22
- ** Clients
23
- */
24
- XernerxClient, XernerxShardClient,
25
- /**
26
- ** Builders
27
- */
28
- XernerxMessageCommand, XernerxSlashCommand, XernerxContextCommand, XernerxEvent, XernerxInhibitor, XernerxExtension,
29
- /**
30
- ** Imported exports
31
- */
32
- Discord,
33
- /**
34
- ** Properties
35
- */
36
- version,
37
- /**
38
- ** Tools
39
- */
40
- XernerxLog, };
20
+ export {
21
+ /**
22
+ ** Clients
23
+ */
24
+ XernerxClient,
25
+ XernerxShardClient,
26
+ /**
27
+ ** Builders
28
+ */
29
+ XernerxMessageCommand,
30
+ XernerxSlashCommand,
31
+ XernerxContextCommand,
32
+ XernerxEvent,
33
+ XernerxInhibitor,
34
+ XernerxExtension,
35
+ /**
36
+ ** Imported exports
37
+ */
38
+ Discord,
39
+ /**
40
+ ** Properties
41
+ */
42
+ version,
43
+ /**
44
+ ** Tools
45
+ */
46
+ XernerxLog,
47
+ };
package/dist/main.js CHANGED
@@ -19,24 +19,31 @@ export * from './types/types.js';
19
19
  export * from './types/extenders.js';
20
20
  export * from './types/interfaces.js';
21
21
  export default XernerxClient;
22
- export {
23
- /**
24
- ** Clients
25
- */
26
- XernerxClient, XernerxShardClient,
27
- /**
28
- ** Builders
29
- */
30
- XernerxMessageCommand, XernerxSlashCommand, XernerxContextCommand, XernerxEvent, XernerxInhibitor, XernerxExtension,
31
- /**
32
- ** Imported exports
33
- */
34
- Discord,
35
- /**
36
- ** Properties
37
- */
38
- version,
39
- /**
40
- ** Tools
41
- */
42
- XernerxLog, };
22
+ export {
23
+ /**
24
+ ** Clients
25
+ */
26
+ XernerxClient,
27
+ XernerxShardClient,
28
+ /**
29
+ ** Builders
30
+ */
31
+ XernerxMessageCommand,
32
+ XernerxSlashCommand,
33
+ XernerxContextCommand,
34
+ XernerxEvent,
35
+ XernerxInhibitor,
36
+ XernerxExtension,
37
+ /**
38
+ ** Imported exports
39
+ */
40
+ Discord,
41
+ /**
42
+ ** Properties
43
+ */
44
+ version,
45
+ /**
46
+ ** Tools
47
+ */
48
+ XernerxLog,
49
+ };
@@ -6,4 +6,7 @@ import { XernerxMessage, XernerxMessageContextInteraction, XernerxSlashInteracti
6
6
  import { MessageCommandArguments } from '../types/interfaces.js';
7
7
  import { XernerxInteraction } from '../types/types.js';
8
8
  export declare function messageArguments(message: XernerxMessage, command: MessageCommandBuilder, prefix: string): Promise<MessageCommandArguments>;
9
- export declare function interactionArguments(interaction: XernerxInteraction<XernerxSlashInteraction | XernerxUserContextInteraction | XernerxMessageContextInteraction> | any, command: XernerxContextCommand | XernerxSlashCommand): Promise<any>;
9
+ export declare function interactionArguments(
10
+ interaction: XernerxInteraction<XernerxSlashInteraction | XernerxUserContextInteraction | XernerxMessageContextInteraction> | any,
11
+ command: XernerxContextCommand | XernerxSlashCommand
12
+ ): Promise<any>;