xernerx 4.4.11 → 4.4.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.
Files changed (87) hide show
  1. package/dist/build/ContextCommandBuilder.d.ts +43 -0
  2. package/dist/build/ContextCommandBuilder.d.ts.map +1 -0
  3. package/dist/build/EventBuilder.d.ts +25 -0
  4. package/dist/build/EventBuilder.d.ts.map +1 -0
  5. package/dist/build/InhibitorBuilder.d.ts +20 -0
  6. package/dist/build/InhibitorBuilder.d.ts.map +1 -0
  7. package/dist/build/MessageCommandBuilder.d.ts +42 -0
  8. package/dist/build/MessageCommandBuilder.d.ts.map +1 -0
  9. package/dist/build/SlashCommandBuilder.d.ts +48 -0
  10. package/dist/build/SlashCommandBuilder.d.ts.map +1 -0
  11. package/dist/client/XernerxClient.d.ts +43 -0
  12. package/dist/client/XernerxClient.d.ts.map +1 -0
  13. package/dist/client/XernerxShardClient.d.ts +17 -0
  14. package/dist/client/XernerxShardClient.d.ts.map +1 -0
  15. package/dist/client/XernerxShardClient.js +31 -0
  16. package/dist/client/XernerxShardClient.js.map +1 -0
  17. package/dist/functions/delay.d.ts +2 -0
  18. package/dist/functions/delay.d.ts.map +1 -0
  19. package/dist/functions/delay.js +4 -0
  20. package/dist/functions/delay.js.map +1 -0
  21. package/dist/functions/deploy.d.ts +3 -0
  22. package/dist/functions/deploy.d.ts.map +1 -0
  23. package/dist/functions/isOwner.d.ts +4 -0
  24. package/dist/functions/isOwner.d.ts.map +1 -0
  25. package/dist/functions/isVoter.d.ts +4 -0
  26. package/dist/functions/isVoter.d.ts.map +1 -0
  27. package/dist/functions/load.d.ts +4 -0
  28. package/dist/functions/load.d.ts.map +1 -0
  29. package/dist/functions/reload.d.ts +3 -0
  30. package/dist/functions/reload.d.ts.map +1 -0
  31. package/dist/functions/sendWebhook.d.ts +3 -0
  32. package/dist/functions/sendWebhook.d.ts.map +1 -0
  33. package/dist/functions/sendWebhook.js +14 -0
  34. package/dist/functions/sendWebhook.js.map +1 -0
  35. package/dist/functions/setPresence.d.ts +4 -0
  36. package/dist/functions/setPresence.d.ts.map +1 -0
  37. package/dist/functions/xernerxUser.d.ts +4 -0
  38. package/dist/functions/xernerxUser.d.ts.map +1 -0
  39. package/dist/handlers/CommandHandler.d.ts +14 -0
  40. package/dist/handlers/CommandHandler.d.ts.map +1 -0
  41. package/dist/handlers/EventHandler.d.ts +8 -0
  42. package/dist/handlers/EventHandler.d.ts.map +1 -0
  43. package/dist/handlers/ExtensionHandler.d.ts +8 -0
  44. package/dist/handlers/ExtensionHandler.d.ts.map +1 -0
  45. package/dist/handlers/Handler.d.ts +15 -0
  46. package/dist/handlers/Handler.d.ts.map +1 -0
  47. package/dist/handlers/InhibitorHandler.d.ts +8 -0
  48. package/dist/handlers/InhibitorHandler.d.ts.map +1 -0
  49. package/dist/handlers/WebhookHandler.d.ts +10 -0
  50. package/dist/handlers/WebhookHandler.d.ts.map +1 -0
  51. package/dist/main.d.ts +39 -0
  52. package/dist/main.d.ts.map +1 -0
  53. package/dist/main.js +3 -0
  54. package/dist/main.js.map +1 -13
  55. package/dist/models/Arguments.d.ts +9 -0
  56. package/dist/models/Arguments.d.ts.map +1 -0
  57. package/dist/tools/XernerxError.d.ts +7 -0
  58. package/dist/tools/XernerxError.d.ts.map +1 -0
  59. package/dist/tools/XernerxError.js +11 -0
  60. package/dist/tools/XernerxError.js.map +1 -0
  61. package/dist/tools/XernerxLog.d.ts +15 -0
  62. package/dist/tools/XernerxLog.d.ts.map +1 -0
  63. package/dist/types/extenders.d.ts +33 -0
  64. package/dist/types/extenders.d.ts.map +1 -0
  65. package/dist/types/extenders.js +2 -0
  66. package/dist/types/extenders.js.map +1 -0
  67. package/dist/types/interfaces.d.ts +231 -0
  68. package/dist/types/interfaces.d.ts.map +1 -0
  69. package/dist/types/types.d.ts +14 -0
  70. package/dist/types/types.d.ts.map +1 -0
  71. package/dist/types/types.js +2 -0
  72. package/dist/types/types.js.map +1 -0
  73. package/dist/utils/ClientUtil.d.ts +11 -0
  74. package/dist/utils/ClientUtil.d.ts.map +1 -0
  75. package/dist/utils/InteractionUtil.d.ts +11 -0
  76. package/dist/utils/InteractionUtil.d.ts.map +1 -0
  77. package/dist/utils/MessageUtil.d.ts +16 -0
  78. package/dist/utils/MessageUtil.d.ts.map +1 -0
  79. package/dist/utils/Util.d.ts +6 -0
  80. package/dist/utils/Util.d.ts.map +1 -0
  81. package/dist/validators/commandValidation.d.ts +7 -0
  82. package/dist/validators/commandValidation.d.ts.map +1 -0
  83. package/dist/validators/inhibitorValidations.d.ts +6 -0
  84. package/dist/validators/inhibitorValidations.d.ts.map +1 -0
  85. package/dist/validators/inhibitorValidations.js +35 -0
  86. package/dist/validators/inhibitorValidations.js.map +1 -0
  87. package/package.json +1 -1
@@ -0,0 +1,43 @@
1
+ import { ContextMenuCommandBuilder } from 'discord.js';
2
+ import XernerxClient from '../client/XernerxClient.js';
3
+ import { XernerxMessage, XernerxMessageContextInteraction, XernerxUser, XernerxUserContextInteraction } from '../types/extenders.js';
4
+ import { ContextCommandOptions } from '../types/interfaces.js';
5
+ export default class ContextCommandBuilder {
6
+ readonly id: string;
7
+ readonly data: ContextMenuCommandBuilder;
8
+ readonly name: string;
9
+ readonly type: 'user' | 'message';
10
+ readonly description: string | null | undefined;
11
+ readonly usage: string | null | undefined;
12
+ readonly info: string | null | undefined;
13
+ readonly category: string | null | undefined;
14
+ readonly cooldown: number | null | undefined;
15
+ readonly ignore: {
16
+ owner?: boolean | undefined;
17
+ users?: string[] | undefined;
18
+ channels?: string[] | undefined;
19
+ guilds?: string[] | undefined;
20
+ } | undefined;
21
+ readonly strict: {
22
+ owner?: boolean | undefined;
23
+ users?: string[] | undefined;
24
+ channels?: string[] | undefined;
25
+ guilds?: string[] | undefined;
26
+ } | undefined;
27
+ readonly permissions: {
28
+ user?: string[] | import("../main.js").PermissionNames[] | undefined;
29
+ client?: string[] | import("../main.js").PermissionNames[] | undefined;
30
+ dm?: boolean | undefined;
31
+ } | undefined;
32
+ readonly defer: {
33
+ reply?: boolean | undefined;
34
+ ephemeral?: boolean | undefined;
35
+ fetchReply?: boolean | undefined;
36
+ } | undefined;
37
+ readonly fileType: 'ContextCommand';
38
+ readonly filePath: string;
39
+ readonly client: typeof XernerxClient;
40
+ constructor(id: string, options: ContextCommandOptions);
41
+ exec<T>(interaction: XernerxUserContextInteraction | XernerxMessageContextInteraction, args: XernerxUser | XernerxMessage): Promise<void | T | undefined>;
42
+ }
43
+ //# sourceMappingURL=ContextCommandBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ContextCommandBuilder.d.ts","sourceRoot":"","sources":["../../src/build/ContextCommandBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,YAAY,CAAC;AAGvD,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,gCAAgC,EAAE,WAAW,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AACrI,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,MAAM,CAAC,OAAO,OAAO,qBAAqB;IACtC,SAAwB,EAAE,SAAC;IAC3B,SAAwB,IAAI,4BAAC;IAC7B,SAAwB,IAAI,SAAC;IAC7B,SAAwB,IAAI,EAAE,MAAM,GAAG,SAAS,CAAC;IACjD,SAAwB,WAAW,4BAAC;IACpC,SAAwB,KAAK,4BAAC;IAC9B,SAAwB,IAAI,4BAAC;IAC7B,SAAwB,QAAQ,4BAAC;IACjC,SAAwB,QAAQ,4BAAC;IACjC,SAAwB,MAAM;;;;;kBAAC;IAC/B,SAAwB,MAAM;;;;;kBAAC;IAC/B,SAAwB,WAAW;;;;kBAAC;IACpC,SAAwB,KAAK;;;;kBAAC;IAC9B,SAAwB,QAAQ,EAAE,gBAAgB,CAAC;IACnD,SAAwB,QAAQ,EAAE,MAAM,CAAC;IACzC,SAAwB,MAAM,uBAAC;gBAEZ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB;IAgFhD,IAAI,CAAC,CAAC,EAAE,WAAW,EAAE,6BAA6B,GAAG,gCAAgC,EAAE,IAAI,EAAE,WAAW,GAAG,cAAc,GAAG,OAAO,CAAC,IAAI,GAAG,CAAC,GAAG,SAAS,CAAC;CACzK"}
@@ -0,0 +1,25 @@
1
+ import XernerxClient from '../client/XernerxClient.js';
2
+ import { EventBuilderOptions } from '../types/interfaces.js';
3
+ import { EventType } from '../types/types.js';
4
+ /**
5
+ * @description - The event builder for events.
6
+ * @param {String} id - The unique ID of the event.
7
+ * @param {EventOptions} options - The event options.
8
+ */
9
+ export default class EventBuilder {
10
+ readonly id: string;
11
+ readonly name: EventType | string;
12
+ readonly emitter?: 'client' | 'process' | string;
13
+ readonly type?: 'discord' | string;
14
+ readonly once?: boolean;
15
+ readonly fileType: 'Event';
16
+ readonly filePath: string;
17
+ readonly client: typeof XernerxClient;
18
+ constructor(id: string, options: EventBuilderOptions);
19
+ /**
20
+ * @description run your custom event here.
21
+ * TODO - update description
22
+ */
23
+ run<T>(...args: Array<T>): Promise<void | undefined | T>;
24
+ }
25
+ //# sourceMappingURL=EventBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventBuilder.d.ts","sourceRoot":"","sources":["../../src/build/EventBuilder.ts"],"names":[],"mappings":"AAEA,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAG9C;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,YAAY;IAC7B,SAAwB,EAAE,EAAE,MAAM,CAAC;IACnC,SAAwB,IAAI,EAAE,SAAS,GAAG,MAAM,CAAC;IACjD,SAAwB,OAAO,CAAC,EAAE,QAAQ,GAAG,SAAS,GAAG,MAAM,CAAC;IAChE,SAAwB,IAAI,CAAC,EAAE,SAAS,GAAG,MAAM,CAAC;IAClD,SAAwB,IAAI,CAAC,EAAE,OAAO,CAAC;IACvC,SAAwB,QAAQ,EAAE,OAAO,CAAC;IAC1C,SAAwB,QAAQ,EAAE,MAAM,CAAC;IACzC,SAAwB,MAAM,uBAAC;gBAEZ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB;IAoB3D;;;OAGG;IACU,GAAG,CAAC,CAAC,EAAE,GAAG,IAAI,EAAE,KAAK,CAAC,CAAC,CAAC,GAAG,OAAO,CAAC,IAAI,GAAG,SAAS,GAAG,CAAC,CAAC;CACxE"}
@@ -0,0 +1,20 @@
1
+ import XernerxClient from '../client/XernerxClient.js';
2
+ import { InhibitorBuilderOptions } from '../types/interfaces.js';
3
+ import { InhibitorType } from '../types/types.js';
4
+ import { XernerxMessage, XernerxMessageContextInteraction, XernerxSlashInteraction, XernerxUserContextInteraction } from '../types/extenders.js';
5
+ /**
6
+ * @description - The inhibitor builder for inhibitors.
7
+ * @param {String} id - The unique ID of the inhibitor.
8
+ * @param {InhibitorOptions} options - The inhibitor options.
9
+ */
10
+ export default class InhibitorBuilder {
11
+ readonly id: string;
12
+ readonly name: string;
13
+ readonly type: InhibitorType;
14
+ readonly fileType: 'Inhibitor';
15
+ readonly filePath: string;
16
+ readonly client: typeof XernerxClient;
17
+ constructor(id: string, options: InhibitorBuilderOptions);
18
+ check<T>(interaction: XernerxMessage | XernerxSlashInteraction | XernerxUserContextInteraction | XernerxMessageContextInteraction, args: T): Promise<void | undefined | T>;
19
+ }
20
+ //# sourceMappingURL=InhibitorBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InhibitorBuilder.d.ts","sourceRoot":"","sources":["../../src/build/InhibitorBuilder.ts"],"names":[],"mappings":"AAEA,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAI,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,aAAa,EAAI,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,cAAc,EAAE,gCAAgC,EAAE,uBAAuB,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAGjJ;;;;GAIG;AACH,MAAM,CAAC,OAAO,OAAO,gBAAgB;IACjC,SAAwB,EAAE,SAAC;IAC3B,SAAwB,IAAI,SAAC;IAC7B,SAAwB,IAAI,EAAE,aAAa,CAAC;IAC5C,SAAwB,QAAQ,EAAE,WAAW,CAAC;IAC9C,SAAwB,QAAQ,EAAE,MAAM,CAAC;IACzC,SAAwB,MAAM,uBAAC;gBAEZ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,uBAAuB;IAelD,KAAK,CAAC,CAAC,EAAE,WAAW,EAAE,cAAc,GAAG,uBAAuB,GAAG,6BAA6B,GAAG,gCAAgC,EAAE,IAAI,EAAE,CAAC,GAAG,OAAO,CAAC,IAAI,GAAG,SAAS,GAAG,CAAC,CAAC;CAC1L"}
@@ -0,0 +1,42 @@
1
+ import XernerxClient from '../client/XernerxClient.js';
2
+ import { XernerxMessage } from '../types/extenders.js';
3
+ import { MessageCommandOptions } from '../types/interfaces.js';
4
+ export default class MessageCommandBuilder {
5
+ readonly id: string;
6
+ readonly name: string;
7
+ readonly aliases: string[] | undefined;
8
+ readonly regex: RegExp | undefined;
9
+ readonly prefix: string | string[] | undefined;
10
+ readonly description: string | null | undefined;
11
+ readonly usage: string | null | undefined;
12
+ readonly info: string | null | undefined;
13
+ readonly separator: string | undefined;
14
+ readonly args: import("../types/interfaces.js").MessageCommandArgumentOptions[] | undefined;
15
+ readonly flags: import("../types/interfaces.js").MessageCommandFlagOptions[] | undefined;
16
+ readonly category: string | null | undefined;
17
+ readonly cooldown: number | null | undefined;
18
+ readonly ignore: {
19
+ owner?: boolean | undefined;
20
+ users?: string[] | undefined;
21
+ channels?: string[] | undefined;
22
+ guilds?: string[] | undefined;
23
+ } | undefined;
24
+ readonly strict: {
25
+ owner?: boolean | undefined;
26
+ users?: string[] | undefined;
27
+ channels?: string[] | undefined;
28
+ guilds?: string[] | undefined;
29
+ } | undefined;
30
+ readonly permissions: {
31
+ user?: string[] | import("../main.js").PermissionNames[] | undefined;
32
+ client?: string[] | import("../main.js").PermissionNames[] | undefined;
33
+ dm?: boolean | undefined;
34
+ } | undefined;
35
+ readonly fileType: 'MessageCommand';
36
+ readonly filePath: string;
37
+ readonly client: typeof XernerxClient;
38
+ constructor(id: string, options: MessageCommandOptions);
39
+ conditions<T>(message: XernerxMessage, { args, flags }: any): Promise<void | undefined | T>;
40
+ exec<T>(message: XernerxMessage, { args, flags }: any): Promise<void | undefined | T>;
41
+ }
42
+ //# sourceMappingURL=MessageCommandBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MessageCommandBuilder.d.ts","sourceRoot":"","sources":["../../src/build/MessageCommandBuilder.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,MAAM,wBAAwB,CAAC;AAE/D,MAAM,CAAC,OAAO,OAAO,qBAAqB;IACtC,SAAwB,EAAE,SAAC;IAC3B,SAAwB,IAAI,SAAC;IAC7B,SAAwB,OAAO,uBAAC;IAChC,SAAwB,KAAK,qBAAC;IAC9B,SAAwB,MAAM,gCAAC;IAC/B,SAAwB,WAAW,4BAAC;IACpC,SAAwB,KAAK,4BAAC;IAC9B,SAAwB,IAAI,4BAAC;IAC7B,SAAwB,SAAS,qBAAC;IAClC,SAAwB,IAAI,+EAAC;IAC7B,SAAwB,KAAK,2EAAC;IAC9B,SAAwB,QAAQ,4BAAC;IACjC,SAAwB,QAAQ,4BAAC;IACjC,SAAwB,MAAM;;;;;kBAAC;IAC/B,SAAwB,MAAM;;;;;kBAAC;IAC/B,SAAwB,WAAW;;;;kBAAC;IACpC,SAAwB,QAAQ,EAAE,gBAAgB,CAAC;IACnD,SAAwB,QAAQ,EAAE,MAAM,CAAC;IACzC,SAAwB,MAAM,uBAAC;gBAEZ,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,qBAAqB;IAwEhD,UAAU,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,GAAG,SAAS,GAAG,CAAC,CAAC;IAE3F,IAAI,CAAC,CAAC,EAAE,OAAO,EAAE,cAAc,EAAE,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,GAAG,SAAS,GAAG,CAAC,CAAC;CACrG"}
@@ -0,0 +1,48 @@
1
+ import Discord from 'discord.js';
2
+ import XernerxClient from '../client/XernerxClient.js';
3
+ import { XernerxSlashInteraction } from '../types/extenders.js';
4
+ import { SlashCommandOptions } from '../types/interfaces.js';
5
+ import { XernerxInteraction } from '../types/types.js';
6
+ export default class SlashCommandBuilder {
7
+ readonly id: string;
8
+ readonly data: Discord.SlashCommandBuilder;
9
+ readonly name: string;
10
+ readonly description: string;
11
+ readonly usage: string | null | undefined;
12
+ readonly info: string | null | undefined;
13
+ readonly category: string | null | undefined;
14
+ readonly cooldown: number | null | undefined;
15
+ readonly ignore: {
16
+ owner?: boolean | undefined;
17
+ users?: string[] | undefined;
18
+ channels?: string[] | undefined;
19
+ guilds?: string[] | undefined;
20
+ } | undefined;
21
+ readonly strict: {
22
+ owner?: boolean | undefined;
23
+ users?: string[] | undefined;
24
+ channels?: string[] | undefined;
25
+ guilds?: string[] | undefined;
26
+ } | undefined;
27
+ readonly permissions: {
28
+ user?: string[] | import("../types/types.js").PermissionNames[] | undefined;
29
+ client?: string[] | import("../types/types.js").PermissionNames[] | undefined;
30
+ dm?: boolean | undefined;
31
+ } | undefined;
32
+ readonly defer: {
33
+ reply?: boolean | undefined;
34
+ ephemeral?: boolean | undefined;
35
+ fetchReply?: boolean | undefined;
36
+ } | undefined;
37
+ readonly fileType: 'SlashCommand';
38
+ readonly filePath: string;
39
+ readonly client: typeof XernerxClient;
40
+ constructor(id: string, options: SlashCommandOptions);
41
+ autocomplete<T>(interaction: XernerxInteraction, focused: T, options: T[]): Promise<void | undefined | T>;
42
+ conditions<T>(interaction: XernerxSlashInteraction, { args, subcommand, group }: any): Promise<void | undefined | T>;
43
+ exec<T>(interaction: XernerxSlashInteraction, { args, subcommand, group }: any): Promise<void | undefined | T>;
44
+ private addArguments;
45
+ private addSubcommands;
46
+ private addSubcommandGroups;
47
+ }
48
+ //# sourceMappingURL=SlashCommandBuilder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"SlashCommandBuilder.d.ts","sourceRoot":"","sources":["../../src/build/SlashCommandBuilder.ts"],"names":[],"mappings":"AAAA,OAAO,OAAwG,MAAM,YAAY,CAAC;AAElI,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAEhE,OAAO,EAAyD,mBAAmB,EAAiC,MAAM,wBAAwB,CAAC;AACnJ,OAAO,EAAgD,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAErG,MAAM,CAAC,OAAO,OAAO,mBAAmB;IACpC,SAAwB,EAAE,SAAC;IAC3B,SAAwB,IAAI,8BAAC;IAC7B,SAAwB,IAAI,SAAC;IAC7B,SAAwB,WAAW,SAAC;IACpC,SAAwB,KAAK,4BAAC;IAC9B,SAAwB,IAAI,4BAAC;IAC7B,SAAwB,QAAQ,4BAAC;IACjC,SAAwB,QAAQ,4BAAC;IACjC,SAAwB,MAAM;;;;;kBAAC;IAC/B,SAAwB,MAAM;;;;;kBAAC;IAC/B,SAAwB,WAAW;;;;kBAAC;IACpC,SAAwB,KAAK;;;;kBAAC;IAC9B,SAAwB,QAAQ,EAAE,cAAc,CAAC;IACjD,SAAwB,QAAQ,EAAE,MAAM,CAAC;IACzC,SAAwB,MAAM,uBAAC;gBAEnB,EAAE,EAAE,MAAM,EAAE,OAAO,EAAE,mBAAmB;IA4FvC,YAAY,CAAC,CAAC,EAAE,WAAW,EAAE,kBAAkB,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,IAAI,GAAG,SAAS,GAAG,CAAC,CAAC;IAEzG,UAAU,CAAC,CAAC,EAAE,WAAW,EAAE,uBAAuB,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,GAAG,SAAS,GAAG,CAAC,CAAC;IAEpH,IAAI,CAAC,CAAC,EAAE,WAAW,EAAE,uBAAuB,EAAE,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,EAAE,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,GAAG,SAAS,GAAG,CAAC,CAAC;IAE3H,OAAO,CAAC,YAAY;IA0BpB,OAAO,CAAC,cAAc;IAUtB,OAAO,CAAC,mBAAmB;CAS9B"}
@@ -0,0 +1,43 @@
1
+ import { Client, ClientOptions, Collection } from 'discord.js';
2
+ import { XernerxOptions, ModuleOptions, XernerxCommands, XernerxCache } from '../types/interfaces.js';
3
+ import ClientUtil from '../utils/ClientUtil.js';
4
+ import { InhibitorBuilder, EventBuilder } from '../main.js';
5
+ export default class XernerxClient extends Client {
6
+ readonly settings: {
7
+ ownerId: (string | string[]) & (string | string[] | undefined);
8
+ local?: string | undefined;
9
+ global?: boolean | undefined;
10
+ permissions?: {
11
+ client: string[];
12
+ user: string[];
13
+ dm: boolean;
14
+ } | undefined;
15
+ ignore?: {
16
+ owner: boolean;
17
+ users: string[];
18
+ channels: string[];
19
+ guilds: string[];
20
+ } | undefined;
21
+ log?: {
22
+ ready: boolean;
23
+ error: boolean;
24
+ info: boolean;
25
+ table: string[] | null;
26
+ } | undefined;
27
+ cooldown?: {
28
+ command: number;
29
+ cache: number;
30
+ } | undefined;
31
+ };
32
+ readonly config: Record<string, unknown> | null;
33
+ readonly commands: XernerxCommands;
34
+ readonly events: Collection<string, EventBuilder>;
35
+ readonly inhibitors: Collection<string, InhibitorBuilder>;
36
+ readonly modules: ModuleOptions;
37
+ readonly util: ClientUtil;
38
+ readonly stats: Record<string, number>;
39
+ readonly cache: XernerxCache;
40
+ constructor(discordOptions: ClientOptions, xernerxOptions: XernerxOptions, config?: Record<string, unknown>);
41
+ connect(token: string): void;
42
+ }
43
+ //# sourceMappingURL=XernerxClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"XernerxClient.d.ts","sourceRoot":"","sources":["../../src/client/XernerxClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,aAAa,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAQ/D,OAAO,EAAE,cAAc,EAAE,aAAa,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AACtG,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,YAAY,EAAE,MAAM,YAAY,CAAC;AAG5D,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,MAAM;IAC7C,SAAwB,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;MAAC;IACjC,SAAwB,MAAM,iCAAC;IAC/B,SAAwB,QAAQ,EAAE,eAAe,CAAC;IAClD,SAAwB,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,YAAY,CAAC,CAAC;IACjE,SAAwB,UAAU,EAAE,UAAU,CAAC,MAAM,EAAE,gBAAgB,CAAC,CAAC;IACzE,SAAwB,OAAO,EAAE,aAAa,CAAC;IAC/C,SAAwB,IAAI,EAAE,UAAU,CAAC;IACzC,SAAwB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACtD,SAAwB,KAAK,EAAE,YAAY,CAAC;gBAEzB,cAAc,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;IA8E3G,OAAO,CAAC,KAAK,EAAE,MAAM;CAK/B"}
@@ -0,0 +1,17 @@
1
+ import { ShardingManager, ShardingManagerOptions, ClientUser } from 'discord.js';
2
+ interface XernerxOptions {
3
+ log?: {
4
+ ready?: boolean;
5
+ };
6
+ }
7
+ export default class XernerxShardClient extends ShardingManager {
8
+ readonly stats: {
9
+ guildCount: number;
10
+ userCount: number;
11
+ shardCount: number;
12
+ };
13
+ user: ClientUser | null;
14
+ constructor(file: string, discordOptions: ShardingManagerOptions, xernerxOptions?: XernerxOptions);
15
+ }
16
+ export {};
17
+ //# sourceMappingURL=XernerxShardClient.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"XernerxShardClient.d.ts","sourceRoot":"","sources":["../../src/client/XernerxShardClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,sBAAsB,EAAS,UAAU,EAAE,MAAM,YAAY,CAAC;AAGxF,UAAU,cAAc;IACpB,GAAG,CAAC,EAAE;QACF,KAAK,CAAC,EAAE,OAAO,CAAC;KACnB,CAAC;CACL;AAED,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,eAAe;IAC3D,SAAwB,KAAK;;;;MAAC;IACf,IAAI,EAAE,UAAU,GAAG,IAAI,CAAC;gBAE3B,IAAI,EAAE,MAAM,EAAE,cAAc,EAAE,sBAAsB,EAAE,cAAc,CAAC,EAAE,cAAc;CAuCpG"}
@@ -0,0 +1,31 @@
1
+ import { ShardingManager } from 'discord.js';
2
+ import XernerxLog from '../tools/XernerxLog.js';
3
+ export default class XernerxShardClient extends ShardingManager {
4
+ constructor(file, discordOptions, xernerxOptions) {
5
+ super(file, discordOptions);
6
+ this.stats = { guildCount: 0, userCount: 0, shardCount: 0 };
7
+ this.user = null;
8
+ this.on('shardCreate', async (shard) => {
9
+ shard.on('ready', async () => {
10
+ const guilds = (await shard.fetchClientValue('guilds.cache'));
11
+ const guildCount = guilds.length;
12
+ const userCount = guilds.map((guild) => guild.memberCount).length ? guilds.map((guild) => guild.memberCount).reduce((a, b) => (a += b)) : 0;
13
+ this.stats.guildCount += Number(guildCount);
14
+ this.stats.userCount += Number(userCount);
15
+ this.stats.shardCount++;
16
+ this.user = (await shard.fetchClientValue('user'));
17
+ });
18
+ new XernerxLog({ settings: xernerxOptions }).info(`Launching shard ${shard.id} for ${this.user?.tag}!`);
19
+ });
20
+ this.spawn().then(async (shards) => {
21
+ const collector = setInterval(() => {
22
+ const index = shards.size - 1;
23
+ if (shards.get(index)?.ready) {
24
+ new XernerxLog({ settings: xernerxOptions }).info(`Launched all ${this.stats.shardCount} shards for ${this.user?.tag}, watching ${this.stats.guildCount} guilds, and ${this.stats.userCount} users!`);
25
+ clearInterval(collector);
26
+ }
27
+ }, 1000);
28
+ });
29
+ }
30
+ }
31
+ //# sourceMappingURL=XernerxShardClient.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"XernerxShardClient.js","sourceRoot":"","sources":["../../src/client/XernerxShardClient.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAA6C,MAAM,YAAY,CAAC;AACxF,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAQhD,MAAM,CAAC,OAAO,OAAO,kBAAmB,SAAQ,eAAe;IAI3D,YAAY,IAAY,EAAE,cAAsC,EAAE,cAA+B;QAC7F,KAAK,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;QAE5B,IAAI,CAAC,KAAK,GAAG,EAAE,UAAU,EAAE,CAAC,EAAE,SAAS,EAAE,CAAC,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC;QAE5D,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC;QAEjB,IAAI,CAAC,EAAE,CAAC,aAAa,EAAE,KAAK,EAAE,KAAK,EAAE,EAAE;YACnC,KAAK,CAAC,EAAE,CAAC,OAAO,EAAE,KAAK,IAAI,EAAE;gBACzB,MAAM,MAAM,GAAG,CAAC,MAAM,KAAK,CAAC,gBAAgB,CAAC,cAAc,CAAC,CAAiB,CAAC;gBAC9E,MAAM,UAAU,GAAG,MAAM,CAAC,MAAM,CAAC;gBACjC,MAAM,SAAS,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,EAAE,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;gBAE5I,IAAI,CAAC,KAAK,CAAC,UAAU,IAAI,MAAM,CAAC,UAAU,CAAC,CAAC;gBAE5C,IAAI,CAAC,KAAK,CAAC,SAAS,IAAI,MAAM,CAAC,SAAS,CAAC,CAAC;gBAE1C,IAAI,CAAC,KAAK,CAAC,UAAU,EAAE,CAAC;gBAExB,IAAI,CAAC,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,gBAAgB,CAAC,MAAM,CAAC,CAAe,CAAC;YACrE,CAAC,CAAC,CAAC;YAEH,IAAI,UAAU,CAAC,EAAE,QAAQ,EAAE,cAAc,EAAW,CAAC,CAAC,IAAI,CAAC,mBAAmB,KAAK,CAAC,EAAE,QAAQ,IAAI,CAAC,IAAI,EAAE,GAAG,GAAG,CAAC,CAAC;QACrH,CAAC,CAAC,CAAC;QAEH,IAAI,CAAC,KAAK,EAAE,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE;YAC/B,MAAM,SAAS,GAAG,WAAW,CAAC,GAAG,EAAE;gBAC/B,MAAM,KAAK,GAAG,MAAM,CAAC,IAAI,GAAG,CAAC,CAAC;gBAE9B,IAAI,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,EAAE,KAAK,EAAE;oBAC1B,IAAI,UAAU,CAAC,EAAE,QAAQ,EAAE,cAAc,EAAW,CAAC,CAAC,IAAI,CACtD,gBAAgB,IAAI,CAAC,KAAK,CAAC,UAAU,eAAe,IAAI,CAAC,IAAI,EAAE,GAAG,cAAc,IAAI,CAAC,KAAK,CAAC,UAAU,gBAAgB,IAAI,CAAC,KAAK,CAAC,SAAS,SAAS,CACrJ,CAAC;oBAEF,aAAa,CAAC,SAAS,CAAC,CAAC;iBAC5B;YACL,CAAC,EAAE,IAAI,CAAC,CAAC;QACb,CAAC,CAAC,CAAC;IACP,CAAC;CACJ","sourcesContent":["import { ShardingManager, ShardingManagerOptions, Guild, ClientUser } from 'discord.js';\nimport XernerxLog from '../tools/XernerxLog.js';\n\ninterface XernerxOptions {\n log?: {\n ready?: boolean;\n };\n}\n\nexport default class XernerxShardClient extends ShardingManager {\n public declare readonly stats;\n public declare user: ClientUser | null;\n\n constructor(file: string, discordOptions: ShardingManagerOptions, xernerxOptions?: XernerxOptions) {\n super(file, discordOptions);\n\n this.stats = { guildCount: 0, userCount: 0, shardCount: 0 };\n\n this.user = null;\n\n this.on('shardCreate', async (shard) => {\n shard.on('ready', async () => {\n const guilds = (await shard.fetchClientValue('guilds.cache')) as Array<Guild>;\n const guildCount = guilds.length;\n const userCount = guilds.map((guild) => guild.memberCount).length ? guilds.map((guild) => guild.memberCount).reduce((a, b) => (a += b)) : 0;\n\n this.stats.guildCount += Number(guildCount);\n\n this.stats.userCount += Number(userCount);\n\n this.stats.shardCount++;\n\n this.user = (await shard.fetchClientValue('user')) as ClientUser;\n });\n\n new XernerxLog({ settings: xernerxOptions } as never).info(`Launching shard ${shard.id} for ${this.user?.tag}!`);\n });\n\n this.spawn().then(async (shards) => {\n const collector = setInterval(() => {\n const index = shards.size - 1;\n\n if (shards.get(index)?.ready) {\n new XernerxLog({ settings: xernerxOptions } as never).info(\n `Launched all ${this.stats.shardCount} shards for ${this.user?.tag}, watching ${this.stats.guildCount} guilds, and ${this.stats.userCount} users!`\n );\n\n clearInterval(collector);\n }\n }, 1000);\n });\n }\n}\n"]}
@@ -0,0 +1,2 @@
1
+ export default function delay(time: number): Promise<unknown>;
2
+ //# sourceMappingURL=delay.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delay.d.ts","sourceRoot":"","sources":["../../src/functions/delay.ts"],"names":[],"mappings":"AAAA,wBAA8B,KAAK,CAAC,IAAI,EAAE,MAAM,oBAE/C"}
@@ -0,0 +1,4 @@
1
+ export default async function delay(time) {
2
+ return await new Promise((resolve) => setTimeout(resolve, time));
3
+ }
4
+ //# sourceMappingURL=delay.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"delay.js","sourceRoot":"","sources":["../../src/functions/delay.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,KAAK,CAAC,IAAY;IAC5C,OAAO,MAAM,IAAI,OAAO,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,UAAU,CAAC,OAAO,EAAE,IAAI,CAAC,CAAC,CAAC;AACrE,CAAC","sourcesContent":["export default async function delay(time: number) {\n return await new Promise((resolve) => setTimeout(resolve, time));\n}\n"]}
@@ -0,0 +1,3 @@
1
+ import XernerxClient from '../client/XernerxClient.js';
2
+ export default function deploy(client: XernerxClient, type: 'slash' | 'context'): void;
3
+ //# sourceMappingURL=deploy.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"deploy.d.ts","sourceRoot":"","sources":["../../src/functions/deploy.ts"],"names":[],"mappings":"AAIA,OAAO,aAAa,MAAM,4BAA4B,CAAC;AAMvD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,OAAO,GAAG,SAAS,QAwB9E"}
@@ -0,0 +1,4 @@
1
+ import XernerxClient from '../client/XernerxClient.js';
2
+ import { XernerxUser } from '../types/extenders.js';
3
+ export default function isOwner(user: Pick<XernerxUser, 'id'>, client: XernerxClient): boolean;
4
+ //# sourceMappingURL=isOwner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isOwner.d.ts","sourceRoot":"","sources":["../../src/functions/isOwner.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,MAAM,CAAC,OAAO,UAAU,OAAO,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,EAAE,IAAI,CAAC,EAAE,MAAM,EAAE,aAAa,WAEnF"}
@@ -0,0 +1,4 @@
1
+ import XernerxClient from '../client/XernerxClient.js';
2
+ import { XernerxUser } from '../types/extenders.js';
3
+ export default function isVoter(user: XernerxUser, client: XernerxClient, token: string, host: 'top.gg'): Promise<void>;
4
+ //# sourceMappingURL=isVoter.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"isVoter.d.ts","sourceRoot":"","sources":["../../src/functions/isVoter.ts"],"names":[],"mappings":"AACA,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,wBAA8B,OAAO,CAAC,IAAI,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,iBAI5G"}
@@ -0,0 +1,4 @@
1
+ import XernerxClient from '../client/XernerxClient.js';
2
+ import { FileType } from '../types/types.js';
3
+ export default function load(client: XernerxClient, path: string, type: FileType): Promise<any>;
4
+ //# sourceMappingURL=load.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../../src/functions/load.ts"],"names":[],"mappings":"AAKA,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAG7C,wBAA8B,IAAI,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ,gBAgBrF"}
@@ -0,0 +1,3 @@
1
+ import XernerxClient from '../client/XernerxClient.js';
2
+ export default function reload(client: XernerxClient, type: 'message' | 'slash' | 'context' | 'event' | 'inhibitor'): Promise<any>[];
3
+ //# sourceMappingURL=reload.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"reload.d.ts","sourceRoot":"","sources":["../../src/functions/reload.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,4BAA4B,CAAC;AAUvD,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,SAAS,GAAG,OAAO,GAAG,SAAS,GAAG,OAAO,GAAG,WAAW,kBA4ClH"}
@@ -0,0 +1,3 @@
1
+ import { MessagePayload } from 'discord.js';
2
+ export default function sendWebhook(url: URL, body: MessagePayload): Promise<any>;
3
+ //# sourceMappingURL=sendWebhook.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendWebhook.d.ts","sourceRoot":"","sources":["../../src/functions/sendWebhook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE5C,wBAA8B,WAAW,CAAC,GAAG,EAAE,GAAG,EAAE,IAAI,EAAE,cAAc,gBAcvE"}
@@ -0,0 +1,14 @@
1
+ export default async function sendWebhook(url, body) {
2
+ const response = await fetch(url, {
3
+ method: 'POST',
4
+ headers: {
5
+ 'Content-Type': 'application/json',
6
+ },
7
+ body: JSON.stringify(body),
8
+ });
9
+ if (response.status === 204)
10
+ return true;
11
+ const data = await response.json();
12
+ return data;
13
+ }
14
+ //# sourceMappingURL=sendWebhook.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"sendWebhook.js","sourceRoot":"","sources":["../../src/functions/sendWebhook.ts"],"names":[],"mappings":"AAEA,MAAM,CAAC,OAAO,CAAC,KAAK,UAAU,WAAW,CAAC,GAAQ,EAAE,IAAoB;IACpE,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,EAAE;QAC9B,MAAM,EAAE,MAAM;QACd,OAAO,EAAE;YACL,cAAc,EAAE,kBAAkB;SACrC;QACD,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC;KAC7B,CAAC,CAAC;IAEH,IAAI,QAAQ,CAAC,MAAM,KAAK,GAAG;QAAE,OAAO,IAAI,CAAC;IAEzC,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;IAEnC,OAAO,IAAI,CAAC;AAChB,CAAC","sourcesContent":["import { MessagePayload } from 'discord.js';\n\nexport default async function sendWebhook(url: URL, body: MessagePayload) {\n const response = await fetch(url, {\n method: 'POST',\n headers: {\n 'Content-Type': 'application/json',\n },\n body: JSON.stringify(body),\n });\n\n if (response.status === 204) return true;\n\n const data = await response.json();\n\n return data;\n}\n"]}
@@ -0,0 +1,4 @@
1
+ import XernerxClient from '../main.js';
2
+ import { PresenceOptions } from '../types/interfaces.js';
3
+ export default function setPresence(client: XernerxClient, options: PresenceOptions): import("discord.js").ClientPresence | undefined;
4
+ //# sourceMappingURL=setPresence.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"setPresence.d.ts","sourceRoot":"","sources":["../../src/functions/setPresence.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,YAAY,CAAC;AACvC,OAAO,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAEzD,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,MAAM,EAAE,aAAa,EAAE,OAAO,EAAE,eAAe,mDAqBlF"}
@@ -0,0 +1,4 @@
1
+ import XernerxClient from '../client/XernerxClient.js';
2
+ import { XernerxMessage, XernerxSlashInteraction, XernerxUser, XernerxUserContextInteraction } from '../types/extenders.js';
3
+ export declare function xernerxUser(event: XernerxMessage | XernerxSlashInteraction | XernerxUserContextInteraction | XernerxUserContextInteraction, client: XernerxClient): Promise<XernerxUser>;
4
+ //# sourceMappingURL=xernerxUser.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"xernerxUser.d.ts","sourceRoot":"","sources":["../../src/functions/xernerxUser.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,cAAc,EAAE,uBAAuB,EAAE,WAAW,EAAE,6BAA6B,EAAE,MAAM,uBAAuB,CAAC;AAG5H,wBAAsB,WAAW,CAAC,KAAK,EAAE,cAAc,GAAG,uBAAuB,GAAG,6BAA6B,GAAG,6BAA6B,EAAE,MAAM,EAAE,aAAa,wBAUvK"}
@@ -0,0 +1,14 @@
1
+ import XernerxClient from '../client/XernerxClient.js';
2
+ import { ContextHandlerOptions, MessageHandlerOptions, SlashHandlerOptions } from '../types/interfaces.js';
3
+ import Handler from './Handler.js';
4
+ export default class CommandHandler extends Handler {
5
+ constructor(client: XernerxClient);
6
+ loadMessageCommands(options: MessageHandlerOptions): void;
7
+ loadSlashCommands(options: SlashHandlerOptions): void;
8
+ loadContextCommands(options: ContextHandlerOptions): void;
9
+ private messageCommandRun;
10
+ private slashCommandRun;
11
+ private contextCommandRun;
12
+ private exec;
13
+ }
14
+ //# sourceMappingURL=CommandHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"CommandHandler.d.ts","sourceRoot":"","sources":["../../src/handlers/CommandHandler.ts"],"names":[],"mappings":"AAIA,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,qBAAqB,EAAE,qBAAqB,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC3G,OAAO,OAAO,MAAM,cAAc,CAAC;AAenC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,OAAO;gBACnC,MAAM,EAAE,aAAa;IAI1B,mBAAmB,CAAC,OAAO,EAAE,qBAAqB;IA2DlD,iBAAiB,CAAC,OAAO,EAAE,mBAAmB;IA6C9C,mBAAmB,CAAC,OAAO,EAAE,qBAAqB;YA8C3C,iBAAiB;YAuGjB,eAAe;YA+Bf,iBAAiB;YAoBjB,IAAI;CAoBrB"}
@@ -0,0 +1,8 @@
1
+ import XernerxClient from '../client/XernerxClient.js';
2
+ import { EventHandlerOptions } from '../types/interfaces.js';
3
+ import Handler from './Handler.js';
4
+ export default class EventHandler extends Handler {
5
+ constructor(client: XernerxClient);
6
+ loadEvents(options: EventHandlerOptions): Promise<void>;
7
+ }
8
+ //# sourceMappingURL=EventHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"EventHandler.d.ts","sourceRoot":"","sources":["../../src/handlers/EventHandler.ts"],"names":[],"mappings":"AAIA,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,EAAE,mBAAmB,EAAE,MAAM,wBAAwB,CAAC;AAC7D,OAAO,OAAO,MAAM,cAAc,CAAC;AAGnC,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,OAAO;gBACjC,MAAM,EAAE,aAAa;IAIpB,UAAU,CAAC,OAAO,EAAE,mBAAmB;CAqBvD"}
@@ -0,0 +1,8 @@
1
+ import XernerxExtensionBuilder from 'xernerx-extension-builder';
2
+ import XernerxClient from '../client/XernerxClient.js';
3
+ import Handler from './Handler.js';
4
+ export default class ExtensionHandler extends Handler {
5
+ constructor(client: XernerxClient);
6
+ loadExtensions(...extensions: Array<XernerxExtensionBuilder>): void;
7
+ }
8
+ //# sourceMappingURL=ExtensionHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ExtensionHandler.d.ts","sourceRoot":"","sources":["../../src/handlers/ExtensionHandler.ts"],"names":[],"mappings":"AAAA,OAAO,uBAAuB,MAAM,2BAA2B,CAAC;AAChE,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,OAAO,MAAM,cAAc,CAAC;AAGnC,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,OAAO;gBACrC,MAAM,EAAE,aAAa;IAIjC,cAAc,CAAC,GAAG,UAAU,EAAE,KAAK,CAAC,uBAAuB,CAAC;CAiB/D"}
@@ -0,0 +1,15 @@
1
+ import XernerxClient from '../client/XernerxClient.js';
2
+ import MessageCommandBuilder from '../build/MessageCommandBuilder.js';
3
+ import SlashCommandBuilder from '../build/SlashCommandBuilder.js';
4
+ import ContextCommandBuilder from '../build/ContextCommandBuilder.js';
5
+ import { FileType } from '../types/types.js';
6
+ export default class Handler {
7
+ readonly client: XernerxClient;
8
+ readonly files: Array<MessageCommandBuilder | SlashCommandBuilder | ContextCommandBuilder>;
9
+ readonly readyTimestamp: number;
10
+ constructor(client: XernerxClient);
11
+ readdir(dir: string): string[];
12
+ load(filePath: string, type: FileType): Promise<any>;
13
+ emit<T extends Record<string, string | boolean | Function | void>>(event: T): Promise<void>;
14
+ }
15
+ //# sourceMappingURL=Handler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"Handler.d.ts","sourceRoot":"","sources":["../../src/handlers/Handler.ts"],"names":[],"mappings":"AAGA,OAAO,aAAa,MAAM,4BAA4B,CAAC;AAEvD,OAAO,qBAAqB,MAAM,mCAAmC,CAAC;AACtE,OAAO,mBAAmB,MAAM,iCAAiC,CAAC;AAClE,OAAO,qBAAqB,MAAM,mCAAmC,CAAC;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,MAAM,CAAC,OAAO,OAAO,OAAO;IACxB,SAAgB,MAAM,gBAAC;IACvB,SAAgB,KAAK,EAAE,KAAK,CAAC,qBAAqB,GAAG,mBAAmB,GAAG,qBAAqB,CAAC,CAAC;IAClG,SAAgB,cAAc,SAAC;gBAEnB,MAAM,EAAE,aAAa;IAQ1B,OAAO,CAAC,GAAG,EAAE,MAAM;IASb,IAAI,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,QAAQ;IAQrC,IAAI,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,GAAG,QAAQ,GAAG,IAAI,CAAC,EAAE,KAAK,EAAE,CAAC;CAoB3F"}
@@ -0,0 +1,8 @@
1
+ import XernerxClient from '../client/XernerxClient.js';
2
+ import Handler from './Handler.js';
3
+ import { InhibitorHandlerOptions } from '../types/interfaces.js';
4
+ export default class InhibitorHandler extends Handler {
5
+ constructor(client: XernerxClient);
6
+ loadInhibitors(options: InhibitorHandlerOptions): Promise<void>;
7
+ }
8
+ //# sourceMappingURL=InhibitorHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"InhibitorHandler.d.ts","sourceRoot":"","sources":["../../src/handlers/InhibitorHandler.ts"],"names":[],"mappings":"AAIA,OAAO,aAAa,MAAM,4BAA4B,CAAC;AACvD,OAAO,OAAO,MAAM,cAAc,CAAC;AACnC,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AAGjE,MAAM,CAAC,OAAO,OAAO,gBAAiB,SAAQ,OAAO;gBACrC,MAAM,EAAE,aAAa;IAIpB,cAAc,CAAC,OAAO,EAAE,uBAAuB;CAqB/D"}
@@ -0,0 +1,10 @@
1
+ import XernerxClient from '../client/XernerxClient.js';
2
+ import Handler from './Handler.js';
3
+ export default class WebhookHandler extends Handler {
4
+ constructor(client: XernerxClient);
5
+ loadWebhooks(options: {
6
+ token: string;
7
+ }): Promise<void>;
8
+ private post;
9
+ }
10
+ //# sourceMappingURL=WebhookHandler.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WebhookHandler.d.ts","sourceRoot":"","sources":["../../src/handlers/WebhookHandler.ts"],"names":[],"mappings":"AAAA,OAAO,aAAa,MAAM,4BAA4B,CAAC;AAEvD,OAAO,OAAO,MAAM,cAAc,CAAC;AAEnC,MAAM,CAAC,OAAO,OAAO,cAAe,SAAQ,OAAO;gBACnC,MAAM,EAAE,aAAa;IAIpB,YAAY,CAAC,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE;YAoBtC,IAAI;CAkCrB"}
package/dist/main.d.ts ADDED
@@ -0,0 +1,39 @@
1
+ import XernerxClient from './client/XernerxClient.js';
2
+ import XernerxShardClient from './client/XernerxShardClient.js';
3
+ import MessageCommandBuilder from './build/MessageCommandBuilder.js';
4
+ import SlashCommandBuilder from './build/SlashCommandBuilder.js';
5
+ import ContextCommandBuilder from './build/ContextCommandBuilder.js';
6
+ import EventBuilder from './build/EventBuilder.js';
7
+ import InhibitorBuilder from './build/InhibitorBuilder.js';
8
+ import XernerxLog from './tools/XernerxLog.js';
9
+ export * from 'discord.js';
10
+ export * from 'dumfunctions';
11
+ import ExtensionBuilder from 'xernerx-extension-builder';
12
+ export * from './types/types.js';
13
+ export * from './types/extenders.js';
14
+ export * from './types/interfaces.js';
15
+ import Discord from 'discord.js';
16
+ declare const version: any;
17
+ export default XernerxClient;
18
+ export {
19
+ /**
20
+ ** Clients
21
+ */
22
+ XernerxClient, XernerxShardClient,
23
+ /**
24
+ ** Builders
25
+ */
26
+ MessageCommandBuilder, SlashCommandBuilder, ContextCommandBuilder, EventBuilder, InhibitorBuilder, ExtensionBuilder,
27
+ /**
28
+ ** Imported exports
29
+ */
30
+ Discord,
31
+ /**
32
+ ** Properties
33
+ */
34
+ version,
35
+ /**
36
+ ** Tools
37
+ */
38
+ XernerxLog, };
39
+ //# sourceMappingURL=main.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../src/main.ts"],"names":[],"mappings":"AAEA,OAAO,aAAa,MAAM,2BAA2B,CAAC;AACtD,OAAO,kBAAkB,MAAM,gCAAgC,CAAC;AAChE,OAAO,qBAAqB,MAAM,kCAAkC,CAAC;AACrE,OAAO,mBAAmB,MAAM,gCAAgC,CAAC;AACjE,OAAO,qBAAqB,MAAM,kCAAkC,CAAC;AACrE,OAAO,YAAY,MAAM,yBAAyB,CAAC;AACnD,OAAO,gBAAgB,MAAM,6BAA6B,CAAC;AAC3D,OAAO,UAAU,MAAM,uBAAuB,CAAC;AAE/C,cAAc,YAAY,CAAC;AAC3B,cAAc,cAAc,CAAC;AAC7B,OAAO,gBAAgB,MAAM,2BAA2B,CAAC;AAEzD,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AAEtC,OAAO,OAAO,MAAM,YAAY,CAAC;AAEjC,QAAA,MAAM,OAAO,KAAoF,CAAC;AAElG,eAAe,aAAa,CAAC;AAE7B,OAAO;AACH;;GAEG;AACH,aAAa,EACb,kBAAkB;AAElB;;GAEG;AACH,qBAAqB,EACrB,mBAAmB,EACnB,qBAAqB,EACrB,YAAY,EACZ,gBAAgB,EAChB,gBAAgB;AAEhB;;GAEG;AACH,OAAO;AACP;;GAEG;AACH,OAAO;AAEP;;GAEG;AACH,UAAU,GACb,CAAC"}
package/dist/main.js CHANGED
@@ -10,6 +10,9 @@ import XernerxLog from './tools/XernerxLog.js';
10
10
  export * from 'discord.js';
11
11
  export * from 'dumfunctions';
12
12
  import ExtensionBuilder from 'xernerx-extension-builder';
13
+ export * from './types/types.js';
14
+ export * from './types/extenders.js';
15
+ export * from './types/interfaces.js';
13
16
  import Discord from 'discord.js';
14
17
  const version = JSON.parse(fs.readFileSync('node_modules/xernerx/package.json', 'utf-8')).version;
15
18
  export default XernerxClient;