xernerx 3.3.5 → 3.3.7

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 (52) hide show
  1. package/LICENSE +21 -21
  2. package/README.md +21 -21
  3. package/dist/build/ContextCommandBuilder.d.ts +4 -4
  4. package/dist/build/ContextCommandBuilder.js +4 -4
  5. package/dist/build/EventBuilder.d.ts +2 -2
  6. package/dist/build/EventBuilder.js +4 -4
  7. package/dist/build/InhibitorBuilder.d.ts +3 -3
  8. package/dist/build/InhibitorBuilder.js +2 -2
  9. package/dist/build/MessageCommandBuilder.js +1 -1
  10. package/dist/build/SlashCommandBuilder.d.ts +1 -1
  11. package/dist/build/SlashCommandBuilder.js +1 -1
  12. package/dist/main.js +1 -1
  13. package/dist/models/CommandValidations.d.ts +3 -3
  14. package/dist/models/CommandValidations.js +26 -28
  15. package/dist/models/Events.js +8 -6
  16. package/dist/tools/package.d.ts +38 -0
  17. package/dist/tools/package.js +41 -0
  18. package/dist/types/{Types.d.ts → types.d.ts} +0 -0
  19. package/dist/{interfaces/ClientInterfaces.js → types/types.js} +0 -0
  20. package/package.json +7 -6
  21. package/dist/build/ContextCommand.d.ts +0 -40
  22. package/dist/build/ContextCommand.js +0 -84
  23. package/dist/build/Event.d.ts +0 -17
  24. package/dist/build/Event.js +0 -35
  25. package/dist/build/ExtensionBuilder.d.ts +0 -7
  26. package/dist/build/ExtensionBuilder.js +0 -9
  27. package/dist/build/Inhibitor.d.ts +0 -18
  28. package/dist/build/Inhibitor.js +0 -28
  29. package/dist/build/MessageCommand.d.ts +0 -41
  30. package/dist/build/MessageCommand.js +0 -82
  31. package/dist/build/SlashCommand.d.ts +0 -36
  32. package/dist/build/SlashCommand.js +0 -125
  33. package/dist/build/XernerxExtension.d.ts +0 -7
  34. package/dist/build/XernerxExtension.js +0 -9
  35. package/dist/handlers/WebhookHandler.d.ts +0 -12
  36. package/dist/handlers/WebhookHandler.js +0 -36
  37. package/dist/interfaces/ClientInterfaces.d.ts +0 -65
  38. package/dist/interfaces/CommandInterfaces.d.ts +0 -94
  39. package/dist/interfaces/CommandInterfaces.js +0 -1
  40. package/dist/interfaces/HandlerInterfaces.d.ts +0 -62
  41. package/dist/interfaces/HandlerInterfaces.js +0 -1
  42. package/dist/models/Functions.d.ts +0 -1
  43. package/dist/models/Functions.js +0 -1
  44. package/dist/types/EventTypes.d.ts +0 -1
  45. package/dist/types/EventTypes.js +0 -1
  46. package/dist/types/InhibitorTypes.d.ts +0 -12
  47. package/dist/types/InhibitorTypes.js +0 -13
  48. package/dist/types/Types.js +0 -1
  49. package/dist/types/objects.d.ts +0 -18
  50. package/dist/types/objects.js +0 -1
  51. package/scripts/package.d.ts +0 -1
  52. package/scripts/package.js +0 -3
@@ -1,94 +0,0 @@
1
- import { ChannelType, ContextMenuCommandType } from "discord.js";
2
- import { ContextCommandType } from "../types/enums.js";
3
- export interface MessageCommandOptions {
4
- name: string;
5
- regex?: string;
6
- aliases?: string[];
7
- description?: string;
8
- prefix?: string | string[];
9
- info?: string;
10
- category?: string;
11
- owner?: boolean;
12
- channelType?: ChannelType | ChannelType[];
13
- separator?: string;
14
- cooldown?: number;
15
- ignoreOwner?: boolean;
16
- channels?: string[];
17
- guilds?: string[];
18
- userPermissions?: bigint[];
19
- clientPermissions?: bigint[];
20
- commandType?: string;
21
- args: object[];
22
- }
23
- export interface ContextCommandOptions {
24
- name: string;
25
- type: ContextMenuCommandType | number | ContextCommandType;
26
- description?: string;
27
- info?: string;
28
- category?: string;
29
- owner?: boolean;
30
- channelType?: ChannelType;
31
- cooldown?: number;
32
- ignoreOwner?: boolean;
33
- channels?: string[];
34
- guilds?: string[];
35
- userPermissions?: bigint[];
36
- clientPermissions?: bigint[];
37
- defaultMemberPermissions?: bigint | number | bigint | null | undefined;
38
- DMPermission?: undefined | null | boolean;
39
- nameLocalization?: {
40
- locale: "en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "sv-SE" | "th" | "tr" | "uk" | "vi";
41
- localizedName: null | string;
42
- };
43
- nameLocalizations?: null | Partial<Record<"en-US" | "en-GB" | "bg" | "zh-CN" | "zh-TW" | "hr" | "cs" | "da" | "nl" | "fi" | "fr" | "de" | "el" | "hi" | "hu" | "it" | "ja" | "ko" | "lt" | "no" | "pl" | "pt-BR" | "ro" | "ru" | "es-ES" | "sv-SE" | "th" | "tr" | "uk" | "vi", null | string>>;
44
- commandType?: string;
45
- defer?: {
46
- reply?: boolean;
47
- ephemeral?: boolean;
48
- fetchReply?: boolean;
49
- };
50
- }
51
- export interface SlashArg {
52
- type: "string" | "number" | "boolean" | "user" | "channel" | "role" | "mentionable" | "integer";
53
- name: string;
54
- choices: Array<{
55
- name: string;
56
- value: string;
57
- }>;
58
- required: boolean;
59
- description: string;
60
- }
61
- export interface SlashSubcommand {
62
- name: string;
63
- description: string;
64
- args: Array<SlashArg>;
65
- }
66
- export interface SlashGroup {
67
- name: string;
68
- description: string;
69
- subcommands: Array<SlashSubcommand>;
70
- }
71
- export interface SlashCommandOptions {
72
- name: string;
73
- description: string;
74
- info?: string;
75
- category?: string;
76
- owner?: boolean;
77
- channelType?: ChannelType;
78
- separator?: string;
79
- cooldown?: number;
80
- ignoreOwner?: boolean;
81
- channels?: string[];
82
- guilds?: string[];
83
- userPermissions?: bigint[];
84
- clientPermissions?: bigint[];
85
- args?: Array<SlashArg>;
86
- subcommands?: Array<SlashSubcommand>;
87
- groups?: Array<SlashGroup>;
88
- commandType?: string;
89
- defer?: {
90
- reply?: boolean;
91
- ephemeral?: boolean;
92
- fetchReply?: boolean;
93
- };
94
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1,62 +0,0 @@
1
- import { EventEmitterType, InhibitorType } from "../types/enums.js";
2
- export interface MessageCommandOptions {
3
- directory: string;
4
- prefix: string[] | string;
5
- allowMention?: boolean;
6
- cooldown?: number;
7
- userPermissions?: bigint[];
8
- clientPermissions?: bigint[];
9
- handleEdits?: boolean;
10
- handleDeletes?: boolean;
11
- handleTyping?: boolean;
12
- util?: boolean;
13
- logging?: boolean;
14
- }
15
- export interface SlashCommandOptions {
16
- directory: string;
17
- guildId: string;
18
- global: boolean;
19
- cooldown?: number;
20
- userPermissions?: bigint[];
21
- clientPermissions?: bigint[];
22
- util?: boolean;
23
- logging?: boolean;
24
- defer?: {
25
- reply?: boolean;
26
- ephemeral?: boolean;
27
- fetchReply?: boolean;
28
- };
29
- }
30
- export interface ContextCommandOptions {
31
- directory: string;
32
- guildId: string;
33
- global: boolean;
34
- cooldown?: number;
35
- userPermissions?: bigint[];
36
- clientPermissions?: bigint[];
37
- util?: boolean;
38
- logging?: boolean;
39
- defer?: {
40
- reply?: boolean;
41
- ephemeral?: boolean;
42
- fetchReply?: boolean;
43
- };
44
- }
45
- export interface EventLoadOptions {
46
- directory: string;
47
- logging?: boolean;
48
- }
49
- export interface EventOptions {
50
- name: string;
51
- emitter?: EventEmitterType;
52
- type?: string;
53
- once?: boolean;
54
- }
55
- export interface InhibitorLoadOptions {
56
- directory: string;
57
- logging?: boolean;
58
- }
59
- export interface InhibitorOptions {
60
- name: string;
61
- type: InhibitorType;
62
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export {};
@@ -1,12 +0,0 @@
1
- export declare enum InhibitorType {
2
- Member = "Member",
3
- User = "User",
4
- Guild = "Guild",
5
- SlashCommand = "SlashCommand",
6
- MessageCommand = "MessageCommand",
7
- ContextCommand = "ContextCommand",
8
- Command = "Command",
9
- Message = "Message",
10
- Interaction = "Interaction",
11
- Channel = "Channel"
12
- }
@@ -1,13 +0,0 @@
1
- export var InhibitorType;
2
- (function (InhibitorType) {
3
- InhibitorType["Member"] = "Member";
4
- InhibitorType["User"] = "User";
5
- InhibitorType["Guild"] = "Guild";
6
- InhibitorType["SlashCommand"] = "SlashCommand";
7
- InhibitorType["MessageCommand"] = "MessageCommand";
8
- InhibitorType["ContextCommand"] = "ContextCommand";
9
- InhibitorType["Command"] = "Command";
10
- InhibitorType["Message"] = "Message";
11
- InhibitorType["Interaction"] = "Interaction";
12
- InhibitorType["Channel"] = "Channel";
13
- })(InhibitorType = InhibitorType || (InhibitorType = {}));
@@ -1 +0,0 @@
1
- export {};
@@ -1,18 +0,0 @@
1
- import { TextChannel, Message, User, Guild, GuildMember } from "discord.js";
2
- import { InteractionCommandUtil, MessageCommandUtil } from "../utils/CommandUtil.js";
3
- export interface XernerxMessage extends Message {
4
- util?: MessageCommandUtil;
5
- response?: string;
6
- }
7
- export interface XernerxInteraction extends Message {
8
- util: InteractionCommandUtil;
9
- }
10
- export interface XernerxUser extends User {
11
- isOwner: boolean;
12
- }
13
- export interface XernerxTextChannel extends TextChannel {
14
- }
15
- export interface XernerxGuild extends Guild {
16
- }
17
- export interface XernerxMember extends GuildMember {
18
- }
@@ -1 +0,0 @@
1
- export {};
@@ -1 +0,0 @@
1
- export default pkg;
@@ -1,3 +0,0 @@
1
- import pkg from '../package.json' assert { type: 'json' };
2
-
3
- export default pkg;