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.
- package/dist/{cjs/utils → utils}/InteractionUtil.d.ts +1 -1
- package/dist/{mjs/utils → utils}/InteractionUtil.js +4 -3
- package/dist/{cjs/utils → utils}/MessageUtil.d.ts +1 -1
- package/dist/{mjs/utils → utils}/MessageUtil.js +4 -3
- package/package.json +3 -4
- package/dist/cjs/build/XernerxContextCommand.js +0 -124
- package/dist/cjs/build/XernerxEvent.js +0 -34
- package/dist/cjs/build/XernerxInhibitor.js +0 -30
- package/dist/cjs/build/XernerxMessageCommand.js +0 -122
- package/dist/cjs/build/XernerxSlashCommand.js +0 -180
- package/dist/cjs/client/XernerxClient.js +0 -105
- package/dist/cjs/client/XernerxShardClient.js +0 -56
- package/dist/cjs/functions/deploy.js +0 -66
- package/dist/cjs/functions/load.js +0 -38
- package/dist/cjs/functions/reload.js +0 -33
- package/dist/cjs/functions/setPresence.js +0 -24
- package/dist/cjs/functions/xernerxUser.js +0 -15
- package/dist/cjs/handlers/CommandHandler.js +0 -342
- package/dist/cjs/handlers/EventHandler.js +0 -32
- package/dist/cjs/handlers/ExtensionHandler.js +0 -32
- package/dist/cjs/handlers/Handler.js +0 -48
- package/dist/cjs/handlers/InhibitorHandler.js +0 -34
- package/dist/cjs/handlers/IntegrationHandler.js +0 -29
- package/dist/cjs/main.js +0 -36
- package/dist/cjs/models/Arguments.js +0 -159
- package/dist/cjs/models/Cooldowns.js +0 -36
- package/dist/cjs/tools/XernerxError.js +0 -14
- package/dist/cjs/tools/XernerxIntents.js +0 -27
- package/dist/cjs/tools/XernerxLog.js +0 -98
- package/dist/cjs/tools/XernerxText.js +0 -92
- package/dist/cjs/types/extenders.js +0 -3
- package/dist/cjs/types/interfaces.js +0 -3
- package/dist/cjs/types/types.js +0 -3
- package/dist/cjs/utils/ClientUtil.js +0 -84
- package/dist/cjs/utils/InteractionUtil.js +0 -156
- package/dist/cjs/utils/MessageUtil.js +0 -170
- package/dist/cjs/utils/Util.js +0 -14
- package/dist/cjs/validators/commandValidation.js +0 -127
- package/dist/cjs/validators/inhibitorValidations.js +0 -49
- package/dist/mjs/build/XernerxContextCommand.d.ts +0 -53
- package/dist/mjs/build/XernerxEvent.d.ts +0 -25
- package/dist/mjs/build/XernerxInhibitor.d.ts +0 -29
- package/dist/mjs/build/XernerxMessageCommand.d.ts +0 -57
- package/dist/mjs/build/XernerxSlashCommand.d.ts +0 -69
- package/dist/mjs/client/XernerxClient.d.ts +0 -53
- package/dist/mjs/client/XernerxShardClient.d.ts +0 -21
- package/dist/mjs/functions/deploy.d.ts +0 -3
- package/dist/mjs/functions/load.d.ts +0 -4
- package/dist/mjs/functions/reload.d.ts +0 -3
- package/dist/mjs/functions/setPresence.d.ts +0 -4
- package/dist/mjs/functions/xernerxUser.d.ts +0 -4
- package/dist/mjs/handlers/CommandHandler.d.ts +0 -16
- package/dist/mjs/handlers/EventHandler.d.ts +0 -9
- package/dist/mjs/handlers/ExtensionHandler.d.ts +0 -9
- package/dist/mjs/handlers/Handler.d.ts +0 -14
- package/dist/mjs/handlers/InhibitorHandler.d.ts +0 -9
- package/dist/mjs/handlers/IntegrationHandler.d.ts +0 -15
- package/dist/mjs/main.d.ts +0 -40
- package/dist/mjs/models/Arguments.d.ts +0 -9
- package/dist/mjs/models/Cooldowns.d.ts +0 -11
- package/dist/mjs/tools/XernerxError.d.ts +0 -7
- package/dist/mjs/tools/XernerxIntents.d.ts +0 -5
- package/dist/mjs/tools/XernerxLog.d.ts +0 -28
- package/dist/mjs/tools/XernerxText.d.ts +0 -30
- package/dist/mjs/types/extenders.d.ts +0 -61
- package/dist/mjs/types/interfaces.d.ts +0 -256
- package/dist/mjs/types/types.d.ts +0 -14
- package/dist/mjs/utils/ClientUtil.d.ts +0 -19
- package/dist/mjs/utils/InteractionUtil.d.ts +0 -25
- package/dist/mjs/utils/MessageUtil.d.ts +0 -26
- package/dist/mjs/utils/Util.d.ts +0 -9
- package/dist/mjs/validators/commandValidation.d.ts +0 -7
- package/dist/mjs/validators/inhibitorValidations.d.ts +0 -9
- /package/dist/{cjs/build → build}/XernerxContextCommand.d.ts +0 -0
- /package/dist/{mjs/build → build}/XernerxContextCommand.js +0 -0
- /package/dist/{cjs/build → build}/XernerxEvent.d.ts +0 -0
- /package/dist/{mjs/build → build}/XernerxEvent.js +0 -0
- /package/dist/{cjs/build → build}/XernerxInhibitor.d.ts +0 -0
- /package/dist/{mjs/build → build}/XernerxInhibitor.js +0 -0
- /package/dist/{cjs/build → build}/XernerxMessageCommand.d.ts +0 -0
- /package/dist/{mjs/build → build}/XernerxMessageCommand.js +0 -0
- /package/dist/{cjs/build → build}/XernerxSlashCommand.d.ts +0 -0
- /package/dist/{mjs/build → build}/XernerxSlashCommand.js +0 -0
- /package/dist/{cjs/client → client}/XernerxClient.d.ts +0 -0
- /package/dist/{mjs/client → client}/XernerxClient.js +0 -0
- /package/dist/{cjs/client → client}/XernerxShardClient.d.ts +0 -0
- /package/dist/{mjs/client → client}/XernerxShardClient.js +0 -0
- /package/dist/{cjs/functions → functions}/deploy.d.ts +0 -0
- /package/dist/{mjs/functions → functions}/deploy.js +0 -0
- /package/dist/{cjs/functions → functions}/load.d.ts +0 -0
- /package/dist/{mjs/functions → functions}/load.js +0 -0
- /package/dist/{cjs/functions → functions}/reload.d.ts +0 -0
- /package/dist/{mjs/functions → functions}/reload.js +0 -0
- /package/dist/{cjs/functions → functions}/setPresence.d.ts +0 -0
- /package/dist/{mjs/functions → functions}/setPresence.js +0 -0
- /package/dist/{cjs/functions → functions}/xernerxUser.d.ts +0 -0
- /package/dist/{mjs/functions → functions}/xernerxUser.js +0 -0
- /package/dist/{cjs/handlers → handlers}/CommandHandler.d.ts +0 -0
- /package/dist/{mjs/handlers → handlers}/CommandHandler.js +0 -0
- /package/dist/{cjs/handlers → handlers}/EventHandler.d.ts +0 -0
- /package/dist/{mjs/handlers → handlers}/EventHandler.js +0 -0
- /package/dist/{cjs/handlers → handlers}/ExtensionHandler.d.ts +0 -0
- /package/dist/{mjs/handlers → handlers}/ExtensionHandler.js +0 -0
- /package/dist/{cjs/handlers → handlers}/Handler.d.ts +0 -0
- /package/dist/{mjs/handlers → handlers}/Handler.js +0 -0
- /package/dist/{cjs/handlers → handlers}/InhibitorHandler.d.ts +0 -0
- /package/dist/{mjs/handlers → handlers}/InhibitorHandler.js +0 -0
- /package/dist/{cjs/handlers → handlers}/IntegrationHandler.d.ts +0 -0
- /package/dist/{mjs/handlers → handlers}/IntegrationHandler.js +0 -0
- /package/dist/{cjs/main.d.ts → main.d.ts} +0 -0
- /package/dist/{mjs/main.js → main.js} +0 -0
- /package/dist/{cjs/models → models}/Arguments.d.ts +0 -0
- /package/dist/{mjs/models → models}/Arguments.js +0 -0
- /package/dist/{cjs/models → models}/Cooldowns.d.ts +0 -0
- /package/dist/{mjs/models → models}/Cooldowns.js +0 -0
- /package/dist/{cjs/tools → tools}/XernerxError.d.ts +0 -0
- /package/dist/{mjs/tools → tools}/XernerxError.js +0 -0
- /package/dist/{cjs/tools → tools}/XernerxIntents.d.ts +0 -0
- /package/dist/{mjs/tools → tools}/XernerxIntents.js +0 -0
- /package/dist/{cjs/tools → tools}/XernerxLog.d.ts +0 -0
- /package/dist/{mjs/tools → tools}/XernerxLog.js +0 -0
- /package/dist/{cjs/tools → tools}/XernerxText.d.ts +0 -0
- /package/dist/{mjs/tools → tools}/XernerxText.js +0 -0
- /package/dist/{cjs/types → types}/extenders.d.ts +0 -0
- /package/dist/{mjs/types → types}/extenders.js +0 -0
- /package/dist/{cjs/types → types}/interfaces.d.ts +0 -0
- /package/dist/{mjs/types → types}/interfaces.js +0 -0
- /package/dist/{cjs/types → types}/types.d.ts +0 -0
- /package/dist/{mjs/types → types}/types.js +0 -0
- /package/dist/{cjs/utils → utils}/ClientUtil.d.ts +0 -0
- /package/dist/{mjs/utils → utils}/ClientUtil.js +0 -0
- /package/dist/{cjs/utils → utils}/Util.d.ts +0 -0
- /package/dist/{mjs/utils → utils}/Util.js +0 -0
- /package/dist/{cjs/validators → validators}/commandValidation.d.ts +0 -0
- /package/dist/{mjs/validators → validators}/commandValidation.js +0 -0
- /package/dist/{cjs/validators → validators}/inhibitorValidations.d.ts +0 -0
- /package/dist/{mjs/validators → validators}/inhibitorValidations.js +0 -0
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
import { XernerxClientType, XernerxMessage } from '../types/extenders.js';
|
|
3
|
-
import { MessageCommandArguments, MessageCommandOptions } from '../types/interfaces.js';
|
|
4
|
-
import MessageUtil from '../utils/MessageUtil.js';
|
|
5
|
-
export default class XernerxMessageCommand {
|
|
6
|
-
readonly id: string;
|
|
7
|
-
readonly name: string;
|
|
8
|
-
readonly aliases: string[] | undefined;
|
|
9
|
-
readonly regex: RegExp | undefined;
|
|
10
|
-
readonly prefix: string | string[] | undefined;
|
|
11
|
-
readonly description: string | null | undefined;
|
|
12
|
-
readonly usage: string | null | undefined;
|
|
13
|
-
readonly info: string | null | undefined;
|
|
14
|
-
readonly separator: string | undefined;
|
|
15
|
-
readonly args: import("../types/interfaces.js").MessageCommandArgumentOptions[] | undefined;
|
|
16
|
-
readonly flags: import("../types/interfaces.js").MessageCommandFlagOptions[] | undefined;
|
|
17
|
-
readonly category: string | null | undefined;
|
|
18
|
-
readonly cooldown: number | null | undefined;
|
|
19
|
-
readonly channel: ("GuildText" | "DM" | "GuildVoice" | "GroupDM" | "GuildCategory" | "GuildAnnouncement" | "AnnouncementThread" | "PublicThread" | "PrivateThread" | "GuildStageVoice" | "GuildDirectory" | "GuildForum" | "GuildMedia" | "GuildNews" | "GuildNewsThread" | "GuildPublicThread" | "GuildPrivateThread")[] | null;
|
|
20
|
-
readonly global: boolean | undefined;
|
|
21
|
-
readonly ignore: {
|
|
22
|
-
owner?: boolean | undefined;
|
|
23
|
-
users?: string[] | undefined;
|
|
24
|
-
channels?: string[] | undefined;
|
|
25
|
-
guilds?: string[] | undefined;
|
|
26
|
-
voice?: boolean | undefined;
|
|
27
|
-
} | undefined;
|
|
28
|
-
readonly strict: {
|
|
29
|
-
owner?: boolean | undefined;
|
|
30
|
-
users?: string[] | undefined;
|
|
31
|
-
channels?: string[] | undefined;
|
|
32
|
-
guilds?: string[] | undefined;
|
|
33
|
-
voice?: boolean | undefined;
|
|
34
|
-
} | undefined;
|
|
35
|
-
readonly permissions: {
|
|
36
|
-
user?: string[] | import("../main.js").PermissionNames[] | null | undefined;
|
|
37
|
-
client?: string[] | import("../main.js").PermissionNames[] | null | undefined;
|
|
38
|
-
dm?: boolean | undefined;
|
|
39
|
-
} | undefined;
|
|
40
|
-
readonly filetype: 'MessageCommand';
|
|
41
|
-
readonly filepath: string;
|
|
42
|
-
readonly client: XernerxClientType;
|
|
43
|
-
util: MessageUtil;
|
|
44
|
-
constructor(id: string, options: MessageCommandOptions);
|
|
45
|
-
/**
|
|
46
|
-
* @description Checks for conditions before running the command
|
|
47
|
-
* @param message - The message event emitted on this command
|
|
48
|
-
* @param options - The args and flags parsed on this command
|
|
49
|
-
*/
|
|
50
|
-
conditions(message: XernerxMessage, { args, flags }: MessageCommandArguments): Promise<any>;
|
|
51
|
-
/**
|
|
52
|
-
* @description Runs the execution rule
|
|
53
|
-
* @param message - The message event emitted on this command
|
|
54
|
-
* @param options - The args and flags parsed on this command
|
|
55
|
-
*/
|
|
56
|
-
exec(message: XernerxMessage, { args, flags }: MessageCommandArguments): Promise<any>;
|
|
57
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
import Discord from 'discord.js';
|
|
3
|
-
import { XernerxClientType, XernerxMessageContextInteraction, XernerxSlashInteraction, XernerxUserContextInteraction } from '../types/extenders.js';
|
|
4
|
-
import { SlashCommandArguments, SlashCommandOptions } from '../types/interfaces.js';
|
|
5
|
-
import { XernerxInteraction } from '../types/types.js';
|
|
6
|
-
import InteractionUtil from '../utils/InteractionUtil.js';
|
|
7
|
-
export default class XernerxSlashCommand {
|
|
8
|
-
readonly id: string;
|
|
9
|
-
readonly data: Discord.SlashCommandBuilder;
|
|
10
|
-
readonly name: string;
|
|
11
|
-
readonly description: string;
|
|
12
|
-
readonly usage: string | null | undefined;
|
|
13
|
-
readonly info: string | null | undefined;
|
|
14
|
-
readonly category: string | null | undefined;
|
|
15
|
-
readonly cooldown: number | null | undefined;
|
|
16
|
-
readonly channel: ("GuildText" | "DM" | "GuildVoice" | "GroupDM" | "GuildCategory" | "GuildAnnouncement" | "AnnouncementThread" | "PublicThread" | "PrivateThread" | "GuildStageVoice" | "GuildDirectory" | "GuildForum" | "GuildMedia" | "GuildNews" | "GuildNewsThread" | "GuildPublicThread" | "GuildPrivateThread")[] | null;
|
|
17
|
-
readonly global: boolean | undefined;
|
|
18
|
-
readonly ignore: {
|
|
19
|
-
owner?: boolean | undefined;
|
|
20
|
-
users?: string[] | undefined;
|
|
21
|
-
channels?: string[] | undefined;
|
|
22
|
-
guilds?: string[] | undefined;
|
|
23
|
-
voice?: boolean | undefined;
|
|
24
|
-
} | undefined;
|
|
25
|
-
readonly strict: {
|
|
26
|
-
owner?: boolean | undefined;
|
|
27
|
-
users?: string[] | undefined;
|
|
28
|
-
channels?: string[] | undefined;
|
|
29
|
-
guilds?: string[] | undefined;
|
|
30
|
-
voice?: boolean | undefined;
|
|
31
|
-
} | undefined;
|
|
32
|
-
readonly permissions: {
|
|
33
|
-
user?: string[] | import("../types/types.js").PermissionNames[] | null | undefined;
|
|
34
|
-
client?: string[] | import("../types/types.js").PermissionNames[] | null | undefined;
|
|
35
|
-
dm?: boolean | undefined;
|
|
36
|
-
} | undefined;
|
|
37
|
-
readonly defer: {
|
|
38
|
-
reply?: boolean | undefined;
|
|
39
|
-
ephemeral?: boolean | undefined;
|
|
40
|
-
fetchReply?: boolean | undefined;
|
|
41
|
-
} | undefined;
|
|
42
|
-
readonly filetype: 'SlashCommand';
|
|
43
|
-
readonly filepath: string;
|
|
44
|
-
readonly client: XernerxClientType;
|
|
45
|
-
util: InteractionUtil;
|
|
46
|
-
constructor(id: string, options: SlashCommandOptions);
|
|
47
|
-
/**
|
|
48
|
-
* @description autocomplete let's you add choices to string option arguments
|
|
49
|
-
* @param interaction - The interaction event emitted on this command
|
|
50
|
-
* @param focused - The command option that is in focus
|
|
51
|
-
* @param options - The full list of options on the command
|
|
52
|
-
*/
|
|
53
|
-
autocomplete<T>(interaction: XernerxInteraction<XernerxSlashInteraction | XernerxUserContextInteraction | XernerxMessageContextInteraction>, focused: T, options: T[]): Promise<void | any | T>;
|
|
54
|
-
/**
|
|
55
|
-
* @description Checks for conditions before running the command
|
|
56
|
-
* @param interaction - The interaction event emitted on this command
|
|
57
|
-
* @param options - The args, group and subcommand parsed on this command
|
|
58
|
-
*/
|
|
59
|
-
conditions<T>(interaction: XernerxInteraction<XernerxSlashInteraction | XernerxUserContextInteraction | XernerxMessageContextInteraction>, { args, subcommand, group }: SlashCommandArguments): Promise<void | any | T>;
|
|
60
|
-
/**
|
|
61
|
-
* @description Runs the execution rule
|
|
62
|
-
* @param interaction - The interaction event emitted on this command
|
|
63
|
-
* @param options - The args, group and subcommand parsed on this command
|
|
64
|
-
*/
|
|
65
|
-
exec<T>(interaction: XernerxInteraction<XernerxSlashInteraction | XernerxUserContextInteraction | XernerxMessageContextInteraction>, { args, subcommand, group }: SlashCommandArguments): Promise<void | any | T>;
|
|
66
|
-
private addArguments;
|
|
67
|
-
private addSubcommands;
|
|
68
|
-
private addSubcommandGroups;
|
|
69
|
-
}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
import { Client, ClientOptions, Collection } from 'discord.js';
|
|
3
|
-
import { XernerxOptions, ModuleOptions, XernerxCommands, XernerxCache } from '../types/interfaces.js';
|
|
4
|
-
import ClientUtil from '../utils/ClientUtil.js';
|
|
5
|
-
import XernerxInhibitor from '../build/XernerxInhibitor.js';
|
|
6
|
-
import XernerxEvent from '../build/XernerxEvent.js';
|
|
7
|
-
import Cooldowns from '../models/Cooldowns.js';
|
|
8
|
-
export default class XernerxClient extends Client {
|
|
9
|
-
readonly settings: {
|
|
10
|
-
ownerId: (string | string[]) & (string | string[] | undefined);
|
|
11
|
-
local: string;
|
|
12
|
-
ceaseless: boolean;
|
|
13
|
-
global?: boolean | undefined;
|
|
14
|
-
permissions?: {
|
|
15
|
-
user: string[] | null;
|
|
16
|
-
client: string[] | null;
|
|
17
|
-
dm: boolean;
|
|
18
|
-
} | undefined;
|
|
19
|
-
ignore?: {
|
|
20
|
-
system: boolean;
|
|
21
|
-
users: string[];
|
|
22
|
-
owner: boolean;
|
|
23
|
-
self: boolean;
|
|
24
|
-
bots: boolean;
|
|
25
|
-
channels: string[];
|
|
26
|
-
guilds: string[];
|
|
27
|
-
} | undefined;
|
|
28
|
-
log?: boolean | {
|
|
29
|
-
warn: boolean;
|
|
30
|
-
error: boolean;
|
|
31
|
-
ready: boolean;
|
|
32
|
-
info: boolean;
|
|
33
|
-
table: string[] | null;
|
|
34
|
-
} | undefined;
|
|
35
|
-
cooldown?: {
|
|
36
|
-
command: number;
|
|
37
|
-
cache: number;
|
|
38
|
-
collections: string[];
|
|
39
|
-
} | undefined;
|
|
40
|
-
};
|
|
41
|
-
readonly config: {} | null;
|
|
42
|
-
readonly commands: XernerxCommands;
|
|
43
|
-
readonly events: Collection<string, XernerxEvent>;
|
|
44
|
-
readonly inhibitors: Collection<string, XernerxInhibitor>;
|
|
45
|
-
readonly modules: ModuleOptions;
|
|
46
|
-
readonly util: ClientUtil;
|
|
47
|
-
readonly stats: Record<string, number>;
|
|
48
|
-
readonly cache: XernerxCache;
|
|
49
|
-
readonly cooldowns: Cooldowns;
|
|
50
|
-
readonly dbl: any;
|
|
51
|
-
constructor(discordOptions: ClientOptions, xernerxOptions: XernerxOptions, config?: unknown);
|
|
52
|
-
connect(token: string): Promise<string>;
|
|
53
|
-
}
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
import { ShardingManager, ShardingManagerOptions, ClientUser } from 'discord.js';
|
|
3
|
-
interface XernerxOptions {
|
|
4
|
-
log?: {
|
|
5
|
-
info?: boolean;
|
|
6
|
-
};
|
|
7
|
-
timeout?: number;
|
|
8
|
-
}
|
|
9
|
-
export default class XernerxShardClient extends ShardingManager {
|
|
10
|
-
readonly stats: {
|
|
11
|
-
guildCount: number;
|
|
12
|
-
userCount: number;
|
|
13
|
-
shardCount: number;
|
|
14
|
-
voteCount: number;
|
|
15
|
-
shards: {};
|
|
16
|
-
};
|
|
17
|
-
user: ClientUser | null;
|
|
18
|
-
spawner: Promise<import("@discordjs/collection").Collection<number, import("discord.js").Shard>>;
|
|
19
|
-
constructor(file: string, discordOptions: ShardingManagerOptions, xernerxOptions?: XernerxOptions, data?: unknown);
|
|
20
|
-
}
|
|
21
|
-
export {};
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
import XernerxClient from '../client/XernerxClient.js';
|
|
3
|
-
import { XernerxMessage, XernerxSlashInteraction, XernerxUser, XernerxUserContextInteraction } from '../types/extenders.js';
|
|
4
|
-
export declare function xernerxUser(event: XernerxMessage | XernerxSlashInteraction | XernerxUserContextInteraction | XernerxUserContextInteraction, client: XernerxClient): Promise<XernerxUser>;
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
import XernerxClient from '../client/XernerxClient.js';
|
|
3
|
-
import { ContextHandlerOptions, MessageHandlerOptions, SlashHandlerOptions } from '../types/interfaces.js';
|
|
4
|
-
import Handler from './Handler.js';
|
|
5
|
-
export default class CommandHandler extends Handler {
|
|
6
|
-
readonly readyTimestamp: number;
|
|
7
|
-
constructor(client: XernerxClient);
|
|
8
|
-
loadMessageCommands(options: MessageHandlerOptions): Promise<void>;
|
|
9
|
-
loadSlashCommands(options: SlashHandlerOptions): Promise<void>;
|
|
10
|
-
loadContextCommands(options: ContextHandlerOptions): Promise<void>;
|
|
11
|
-
private messageCommandRun;
|
|
12
|
-
private slashCommandRun;
|
|
13
|
-
private contextCommandRun;
|
|
14
|
-
private exec;
|
|
15
|
-
private _checks;
|
|
16
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
import XernerxClient from '../client/XernerxClient.js';
|
|
3
|
-
import { EventHandlerOptions } from '../types/interfaces.js';
|
|
4
|
-
import Handler from './Handler.js';
|
|
5
|
-
export default class EventHandler extends Handler {
|
|
6
|
-
readonly readyTimestamp: number;
|
|
7
|
-
constructor(client: XernerxClient);
|
|
8
|
-
loadEvents(options: EventHandlerOptions): Promise<void>;
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
import XernerxExtensionBuilder from 'xernerx-extension-builder';
|
|
3
|
-
import XernerxClient from '../client/XernerxClient.js';
|
|
4
|
-
import Handler from './Handler.js';
|
|
5
|
-
export default class ExtensionHandler extends Handler {
|
|
6
|
-
readonly readyTimestamp: number;
|
|
7
|
-
constructor(client: XernerxClient);
|
|
8
|
-
loadExtensions(...extensions: Array<XernerxExtensionBuilder>): void;
|
|
9
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
import XernerxClient from '../client/XernerxClient.js';
|
|
3
|
-
import MessageCommandBuilder from '../build/XernerxMessageCommand.js';
|
|
4
|
-
import XernerxSlashCommand from '../build/XernerxSlashCommand.js';
|
|
5
|
-
import XernerxContextCommand from '../build/XernerxContextCommand.js';
|
|
6
|
-
import { filetype } from '../types/types.js';
|
|
7
|
-
export default class Handler {
|
|
8
|
-
readonly client: XernerxClient;
|
|
9
|
-
readonly files: Array<MessageCommandBuilder | XernerxSlashCommand | XernerxContextCommand>;
|
|
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
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
import XernerxClient from '../client/XernerxClient.js';
|
|
3
|
-
import Handler from './Handler.js';
|
|
4
|
-
import { InhibitorHandlerOptions } from '../types/interfaces.js';
|
|
5
|
-
export default class InhibitorHandler extends Handler {
|
|
6
|
-
readonly readyTimestamp: number;
|
|
7
|
-
constructor(client: XernerxClient);
|
|
8
|
-
loadInhibitors(options: InhibitorHandlerOptions): Promise<void>;
|
|
9
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
import dbl from 'dbl-sdk';
|
|
3
|
-
import XernerxClient from '../client/XernerxClient.js';
|
|
4
|
-
import Handler from './Handler.js';
|
|
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>;
|
|
10
|
-
}
|
|
11
|
-
interface DBLOptions {
|
|
12
|
-
post?: boolean;
|
|
13
|
-
votes?: boolean;
|
|
14
|
-
}
|
|
15
|
-
export {};
|
package/dist/mjs/main.d.ts
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
declare const version: any;
|
|
3
|
-
import XernerxClient from './client/XernerxClient.js';
|
|
4
|
-
import XernerxShardClient from './client/XernerxShardClient.js';
|
|
5
|
-
import XernerxMessageCommand from './build/XernerxMessageCommand.js';
|
|
6
|
-
import XernerxSlashCommand from './build/XernerxSlashCommand.js';
|
|
7
|
-
import XernerxContextCommand from './build/XernerxContextCommand.js';
|
|
8
|
-
import XernerxEvent from './build/XernerxEvent.js';
|
|
9
|
-
import XernerxInhibitor from './build/XernerxInhibitor.js';
|
|
10
|
-
import XernerxLog from './tools/XernerxLog.js';
|
|
11
|
-
export { XernerxIntents } from './tools/XernerxIntents.js';
|
|
12
|
-
export * from 'discord.js';
|
|
13
|
-
export * from 'dumfunctions';
|
|
14
|
-
import Discord from 'discord.js';
|
|
15
|
-
import XernerxExtension from 'xernerx-extension-builder';
|
|
16
|
-
export * from './types/types.js';
|
|
17
|
-
export * from './types/extenders.js';
|
|
18
|
-
export * from './types/interfaces.js';
|
|
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, };
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
import XernerxSlashCommand from '../build/XernerxSlashCommand.js';
|
|
3
|
-
import XernerxContextCommand from '../build/XernerxContextCommand.js';
|
|
4
|
-
import MessageCommandBuilder from '../build/XernerxMessageCommand.js';
|
|
5
|
-
import { XernerxMessage, XernerxMessageContextInteraction, XernerxSlashInteraction, XernerxUserContextInteraction } from '../types/extenders.js';
|
|
6
|
-
import { MessageCommandArguments } from '../types/interfaces.js';
|
|
7
|
-
import { XernerxInteraction } from '../types/types.js';
|
|
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>;
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
import { Collection } from 'discord.js';
|
|
3
|
-
import XernerxClient from '../client/XernerxClient.js';
|
|
4
|
-
export default class Cooldowns {
|
|
5
|
-
private readonly _client;
|
|
6
|
-
readonly collections: Record<string, Collection<string, unknown>>;
|
|
7
|
-
constructor(client: XernerxClient, collections?: Array<string>);
|
|
8
|
-
add(collection: keyof typeof this.collections, id: string, value: unknown): string | Collection<string, unknown>;
|
|
9
|
-
delete(collection: keyof typeof this.collections, id: string): string | boolean;
|
|
10
|
-
has(id: string): Record<string, Collection<string, unknown>>;
|
|
11
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
import XernerxError from './XernerxError.js';
|
|
3
|
-
import XernerxClient from '../client/XernerxClient.js';
|
|
4
|
-
import { XernerxClientType } from '../types/extenders.js';
|
|
5
|
-
export default class XernerxLog {
|
|
6
|
-
private readonly client;
|
|
7
|
-
private readonly errorLog;
|
|
8
|
-
private readonly infoLog;
|
|
9
|
-
private readonly warnLog;
|
|
10
|
-
private readonly readyLog;
|
|
11
|
-
private readonly tableLog;
|
|
12
|
-
private readonly time;
|
|
13
|
-
private readonly ram;
|
|
14
|
-
private shard;
|
|
15
|
-
private readonly base;
|
|
16
|
-
constructor(client: XernerxClient | XernerxClientType | true);
|
|
17
|
-
info(message: string, force?: boolean): void | null;
|
|
18
|
-
warn(message: string): void | null;
|
|
19
|
-
update(version: string, url: string): Promise<void>;
|
|
20
|
-
error(message: string, error?: XernerxError | unknown): void | null;
|
|
21
|
-
ready(): void;
|
|
22
|
-
private cyan;
|
|
23
|
-
private blue;
|
|
24
|
-
private yellow;
|
|
25
|
-
private purple;
|
|
26
|
-
private red;
|
|
27
|
-
private green;
|
|
28
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
import { Emoji, Role } from 'discord.js';
|
|
3
|
-
import { XernerxGuildChannel, XernerxMember, XernerxUser } from '../types/extenders.js';
|
|
4
|
-
export default class XernerxText {
|
|
5
|
-
user(user: string | XernerxUser): string;
|
|
6
|
-
channel(channel: string | XernerxGuildChannel): string;
|
|
7
|
-
role(role: string | Role): string;
|
|
8
|
-
emoji(emoji: string | Emoji, animated?: boolean): string;
|
|
9
|
-
member(member: string | XernerxMember): string;
|
|
10
|
-
timestamp(timestamp?: number | Date, format?: 't' | 'T' | 'd' | 'D' | 'f' | 'F' | 'R'): string;
|
|
11
|
-
codeBlock(code: string, language: string): string;
|
|
12
|
-
iCodeBlock(code: string): string;
|
|
13
|
-
bold(text: string): string;
|
|
14
|
-
italic(text: string): string;
|
|
15
|
-
underline(text: string): string;
|
|
16
|
-
strike(text: string): string;
|
|
17
|
-
spoiler(text: string): string;
|
|
18
|
-
quote(text: string): string;
|
|
19
|
-
blockQuote(text: string): string;
|
|
20
|
-
hyperlink(text: string, url: string): string;
|
|
21
|
-
Progressbar(min: number, max: number, cur: number, options?: ProgressBarOptions): string;
|
|
22
|
-
}
|
|
23
|
-
interface ProgressBarOptions {
|
|
24
|
-
fill?: string;
|
|
25
|
-
fade?: string;
|
|
26
|
-
empty?: string;
|
|
27
|
-
percentage?: boolean;
|
|
28
|
-
length?: number;
|
|
29
|
-
}
|
|
30
|
-
export {};
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
/** @format */
|
|
2
|
-
import { ChatInputCommandInteraction, Collection, DMChannel, Guild, GuildChannel, GuildMember, Message, MessageContextMenuCommandInteraction, User, UserContextMenuCommandInteraction } from 'discord.js';
|
|
3
|
-
import InteractionUtil from '../utils/InteractionUtil.js';
|
|
4
|
-
import MessageUtil from '../utils/MessageUtil.js';
|
|
5
|
-
import { ModuleOptions, XernerxCache, XernerxCommands } from '../types/interfaces.js';
|
|
6
|
-
import XernerxEvent from '../build/XernerxEvent.js';
|
|
7
|
-
import XernerxInhibitor from '../build/XernerxInhibitor.js';
|
|
8
|
-
import XernerxClient from '../client/XernerxClient.js';
|
|
9
|
-
import ClientUtil from '../utils/ClientUtil.js';
|
|
10
|
-
export interface XernerxUser extends User {
|
|
11
|
-
owner: boolean;
|
|
12
|
-
voted: boolean | null;
|
|
13
|
-
}
|
|
14
|
-
export interface XernerxMember extends GuildMember {
|
|
15
|
-
username: string;
|
|
16
|
-
}
|
|
17
|
-
export interface XernerxGuild extends Guild {
|
|
18
|
-
}
|
|
19
|
-
export interface XernerxGuildChannel extends GuildChannel {
|
|
20
|
-
}
|
|
21
|
-
export interface XernerxDMChannel extends DMChannel {
|
|
22
|
-
}
|
|
23
|
-
interface XernerxCommand {
|
|
24
|
-
}
|
|
25
|
-
export interface XernerxMessage extends Message, XernerxCommand {
|
|
26
|
-
user: XernerxUser;
|
|
27
|
-
util: MessageUtil;
|
|
28
|
-
}
|
|
29
|
-
export interface XernerxSlashInteraction extends ChatInputCommandInteraction, XernerxCommand {
|
|
30
|
-
user: XernerxUser;
|
|
31
|
-
util: InteractionUtil;
|
|
32
|
-
}
|
|
33
|
-
export interface XernerxUserContextInteraction extends UserContextMenuCommandInteraction, XernerxCommand {
|
|
34
|
-
user: XernerxUser;
|
|
35
|
-
util: InteractionUtil;
|
|
36
|
-
}
|
|
37
|
-
export interface XernerxMessageContextInteraction extends MessageContextMenuCommandInteraction, XernerxCommand {
|
|
38
|
-
user: XernerxUser;
|
|
39
|
-
util: InteractionUtil;
|
|
40
|
-
}
|
|
41
|
-
export interface XernerxClientType extends XernerxClient {
|
|
42
|
-
commands: XernerxCommands;
|
|
43
|
-
events: Collection<string, XernerxEvent>;
|
|
44
|
-
inhibitors: Collection<string, XernerxInhibitor>;
|
|
45
|
-
modules: ModuleOptions;
|
|
46
|
-
util: ClientUtil;
|
|
47
|
-
stats: {
|
|
48
|
-
guildCount: number;
|
|
49
|
-
userCount: number;
|
|
50
|
-
shardId: number;
|
|
51
|
-
shardCount: number;
|
|
52
|
-
};
|
|
53
|
-
cooldown: {
|
|
54
|
-
default: number;
|
|
55
|
-
cache: number;
|
|
56
|
-
collections: Array<string>;
|
|
57
|
-
};
|
|
58
|
-
cache: XernerxCache;
|
|
59
|
-
connect: () => Promise<string>;
|
|
60
|
-
}
|
|
61
|
-
export {};
|