xernerx 4.15.0 → 4.15.2

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 (137) hide show
  1. package/dist/{cjs/utils → utils}/InteractionUtil.d.ts +1 -1
  2. package/dist/{mjs/utils → utils}/InteractionUtil.js +4 -3
  3. package/dist/{cjs/utils → utils}/MessageUtil.d.ts +1 -1
  4. package/dist/{mjs/utils → utils}/MessageUtil.js +4 -3
  5. package/package.json +3 -4
  6. package/dist/cjs/build/XernerxContextCommand.js +0 -124
  7. package/dist/cjs/build/XernerxEvent.js +0 -34
  8. package/dist/cjs/build/XernerxInhibitor.js +0 -30
  9. package/dist/cjs/build/XernerxMessageCommand.js +0 -122
  10. package/dist/cjs/build/XernerxSlashCommand.js +0 -180
  11. package/dist/cjs/client/XernerxClient.js +0 -105
  12. package/dist/cjs/client/XernerxShardClient.js +0 -56
  13. package/dist/cjs/functions/deploy.js +0 -66
  14. package/dist/cjs/functions/load.js +0 -38
  15. package/dist/cjs/functions/reload.js +0 -33
  16. package/dist/cjs/functions/setPresence.js +0 -24
  17. package/dist/cjs/functions/xernerxUser.js +0 -15
  18. package/dist/cjs/handlers/CommandHandler.js +0 -342
  19. package/dist/cjs/handlers/EventHandler.js +0 -32
  20. package/dist/cjs/handlers/ExtensionHandler.js +0 -32
  21. package/dist/cjs/handlers/Handler.js +0 -48
  22. package/dist/cjs/handlers/InhibitorHandler.js +0 -34
  23. package/dist/cjs/handlers/IntegrationHandler.js +0 -29
  24. package/dist/cjs/main.js +0 -36
  25. package/dist/cjs/models/Arguments.js +0 -159
  26. package/dist/cjs/models/Cooldowns.js +0 -36
  27. package/dist/cjs/tools/XernerxError.js +0 -14
  28. package/dist/cjs/tools/XernerxIntents.js +0 -27
  29. package/dist/cjs/tools/XernerxLog.js +0 -98
  30. package/dist/cjs/tools/XernerxText.js +0 -92
  31. package/dist/cjs/types/extenders.js +0 -3
  32. package/dist/cjs/types/interfaces.js +0 -3
  33. package/dist/cjs/types/types.js +0 -3
  34. package/dist/cjs/utils/ClientUtil.js +0 -84
  35. package/dist/cjs/utils/InteractionUtil.js +0 -156
  36. package/dist/cjs/utils/MessageUtil.js +0 -170
  37. package/dist/cjs/utils/Util.js +0 -14
  38. package/dist/cjs/validators/commandValidation.js +0 -127
  39. package/dist/cjs/validators/inhibitorValidations.js +0 -49
  40. package/dist/mjs/build/XernerxContextCommand.d.ts +0 -53
  41. package/dist/mjs/build/XernerxEvent.d.ts +0 -25
  42. package/dist/mjs/build/XernerxInhibitor.d.ts +0 -29
  43. package/dist/mjs/build/XernerxMessageCommand.d.ts +0 -57
  44. package/dist/mjs/build/XernerxSlashCommand.d.ts +0 -69
  45. package/dist/mjs/client/XernerxClient.d.ts +0 -53
  46. package/dist/mjs/client/XernerxShardClient.d.ts +0 -21
  47. package/dist/mjs/functions/deploy.d.ts +0 -3
  48. package/dist/mjs/functions/load.d.ts +0 -4
  49. package/dist/mjs/functions/reload.d.ts +0 -3
  50. package/dist/mjs/functions/setPresence.d.ts +0 -4
  51. package/dist/mjs/functions/xernerxUser.d.ts +0 -4
  52. package/dist/mjs/handlers/CommandHandler.d.ts +0 -16
  53. package/dist/mjs/handlers/EventHandler.d.ts +0 -9
  54. package/dist/mjs/handlers/ExtensionHandler.d.ts +0 -9
  55. package/dist/mjs/handlers/Handler.d.ts +0 -14
  56. package/dist/mjs/handlers/InhibitorHandler.d.ts +0 -9
  57. package/dist/mjs/handlers/IntegrationHandler.d.ts +0 -15
  58. package/dist/mjs/main.d.ts +0 -40
  59. package/dist/mjs/models/Arguments.d.ts +0 -9
  60. package/dist/mjs/models/Cooldowns.d.ts +0 -11
  61. package/dist/mjs/tools/XernerxError.d.ts +0 -7
  62. package/dist/mjs/tools/XernerxIntents.d.ts +0 -5
  63. package/dist/mjs/tools/XernerxLog.d.ts +0 -28
  64. package/dist/mjs/tools/XernerxText.d.ts +0 -30
  65. package/dist/mjs/types/extenders.d.ts +0 -61
  66. package/dist/mjs/types/interfaces.d.ts +0 -256
  67. package/dist/mjs/types/types.d.ts +0 -14
  68. package/dist/mjs/utils/ClientUtil.d.ts +0 -19
  69. package/dist/mjs/utils/InteractionUtil.d.ts +0 -25
  70. package/dist/mjs/utils/MessageUtil.d.ts +0 -26
  71. package/dist/mjs/utils/Util.d.ts +0 -9
  72. package/dist/mjs/validators/commandValidation.d.ts +0 -7
  73. package/dist/mjs/validators/inhibitorValidations.d.ts +0 -9
  74. /package/dist/{cjs/build → build}/XernerxContextCommand.d.ts +0 -0
  75. /package/dist/{mjs/build → build}/XernerxContextCommand.js +0 -0
  76. /package/dist/{cjs/build → build}/XernerxEvent.d.ts +0 -0
  77. /package/dist/{mjs/build → build}/XernerxEvent.js +0 -0
  78. /package/dist/{cjs/build → build}/XernerxInhibitor.d.ts +0 -0
  79. /package/dist/{mjs/build → build}/XernerxInhibitor.js +0 -0
  80. /package/dist/{cjs/build → build}/XernerxMessageCommand.d.ts +0 -0
  81. /package/dist/{mjs/build → build}/XernerxMessageCommand.js +0 -0
  82. /package/dist/{cjs/build → build}/XernerxSlashCommand.d.ts +0 -0
  83. /package/dist/{mjs/build → build}/XernerxSlashCommand.js +0 -0
  84. /package/dist/{cjs/client → client}/XernerxClient.d.ts +0 -0
  85. /package/dist/{mjs/client → client}/XernerxClient.js +0 -0
  86. /package/dist/{cjs/client → client}/XernerxShardClient.d.ts +0 -0
  87. /package/dist/{mjs/client → client}/XernerxShardClient.js +0 -0
  88. /package/dist/{cjs/functions → functions}/deploy.d.ts +0 -0
  89. /package/dist/{mjs/functions → functions}/deploy.js +0 -0
  90. /package/dist/{cjs/functions → functions}/load.d.ts +0 -0
  91. /package/dist/{mjs/functions → functions}/load.js +0 -0
  92. /package/dist/{cjs/functions → functions}/reload.d.ts +0 -0
  93. /package/dist/{mjs/functions → functions}/reload.js +0 -0
  94. /package/dist/{cjs/functions → functions}/setPresence.d.ts +0 -0
  95. /package/dist/{mjs/functions → functions}/setPresence.js +0 -0
  96. /package/dist/{cjs/functions → functions}/xernerxUser.d.ts +0 -0
  97. /package/dist/{mjs/functions → functions}/xernerxUser.js +0 -0
  98. /package/dist/{cjs/handlers → handlers}/CommandHandler.d.ts +0 -0
  99. /package/dist/{mjs/handlers → handlers}/CommandHandler.js +0 -0
  100. /package/dist/{cjs/handlers → handlers}/EventHandler.d.ts +0 -0
  101. /package/dist/{mjs/handlers → handlers}/EventHandler.js +0 -0
  102. /package/dist/{cjs/handlers → handlers}/ExtensionHandler.d.ts +0 -0
  103. /package/dist/{mjs/handlers → handlers}/ExtensionHandler.js +0 -0
  104. /package/dist/{cjs/handlers → handlers}/Handler.d.ts +0 -0
  105. /package/dist/{mjs/handlers → handlers}/Handler.js +0 -0
  106. /package/dist/{cjs/handlers → handlers}/InhibitorHandler.d.ts +0 -0
  107. /package/dist/{mjs/handlers → handlers}/InhibitorHandler.js +0 -0
  108. /package/dist/{cjs/handlers → handlers}/IntegrationHandler.d.ts +0 -0
  109. /package/dist/{mjs/handlers → handlers}/IntegrationHandler.js +0 -0
  110. /package/dist/{cjs/main.d.ts → main.d.ts} +0 -0
  111. /package/dist/{mjs/main.js → main.js} +0 -0
  112. /package/dist/{cjs/models → models}/Arguments.d.ts +0 -0
  113. /package/dist/{mjs/models → models}/Arguments.js +0 -0
  114. /package/dist/{cjs/models → models}/Cooldowns.d.ts +0 -0
  115. /package/dist/{mjs/models → models}/Cooldowns.js +0 -0
  116. /package/dist/{cjs/tools → tools}/XernerxError.d.ts +0 -0
  117. /package/dist/{mjs/tools → tools}/XernerxError.js +0 -0
  118. /package/dist/{cjs/tools → tools}/XernerxIntents.d.ts +0 -0
  119. /package/dist/{mjs/tools → tools}/XernerxIntents.js +0 -0
  120. /package/dist/{cjs/tools → tools}/XernerxLog.d.ts +0 -0
  121. /package/dist/{mjs/tools → tools}/XernerxLog.js +0 -0
  122. /package/dist/{cjs/tools → tools}/XernerxText.d.ts +0 -0
  123. /package/dist/{mjs/tools → tools}/XernerxText.js +0 -0
  124. /package/dist/{cjs/types → types}/extenders.d.ts +0 -0
  125. /package/dist/{mjs/types → types}/extenders.js +0 -0
  126. /package/dist/{cjs/types → types}/interfaces.d.ts +0 -0
  127. /package/dist/{mjs/types → types}/interfaces.js +0 -0
  128. /package/dist/{cjs/types → types}/types.d.ts +0 -0
  129. /package/dist/{mjs/types → types}/types.js +0 -0
  130. /package/dist/{cjs/utils → utils}/ClientUtil.d.ts +0 -0
  131. /package/dist/{mjs/utils → utils}/ClientUtil.js +0 -0
  132. /package/dist/{cjs/utils → utils}/Util.d.ts +0 -0
  133. /package/dist/{mjs/utils → utils}/Util.js +0 -0
  134. /package/dist/{cjs/validators → validators}/commandValidation.d.ts +0 -0
  135. /package/dist/{mjs/validators → validators}/commandValidation.js +0 -0
  136. /package/dist/{cjs/validators → validators}/inhibitorValidations.d.ts +0 -0
  137. /package/dist/{mjs/validators → validators}/inhibitorValidations.js +0 -0
@@ -1,256 +0,0 @@
1
- /** @format */
2
- import { ActivityType, ChannelType, Collection, PresenceStatusData } from 'discord.js';
3
- import CommandHandler from '../handlers/CommandHandler.js';
4
- import EventHandler from '../handlers/EventHandler.js';
5
- import InhibitorHandler from '../handlers/InhibitorHandler.js';
6
- import IntegrationHandler from '../handlers/IntegrationHandler.js';
7
- import XernerxContextCommand from '../build/XernerxContextCommand.js';
8
- import MessageCommandBuilder from '../build/XernerxMessageCommand.js';
9
- import XernerxSlashCommand from '../build/XernerxSlashCommand.js';
10
- import { Locales, MessageCommandArgumentType, PermissionNames, SlashCommandArgumentType, XernerxEventType, InhibitorType } from './types.js';
11
- import ExtensionHandler from '../handlers/ExtensionHandler.js';
12
- import { XernerxMessage, XernerxUser } from './extenders.js';
13
- export interface XernerxOptions {
14
- local: string;
15
- global?: boolean;
16
- ownerId?: string | Array<string>;
17
- ceaseless?: boolean;
18
- permissions?: {
19
- user?: Array<PermissionNames> | Array<string> | null;
20
- client?: Array<PermissionNames> | Array<string> | null;
21
- dm?: boolean;
22
- };
23
- ignore?: {
24
- owner?: boolean;
25
- self?: boolean;
26
- bots?: boolean;
27
- system?: boolean;
28
- users?: Array<string>;
29
- channels?: Array<string>;
30
- guilds?: Array<string>;
31
- };
32
- log?: {
33
- ready?: boolean;
34
- info?: boolean;
35
- warn?: boolean;
36
- error?: boolean;
37
- table?: Array<'name' | 'aliases' | 'description' | 'filetype' | 'category'>;
38
- };
39
- cooldown?: {
40
- command?: number;
41
- cache?: number;
42
- collections?: Array<string>;
43
- };
44
- }
45
- export interface ModuleOptions {
46
- options: {
47
- message?: MessageHandlerOptions;
48
- slash?: SlashHandlerOptions;
49
- context?: ContextHandlerOptions;
50
- events?: EventHandlerOptions;
51
- inhibitors?: InhibitorHandlerOptions;
52
- };
53
- commandHandler: CommandHandler;
54
- eventHandler: EventHandler;
55
- inhibitorHandler: InhibitorHandler;
56
- integrationHandler: IntegrationHandler;
57
- extensionHandler: ExtensionHandler;
58
- }
59
- export interface XernerxCommands {
60
- message: Collection<string, MessageCommandBuilder>;
61
- slash: Collection<string, XernerxSlashCommand>;
62
- context: Collection<string, XernerxContextCommand>;
63
- }
64
- export interface DBLOptions {
65
- topgg: {
66
- token: string;
67
- };
68
- dbl: {
69
- token: string;
70
- };
71
- config: {
72
- emits: boolean;
73
- logs: boolean;
74
- };
75
- }
76
- export interface XernerxCache {
77
- messages: Collection<string, string>;
78
- cooldowns: Collection<string, {
79
- id: string;
80
- command: string;
81
- createdTimestamp: number;
82
- }>;
83
- }
84
- interface CommandHandlerOptions {
85
- directory: string;
86
- cooldown?: number;
87
- permissions?: {
88
- user?: Array<PermissionNames> | Array<string> | null;
89
- client?: Array<PermissionNames> | Array<string> | null;
90
- dm?: boolean;
91
- };
92
- }
93
- export interface MessageHandlerOptions extends CommandHandlerOptions {
94
- prefix: string | Array<string>;
95
- allowMention?: boolean;
96
- handleEdits?: boolean;
97
- handleDeletes?: boolean;
98
- handleTyping?: boolean;
99
- }
100
- export interface SlashHandlerOptions extends CommandHandlerOptions {
101
- defer?: {
102
- reply?: boolean;
103
- ephemeral?: boolean;
104
- fetchReply?: boolean;
105
- };
106
- }
107
- export interface ContextHandlerOptions extends CommandHandlerOptions {
108
- defer?: {
109
- reply?: boolean;
110
- ephemeral?: boolean;
111
- fetchReply?: boolean;
112
- };
113
- }
114
- export interface EventHandlerOptions {
115
- directory: string;
116
- }
117
- export interface InhibitorHandlerOptions {
118
- directory: string;
119
- }
120
- interface CommandOptions {
121
- name: string;
122
- description?: string | null;
123
- usage?: string | null;
124
- info?: string | null;
125
- category?: string | null;
126
- cooldown?: number | null;
127
- global?: boolean;
128
- channel?: Array<keyof typeof ChannelType> | keyof typeof ChannelType | null;
129
- ignore?: {
130
- owner?: boolean;
131
- users?: Array<string>;
132
- channels?: Array<string>;
133
- guilds?: Array<string>;
134
- voice?: boolean;
135
- };
136
- strict?: {
137
- owner?: boolean;
138
- users?: Array<string>;
139
- channels?: Array<string>;
140
- guilds?: Array<string>;
141
- voice?: boolean;
142
- };
143
- permissions?: {
144
- user?: Array<PermissionNames> | Array<string> | null;
145
- client?: Array<PermissionNames> | Array<string> | null;
146
- dm?: boolean;
147
- };
148
- }
149
- export interface MessageCommandOptions extends CommandOptions {
150
- aliases?: Array<string>;
151
- separator?: string;
152
- prefix?: Array<string> | string;
153
- regex?: RegExp;
154
- channelType?: Array<ChannelType>;
155
- args?: Array<MessageCommandArgumentOptions>;
156
- flags?: Array<MessageCommandFlagOptions>;
157
- }
158
- export interface MessageCommandArgumentOptions {
159
- type: MessageCommandArgumentType;
160
- name: string;
161
- content?: Array<string>;
162
- match?: string | Array<string>;
163
- description?: string;
164
- default?: string | Function;
165
- separator?: string | RegExp;
166
- prompt?: {
167
- reply?: string;
168
- send?: string;
169
- };
170
- }
171
- export interface MessageCommandFlagOptions {
172
- name: string;
173
- match: string;
174
- }
175
- export interface MessageCommandArguments {
176
- args: Record<string, unknown> | null;
177
- flags: Record<string, boolean> | null;
178
- }
179
- export interface SlashCommandOptions extends CommandOptions {
180
- description: string;
181
- nameLocalizations?: Record<Locales, string | null> | null;
182
- descriptionLocalizations?: Record<Locales, string | null> | null;
183
- defer?: {
184
- reply?: boolean;
185
- ephemeral?: boolean;
186
- fetchReply?: boolean;
187
- };
188
- args?: Array<SlashCommandArgumentOptions>;
189
- subcommands?: Array<SlashCommandSubcommandOptions>;
190
- groups?: Array<SlashCommandGroupOptions>;
191
- }
192
- export interface ContextCommandOptions extends CommandOptions {
193
- type: 'user' | 'message';
194
- nameLocalizations?: Record<Locales, string | null> | null;
195
- defer?: {
196
- reply?: boolean;
197
- ephemeral?: boolean;
198
- fetchReply?: boolean;
199
- };
200
- }
201
- export interface SlashCommandArgumentOptions {
202
- type: SlashCommandArgumentType;
203
- name: string;
204
- description: string;
205
- required?: boolean;
206
- autocomplete?: boolean;
207
- choices?: Array<Record<string, string>>;
208
- }
209
- export interface SlashCommandSubcommandOptions {
210
- name: string;
211
- description: string;
212
- args?: Array<SlashCommandArgumentOptions>;
213
- }
214
- export interface SlashCommandGroupOptions {
215
- name: string;
216
- description: string;
217
- subcommands: Array<SlashCommandSubcommandOptions>;
218
- }
219
- export interface SlashCommandArguments<T = SlashCommandArgumentType> {
220
- args: Record<string, any>;
221
- subcommand: string;
222
- group: string;
223
- }
224
- export interface XernerxEventOptions {
225
- name: XernerxEventType;
226
- emitter?: 'client' | 'process';
227
- type?: 'discord' | 'node';
228
- once?: boolean;
229
- }
230
- export interface XernerxInhibitorOptions {
231
- name: string;
232
- type: InhibitorType;
233
- }
234
- export interface PresenceOptions {
235
- text: string;
236
- type?: keyof typeof ActivityType;
237
- url: string;
238
- status?: PresenceStatusData;
239
- interval?: number;
240
- }
241
- export type ContextCommandArguments<T extends 'user' | 'message'> = T extends 'user' ? XernerxUser : XernerxMessage;
242
- export interface PaginatorOptions {
243
- type?: 'button' | 'select-menu' | 'combined';
244
- buttons?: Array<string>;
245
- description?: boolean;
246
- placeholder?: string;
247
- index?: number;
248
- send?: boolean;
249
- filter?: Function;
250
- time?: number;
251
- }
252
- export interface ResolveCommandOptions {
253
- type?: 'MessageCommand' | 'SlashCommand' | 'ContextCommand' | 'Interaction';
254
- name?: string;
255
- }
256
- export {};
@@ -1,14 +0,0 @@
1
- /** @format */
2
- import { SlashCommandBooleanOption, SlashCommandChannelOption, SlashCommandIntegerOption, SlashCommandMentionableOption, SlashCommandNumberOption, SlashCommandRoleOption, SlashCommandStringOption, SlashCommandUserOption } from 'discord.js';
3
- import { XernerxMessageContextInteraction, XernerxSlashInteraction, XernerxUserContextInteraction } from './extenders.js';
4
- export type filetype = 'MessageCommand' | 'SlashCommand' | 'ContextCommand' | 'Event' | 'Inhibitor';
5
- export type Locales = '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';
6
- export type SlashCommandArgumentType = 'attachment' | 'boolean' | 'channel' | 'integer' | 'mentionable' | 'number' | 'role' | 'string' | 'user';
7
- export type SlashCommandOptionChoices = SlashCommandStringOption | SlashCommandNumberOption | SlashCommandIntegerOption;
8
- export type SlashCommandOption = SlashCommandOptionChoices | SlashCommandBooleanOption | SlashCommandUserOption | SlashCommandChannelOption | SlashCommandRoleOption | SlashCommandMentionableOption;
9
- export type MessageCommandArgumentType = 'string' | 'number' | 'boolean' | 'confirm' | 'channel' | 'guild' | 'integer' | 'mentionable' | 'role' | 'user' | 'message' | 'member' | 'list' | 'option' | 'rest';
10
- export type DiscordEventType = 'applicationCommandPermissionsUpdate' | 'autoModerationActionExecution' | 'autoModerationRuleCreate' | 'autoModerationRuleDelete' | 'autoModerationRuleUpdate' | 'ready' | 'guildCreate' | 'guildDelete' | 'guildUpdate' | 'guildUnavailable' | 'guildMemberAdd' | 'guildMemberRemove' | 'guildMemberUpdate' | 'guildMemberAvailable' | 'guildMembersChunk' | 'guildIntegrationsUpdate' | 'roleCreate' | 'roleDelete' | 'inviteCreate' | 'inviteDelete' | 'roleUpdate' | 'emojiCreate' | 'emojiDelete' | 'emojiUpdate' | 'guildBanAdd' | 'guildBanRemove' | 'channelCreate' | 'channelDelete' | 'channelUpdate' | 'channelPinsUpdate' | 'messageCreate' | 'messageDelete' | 'messageUpdate' | 'messageDeleteBulk' | 'messageReactionAdd' | 'messageReactionRemove' | 'messageReactionRemoveAll' | 'messageReactionRemoveEmoji' | 'threadCreate' | 'threadDelete' | 'threadUpdate' | 'threadListSync' | 'threadMemberUpdate' | 'threadMembersUpdate' | 'userUpdate' | 'presenceUpdate' | 'voiceServerUpdate' | 'voiceStateUpdate' | 'typingStart' | 'webhookUpdate' | 'interactionCreate' | 'error' | 'warn' | 'debug' | 'cacheSweep' | 'shardDisconnect' | 'shardError' | 'shardReconnecting' | 'shardReady' | 'shardResume' | 'invalidated' | 'raw' | 'stageInstanceCreate' | 'stageInstanceUpdate' | 'stageInstanceDelete' | 'stickerCreate' | 'stickerDelete' | 'stickerUpdate' | 'guildScheduledEventCreate' | 'guildScheduledEventUpdate' | 'guildScheduledEventDelete' | 'guildScheduledEventUserAdd' | 'guildScheduledEventUserRemove';
11
- export type XernerxEventType = DiscordEventType | 'webhookCreate' | 'webhookError' | 'commandBlock' | 'commandError' | 'commandStart' | 'commandFinish' | 'commandCooldown';
12
- export type XernerxInteraction<T extends XernerxSlashInteraction | XernerxUserContextInteraction | XernerxMessageContextInteraction> = T extends XernerxSlashInteraction ? XernerxSlashInteraction : T extends XernerxUserContextInteraction ? XernerxUserContextInteraction : XernerxMessageContextInteraction;
13
- export type PermissionNames = 'create instant invite' | 'kick members' | 'ban members' | 'administrator' | 'manage channels' | 'manage guild' | 'add reactions' | 'view audit log' | 'priority speaker' | 'stream' | 'view channel' | 'send messages' | 'send tts messages' | 'manage messages' | 'embed links' | 'attach files' | 'read message history' | 'mention everyone' | 'use external emojis' | 'view guild insights' | 'connect' | 'speak' | 'mute members' | 'deafen members' | 'move members' | 'use vad' | 'change nickname' | 'manage nicknames' | 'manage roles' | 'manage webhooks' | 'manage emojis and stickers' | 'use application commands' | 'request to speak' | 'manage events' | 'manage threads' | 'create public threads' | 'create private threads' | 'use external stickers' | 'send messages in threads' | 'start embedded activities' | 'moderate members';
14
- export type InhibitorType = '*' | 'message' | 'interaction' | 'command' | 'channel' | 'user' | 'member' | 'guild' | 'contextCommand' | 'messageCommand' | 'slashCommand';
@@ -1,19 +0,0 @@
1
- /** @format */
2
- import { Collection } from 'discord.js';
3
- import XernerxClient from '../client/XernerxClient.js';
4
- import { PresenceOptions, ResolveCommandOptions } from '../types/interfaces.js';
5
- import Util from './Util.js';
6
- import XernerxContextCommand from '../build/XernerxContextCommand.js';
7
- import XernerxMessageCommand from '../build/XernerxMessageCommand.js';
8
- import XernerxSlashCommand from '../build/XernerxSlashCommand.js';
9
- export default class ClientUtil extends Util {
10
- hasVoted: Function;
11
- constructor(client: XernerxClient);
12
- setPresence(options: PresenceOptions): import("discord.js").ClientPresence | undefined;
13
- private resolveCooldown;
14
- resolveCommand(options: ResolveCommandOptions): XernerxSlashCommand | XernerxContextCommand | XernerxMessageCommand | Collection<string, XernerxSlashCommand | XernerxContextCommand | XernerxMessageCommand>;
15
- resolveChannel(query: string | Record<string, string>): Promise<import("discord.js").Channel | null>;
16
- resolveGuild(query: string | Record<string, string>): Promise<import("discord.js").Guild | null>;
17
- uptime(timestamp?: number | null): string;
18
- commands(): (XernerxSlashCommand | XernerxContextCommand | XernerxMessageCommand)[];
19
- }
@@ -1,25 +0,0 @@
1
- /** @format */
2
- import { EmbedBuilder, InteractionEditReplyOptions, InteractionReplyOptions, MessageCreateOptions, MessagePayload } from 'discord.js';
3
- import XernerxClient from '../client/XernerxClient.js';
4
- import { ContextCommandArguments, PaginatorOptions, SlashCommandArguments } from '../types/interfaces.js';
5
- import { PermissionNames, XernerxInteraction } from '../types/types.js';
6
- import Util from './Util.js';
7
- import { XernerxMessageContextInteraction, XernerxSlashInteraction, XernerxUser, XernerxUserContextInteraction } from '../types/extenders.js';
8
- type MimicOptions = {
9
- timeout: number;
10
- };
11
- export default class InteractionUtil extends Util {
12
- private readonly interaction;
13
- parsed: {
14
- alias: string | null;
15
- args: (SlashCommandArguments | ContextCommandArguments<'message' | 'user'>) | null;
16
- };
17
- constructor(client: XernerxClient, interaction: XernerxInteraction<XernerxSlashInteraction | XernerxUserContextInteraction | XernerxMessageContextInteraction>);
18
- send(content: any): Promise<import("discord.js").Message<false> | import("discord.js").Message<true> | undefined>;
19
- reply(content: string | MessagePayload | InteractionReplyOptions | InteractionEditReplyOptions): Promise<import("discord.js").InteractionResponse<boolean> | import("discord.js").Message<boolean>>;
20
- mimic(user: XernerxUser | string, interaction: MessageCreateOptions, options: MimicOptions): Promise<void>;
21
- paginator(embeds: Array<EmbedBuilder>, options?: PaginatorOptions): Promise<void | import("discord.js").Message<false> | import("discord.js").Message<true>>;
22
- commands(): import("@discordjs/collection").Collection<string, import("../main.js").XernerxSlashCommand> | import("@discordjs/collection").Collection<string, import("../main.js").XernerxContextCommand>;
23
- permissionCheck(type: 'user' | 'client', permissions: Array<PermissionNames>): boolean;
24
- }
25
- export {};
@@ -1,26 +0,0 @@
1
- /** @format */
2
- import { EmbedBuilder, MessageCreateOptions, MessageEditOptions, MessagePayload, MessageReplyOptions } from 'discord.js';
3
- import XernerxClient from '../client/XernerxClient.js';
4
- import { XernerxMessage, XernerxUser } from '../types/extenders.js';
5
- import Util from './Util.js';
6
- import { PaginatorOptions } from '../types/interfaces.js';
7
- import { PermissionNames } from '../main.js';
8
- type MimicOptions = {
9
- timeout: number;
10
- };
11
- export default class MessageUtil extends Util {
12
- private readonly message;
13
- parsed: {
14
- alias: string | null;
15
- prefix: string | null;
16
- args: Record<string, unknown> | null;
17
- };
18
- constructor(client: XernerxClient, message: XernerxMessage);
19
- send(content: any): Promise<import("discord.js").Message<boolean> | null>;
20
- reply(content: string | MessagePayload | MessageReplyOptions | MessageEditOptions): Promise<import("discord.js").Message<boolean> | null>;
21
- mimic(user: XernerxUser | string, message: MessageCreateOptions, options: MimicOptions): Promise<void>;
22
- paginator(embeds: Array<EmbedBuilder>, options?: PaginatorOptions): Promise<void | import("discord.js").Message<boolean> | null>;
23
- commands(): import("@discordjs/collection").Collection<string, import("../main.js").XernerxMessageCommand>;
24
- permissionCheck(type: 'user' | 'client', permissions: Array<PermissionNames>): boolean;
25
- }
26
- export {};
@@ -1,9 +0,0 @@
1
- /** @format */
2
- import XernerxClient from '../client/XernerxClient.js';
3
- import XernerxText from '../tools/XernerxText.js';
4
- export default class Util {
5
- readonly client: XernerxClient;
6
- readonly text: XernerxText;
7
- constructor(client: XernerxClient);
8
- delay(time: number): Promise<unknown>;
9
- }
@@ -1,7 +0,0 @@
1
- /** @format */
2
- import XernerxContextCommand from '../build/XernerxContextCommand.js';
3
- import MessageCommandBuilder from '../build/XernerxMessageCommand.js';
4
- import XernerxSlashCommand from '../build/XernerxSlashCommand.js';
5
- import { XernerxMessage, XernerxSlashInteraction, XernerxUserContextInteraction } from '../types/extenders.js';
6
- import { XernerxInteraction } from '../types/types.js';
7
- export default function commandValidation(event: XernerxInteraction<XernerxSlashInteraction | XernerxUserContextInteraction | XernerxUserContextInteraction> | XernerxMessage, command: MessageCommandBuilder | XernerxSlashCommand | XernerxContextCommand): Promise<boolean>;
@@ -1,9 +0,0 @@
1
- /** @format */
2
- import { ContextCommandArguments, MessageCommandArguments, SlashCommandArguments } from '../types/interfaces.js';
3
- import XernerxContextCommand from '../build/XernerxContextCommand.js';
4
- import XernerxMessageCommand from '../build/XernerxMessageCommand.js';
5
- import XernerxSlashCommand from '../build/XernerxSlashCommand.js';
6
- import { XernerxMessage, XernerxMessageContextInteraction, XernerxSlashInteraction, XernerxUserContextInteraction } from '../types/extenders.js';
7
- import { InhibitorType, XernerxInteraction } from '../types/types.js';
8
- export declare function inhibitorValidation(event: XernerxMessage | XernerxInteraction<XernerxSlashInteraction | XernerxUserContextInteraction | XernerxMessageContextInteraction>, args?: SlashCommandArguments | MessageCommandArguments | ContextCommandArguments<'user' | 'message'> | null, cmd?: XernerxContextCommand | XernerxMessageCommand | XernerxSlashCommand, type?: 'pre' | 'check' | 'post'): Promise<boolean>;
9
- export declare function inhibitorArguments(event: XernerxMessage | XernerxInteraction<XernerxSlashInteraction | XernerxUserContextInteraction | XernerxMessageContextInteraction>, cmd: XernerxContextCommand | XernerxMessageCommand | XernerxSlashCommand | null, type: InhibitorType): import("../types/extenders.js").XernerxUser | import("discord.js").GuildMember | import("discord.js").Guild | import("discord.js").TextBasedChannel | XernerxSlashCommand | XernerxContextCommand | XernerxMessageCommand | import("discord.js").APIInteractionGuildMember | null | undefined;
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes