xernerx 3.0.3 → 3.1.1
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/README.md +9 -3
- package/dist/client/XernerxClient.d.ts +2 -2
- package/dist/client/XernerxClient.js +5 -7
- package/dist/handlers/EventHandler.js +1 -1
- package/dist/handlers/Handler.js +9 -9
- package/dist/handlers/WebhookHandler.d.ts +12 -0
- package/dist/handlers/WebhookHandler.js +41 -0
- package/dist/interfaces/ClientInterfaces.d.ts +7 -0
- package/dist/main.d.ts +65 -1
- package/dist/main.js +6 -2
- package/dist/models/Events.js +4 -4
- package/dist/models/top.gg.d.ts +1 -0
- package/dist/models/top.gg.js +1 -0
- package/dist/models/webhooks.d.ts +6 -0
- package/dist/models/webhooks.js +5 -0
- package/dist/types/Types.d.ts +3 -3
- package/package.json +10 -3
package/README.md
CHANGED
|
@@ -1,15 +1,21 @@
|
|
|
1
1
|
# xernerx
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Xernerx is a class based discord.js framework. \[BETA\]
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## Includes
|
|
6
6
|
|
|
7
7
|
> - Slash command handler
|
|
8
8
|
> - Message command handler
|
|
9
9
|
> - Context command handler
|
|
10
|
-
> - Event handler (with custom
|
|
10
|
+
> - Event handler (with custom Events)
|
|
11
11
|
> - Inhibitor handler
|
|
12
12
|
> - Custom utilities
|
|
13
13
|
> - Message command handles
|
|
14
|
+
> - Webhook handler for Top.gg
|
|
14
15
|
|
|
15
16
|
You can checkout the docs [here](https://github.com/TheDummi/xernerx/blob/master/docs/docs.md)
|
|
17
|
+
|
|
18
|
+
## Notes
|
|
19
|
+
|
|
20
|
+
- Only compatible with ESM
|
|
21
|
+
- TypeScript and JavaScript support
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Client, Collection } from "discord.js";
|
|
2
2
|
import { ClientUtil } from "../utils/ClientUtil.js";
|
|
3
|
-
import { DiscordOptions, ClientOptions, Commands, Cache, Modules, HandlerOptions } from "../interfaces/ClientInterfaces.js";
|
|
3
|
+
import { DiscordOptions, ClientOptions, DBLOptions, Commands, Cache, Modules, HandlerOptions } from "../interfaces/ClientInterfaces.js";
|
|
4
4
|
/**
|
|
5
5
|
* @description - The Client.
|
|
6
6
|
* @param {DiscordOptions} discordOptions - The options for discord.js.
|
|
@@ -17,6 +17,6 @@ export default class XernerxClient extends Client {
|
|
|
17
17
|
events: Collection<string, object>;
|
|
18
18
|
inhibitors: Collection<string, object>;
|
|
19
19
|
config: object;
|
|
20
|
-
constructor(discordOptions: DiscordOptions, clientOptions: ClientOptions, config?: object);
|
|
20
|
+
constructor(discordOptions: DiscordOptions, clientOptions: ClientOptions, dblOptions?: DBLOptions, config?: object);
|
|
21
21
|
register(token: string): void;
|
|
22
22
|
}
|
|
@@ -4,7 +4,8 @@ import CommandHandler from "../handlers/CommandHandler.js";
|
|
|
4
4
|
import EventHandler from "../handlers/EventHandler.js";
|
|
5
5
|
import InhibitorHandler from "../handlers/InhibitorHandler.js";
|
|
6
6
|
import { ClientUtil } from "../utils/ClientUtil.js";
|
|
7
|
-
import {
|
|
7
|
+
import { Style } from "dumfunctions";
|
|
8
|
+
import WebhookHandler from "../handlers/WebhookHandler.js";
|
|
8
9
|
/**
|
|
9
10
|
* @description - The Client.
|
|
10
11
|
* @param {DiscordOptions} discordOptions - The options for discord.js.
|
|
@@ -21,7 +22,7 @@ export default class XernerxClient extends Client {
|
|
|
21
22
|
events;
|
|
22
23
|
inhibitors;
|
|
23
24
|
config;
|
|
24
|
-
constructor(discordOptions, clientOptions, config) {
|
|
25
|
+
constructor(discordOptions, clientOptions, dblOptions, config) {
|
|
25
26
|
super(discordOptions);
|
|
26
27
|
this.settings = s
|
|
27
28
|
.object({
|
|
@@ -56,17 +57,14 @@ export default class XernerxClient extends Client {
|
|
|
56
57
|
commandHandler: new CommandHandler(this),
|
|
57
58
|
eventHandler: new EventHandler(this),
|
|
58
59
|
inhibitorHandler: new InhibitorHandler(this),
|
|
60
|
+
webhookHandler: new WebhookHandler(this),
|
|
59
61
|
};
|
|
60
62
|
this.util = new ClientUtil(this);
|
|
61
63
|
this.handlerOptions = {};
|
|
62
64
|
if (this.settings.logging) {
|
|
63
65
|
this.once("ready", async (client) => {
|
|
64
66
|
const size = (await client.guilds.fetch()).size;
|
|
65
|
-
console.info(
|
|
66
|
-
?.guildId
|
|
67
|
-
? `Using ${(await this.guilds.fetch((this.handlerOptions.slash ||
|
|
68
|
-
this.handlerOptions.context)?.guildId || "0")).name} as local guild.`
|
|
69
|
-
: ""}`, "text", "purple"));
|
|
67
|
+
console.info(Style.log(`Xernerx | ${client.user.tag} signed in watching ${size} server${size > 1 ? "s" : ""}. ${(this.handlerOptions.slash || this.handlerOptions.context)?.guildId ? `Using ${(await this.guilds.fetch((this.handlerOptions.slash || this.handlerOptions.context)?.guildId || "0")).name} as local guild.` : ""}`, { color: Style.TextColor.Purple }));
|
|
70
68
|
});
|
|
71
69
|
}
|
|
72
70
|
}
|
package/dist/handlers/Handler.js
CHANGED
|
@@ -2,7 +2,7 @@ import fs from "node:fs";
|
|
|
2
2
|
import * as path from "path";
|
|
3
3
|
import { CommandType } from "../types/Types.js";
|
|
4
4
|
import { s } from "@sapphire/shapeshift";
|
|
5
|
-
import {
|
|
5
|
+
import { Style } from 'dumfunctions';
|
|
6
6
|
/**
|
|
7
7
|
* @description - The Handler class.
|
|
8
8
|
* @param {XernerxClient} client - The XernerxClient.
|
|
@@ -38,7 +38,7 @@ export class Handler {
|
|
|
38
38
|
loaded.push(file.replace(".js", ""));
|
|
39
39
|
}
|
|
40
40
|
if (this.client.handlerOptions.message.logging)
|
|
41
|
-
console.info(
|
|
41
|
+
console.info(Style.log(`Xernerx | Loaded ${loaded.length} message commands: ${loaded.join(", ")}.`, { color: Style.TextColor.Cyan }));
|
|
42
42
|
}
|
|
43
43
|
/**
|
|
44
44
|
* @description - The loader for the slash commands.
|
|
@@ -67,7 +67,7 @@ export class Handler {
|
|
|
67
67
|
loaded.push(file.replace(".js", ""));
|
|
68
68
|
}
|
|
69
69
|
if (this.client.handlerOptions.slash.logging)
|
|
70
|
-
console.info(
|
|
70
|
+
console.info(Style.log(`Xernerx | Loaded ${loaded.length} slash commands: ${loaded.join(", ")}.`, { color: Style.TextColor.Cyan }));
|
|
71
71
|
}
|
|
72
72
|
/**
|
|
73
73
|
* @description - The loader for the context commands.
|
|
@@ -96,7 +96,7 @@ export class Handler {
|
|
|
96
96
|
loaded.push(file.replace(".js", ""));
|
|
97
97
|
}
|
|
98
98
|
if (this.client.handlerOptions.context.logging)
|
|
99
|
-
console.info(
|
|
99
|
+
console.info(Style.log(`Xernerx | Loaded ${loaded.length} context commands: ${loaded.join(", ")}.`, { color: Style.TextColor.Cyan }));
|
|
100
100
|
}
|
|
101
101
|
/**
|
|
102
102
|
* @description - The loader for the events.
|
|
@@ -122,12 +122,12 @@ export class Handler {
|
|
|
122
122
|
this.#emitter(event);
|
|
123
123
|
}
|
|
124
124
|
catch (error) {
|
|
125
|
-
console.error(
|
|
125
|
+
console.error(Style.log(`Xernerx | Couldn't load ${file} because <${error}>`, { color: Style.BackgroundColor.Red }));
|
|
126
126
|
}
|
|
127
127
|
loaded.push(file.replace(".js", ""));
|
|
128
128
|
}
|
|
129
129
|
if (this.client.handlerOptions.events?.logging)
|
|
130
|
-
console.info(
|
|
130
|
+
console.info(Style.log(`Xernerx | Loaded ${loaded.length} events: ${loaded.join(", ")}.`, { color: Style.TextColor.Cyan }));
|
|
131
131
|
})();
|
|
132
132
|
}
|
|
133
133
|
/**
|
|
@@ -147,7 +147,7 @@ export class Handler {
|
|
|
147
147
|
loaded.push(file.replace(".js", ""));
|
|
148
148
|
}
|
|
149
149
|
if (this.client.handlerOptions.inhibitors?.logging)
|
|
150
|
-
console.info(
|
|
150
|
+
console.info(Style.log(`Xernerx | Loaded ${loaded.length} inhibitors: ${loaded.join(", ")}.`, { color: Style.TextColor.Cyan }));
|
|
151
151
|
}
|
|
152
152
|
/**
|
|
153
153
|
* @description - a reader for directories
|
|
@@ -161,7 +161,7 @@ export class Handler {
|
|
|
161
161
|
.filter((file) => file.endsWith(".js"));
|
|
162
162
|
}
|
|
163
163
|
catch (error) {
|
|
164
|
-
console.error(
|
|
164
|
+
console.error(Style.log(`Xernerx | Couldn't read ${dir} because <${error}>.`, { color: Style.BackgroundColor.Red }));
|
|
165
165
|
}
|
|
166
166
|
return [];
|
|
167
167
|
}
|
|
@@ -198,7 +198,7 @@ export class Handler {
|
|
|
198
198
|
}
|
|
199
199
|
}
|
|
200
200
|
catch (error) {
|
|
201
|
-
console.error(
|
|
201
|
+
console.error(Style.log(`Xernerx | Couldn't load ${file} because <${error}>`, { color: Style.BackgroundColor.Red }));
|
|
202
202
|
}
|
|
203
203
|
}
|
|
204
204
|
/**
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { XernerxClient } from "../main.js";
|
|
2
|
+
interface WebhookOptions {
|
|
3
|
+
token: string;
|
|
4
|
+
logging: boolean;
|
|
5
|
+
}
|
|
6
|
+
export default class WebhookHandler {
|
|
7
|
+
client: XernerxClient;
|
|
8
|
+
constructor(client: XernerxClient);
|
|
9
|
+
post(options: WebhookOptions): import("topgg-autoposter/dist/structs/BasePoster.js").BasePoster;
|
|
10
|
+
vote(options: WebhookOptions): void;
|
|
11
|
+
}
|
|
12
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
import { AutoPoster } from 'topgg-autoposter';
|
|
3
|
+
import SDK from '@top-gg/sdk';
|
|
4
|
+
import { Style } from 'dumfunctions';
|
|
5
|
+
import express from 'express';
|
|
6
|
+
export default class WebhookHandler {
|
|
7
|
+
client;
|
|
8
|
+
constructor(client) {
|
|
9
|
+
this.client = client;
|
|
10
|
+
this.vote = this.vote;
|
|
11
|
+
this.post = this.post;
|
|
12
|
+
}
|
|
13
|
+
post(options) {
|
|
14
|
+
const auto = AutoPoster(options.token, this.client);
|
|
15
|
+
auto
|
|
16
|
+
.on('posted', post => {
|
|
17
|
+
if (options.logging)
|
|
18
|
+
console.info(Style.log(`Xernerx | Successfully posted bot stats to Top.gg!`, { color: Style.TextColor.Cyan }));
|
|
19
|
+
return this.client.emit('webhookPost', post);
|
|
20
|
+
})
|
|
21
|
+
.on('error', error => {
|
|
22
|
+
if (options.logging)
|
|
23
|
+
console.info(Style.log(`Xernerx | An error occurred while posting stats to Top.gg, ${error}.`, { color: Style.BackgroundColor.Red }));
|
|
24
|
+
return this.client.emit('webhookError', error);
|
|
25
|
+
});
|
|
26
|
+
return auto;
|
|
27
|
+
}
|
|
28
|
+
vote(options) {
|
|
29
|
+
const app = express();
|
|
30
|
+
const webhook = new SDK.Webhook(options.token);
|
|
31
|
+
// app.post("/dblwebhook", webhook.listener(vote => {
|
|
32
|
+
// try {
|
|
33
|
+
// return this.client.emit("webhookVote", (vote as WebhookPayload))
|
|
34
|
+
// }
|
|
35
|
+
// catch (error) {
|
|
36
|
+
// return this.client.emit("webhookError", error)
|
|
37
|
+
// }
|
|
38
|
+
// }))
|
|
39
|
+
app.listen(4444);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
@@ -4,6 +4,7 @@ import EventHandler from "../handlers/EventHandler.js";
|
|
|
4
4
|
import InhibitorHandler from "../handlers/InhibitorHandler.js";
|
|
5
5
|
import { ContextCommandOptions, MessageCommandOptions, SlashCommandOptions, EventLoadOptions, InhibitorLoadOptions } from "./HandlerInterfaces.js";
|
|
6
6
|
import { MessageCommand } from "../build/MessageCommand.js";
|
|
7
|
+
import WebhookHandler from "../handlers/WebhookHandler.js";
|
|
7
8
|
export interface DiscordOptions {
|
|
8
9
|
shards?: number | number[] | "auto";
|
|
9
10
|
closeTimeout?: number;
|
|
@@ -31,6 +32,11 @@ export interface ClientOptions {
|
|
|
31
32
|
cache?: number;
|
|
32
33
|
};
|
|
33
34
|
}
|
|
35
|
+
export interface DBLOptions {
|
|
36
|
+
token?: string;
|
|
37
|
+
webhook?: string;
|
|
38
|
+
logging?: boolean;
|
|
39
|
+
}
|
|
34
40
|
export interface HandlerOptions {
|
|
35
41
|
message?: MessageCommandOptions;
|
|
36
42
|
slash?: SlashCommandOptions;
|
|
@@ -55,4 +61,5 @@ export interface Modules {
|
|
|
55
61
|
commandHandler: CommandHandler;
|
|
56
62
|
eventHandler: EventHandler;
|
|
57
63
|
inhibitorHandler: InhibitorHandler;
|
|
64
|
+
webhookHandler: WebhookHandler;
|
|
58
65
|
}
|
package/dist/main.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import Discord from "discord.js";
|
|
2
|
+
import { Math, Random, Style } from "dumfunctions";
|
|
2
3
|
import XernerxClient from "./client/XernerxClient.js";
|
|
3
4
|
import { Event } from "./build/Event.js";
|
|
4
5
|
import { Inhibitor } from "./build/Inhibitor.js";
|
|
@@ -10,6 +11,69 @@ import { InhibitorType } from "./types/InhibitorTypes.js";
|
|
|
10
11
|
declare const version: string;
|
|
11
12
|
declare const _default: {
|
|
12
13
|
Discord: typeof Discord;
|
|
14
|
+
Math: {
|
|
15
|
+
E: number;
|
|
16
|
+
LN10: number;
|
|
17
|
+
LN2: number;
|
|
18
|
+
LOG10E: number;
|
|
19
|
+
LOG2E: number;
|
|
20
|
+
PI: number;
|
|
21
|
+
SQRT1_2: number;
|
|
22
|
+
SQRT2: number;
|
|
23
|
+
abs(number: number): number;
|
|
24
|
+
acos(number: number): number;
|
|
25
|
+
acosh(number: number): number;
|
|
26
|
+
asin(number: number): number;
|
|
27
|
+
asinh(number: number): number;
|
|
28
|
+
atan(number: number): number;
|
|
29
|
+
atan2(x: number, y: number): number;
|
|
30
|
+
atanh(number: number): number;
|
|
31
|
+
cbrt(number: number): number;
|
|
32
|
+
ceil(number: number): number;
|
|
33
|
+
clz32(number: number): number;
|
|
34
|
+
cos(number: number): number;
|
|
35
|
+
cosh(number: number): number;
|
|
36
|
+
dif(...numbers: number[]): number;
|
|
37
|
+
exp(number: number): number;
|
|
38
|
+
expm1(number: number): number;
|
|
39
|
+
floor(number: number): number;
|
|
40
|
+
fround(number: number): number;
|
|
41
|
+
hypot(number: number): number;
|
|
42
|
+
imul(x: number, y: number): number;
|
|
43
|
+
log(number: number): number;
|
|
44
|
+
log10(number: number): number;
|
|
45
|
+
log1p(number: number): number;
|
|
46
|
+
log2(number: number): number;
|
|
47
|
+
max(...numbers: number[]): number;
|
|
48
|
+
min(...numbers: number[]): number;
|
|
49
|
+
pow(x: number, y: number): number;
|
|
50
|
+
random(x?: number | undefined, y?: number | undefined): number;
|
|
51
|
+
round(number: number): number;
|
|
52
|
+
shuffle(...numbers: number[]): number | number[];
|
|
53
|
+
sign(number: number): number;
|
|
54
|
+
sin(number: number): number;
|
|
55
|
+
sinh(number: number): number;
|
|
56
|
+
sum(...numbers: number[]): number;
|
|
57
|
+
sqrt(number: number): number;
|
|
58
|
+
tan(number: number): number;
|
|
59
|
+
tanh(number: number): number;
|
|
60
|
+
trunc(number: number): number;
|
|
61
|
+
};
|
|
62
|
+
Style: {
|
|
63
|
+
TextStyle: typeof import("dumfunctions/dist/models/Style.js").TextStyle;
|
|
64
|
+
TextColor: typeof import("dumfunctions/dist/models/Style.js").TextColor;
|
|
65
|
+
BackgroundColor: typeof import("dumfunctions/dist/models/Style.js").BackgroundColor;
|
|
66
|
+
titleCase(string: string, lowercase?: boolean | undefined): string;
|
|
67
|
+
pascalCase(string: string, lowercase?: boolean | undefined): string;
|
|
68
|
+
stringCase(string: string, lowercase?: boolean | undefined): string;
|
|
69
|
+
phraseCase(string: string, lowercase?: boolean | undefined): string;
|
|
70
|
+
log(text: string, options: import("dumfunctions/dist/models/Style.js").LogOptions): string;
|
|
71
|
+
};
|
|
72
|
+
Random: {
|
|
73
|
+
number(min: number, max: number): number;
|
|
74
|
+
element(array: object | unknown[]): any;
|
|
75
|
+
"__#1916@#color"(): void;
|
|
76
|
+
};
|
|
13
77
|
Client: typeof XernerxClient;
|
|
14
78
|
XernerxClient: typeof XernerxClient;
|
|
15
79
|
CommandType: typeof CommandType;
|
|
@@ -23,4 +87,4 @@ declare const _default: {
|
|
|
23
87
|
version: string;
|
|
24
88
|
};
|
|
25
89
|
export default _default;
|
|
26
|
-
export { Discord, XernerxClient, CommandType, EventEmitterType, InhibitorType, Event, MessageCommand, ContextCommand, SlashCommand, Inhibitor, version, };
|
|
90
|
+
export { Discord, Math, Style, Random, XernerxClient, CommandType, EventEmitterType, InhibitorType, Event, MessageCommand, ContextCommand, SlashCommand, Inhibitor, version, };
|
package/dist/main.js
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import Discord from "discord.js";
|
|
2
|
+
import { Math, Random, Style } from "dumfunctions";
|
|
2
3
|
import XernerxClient from "./client/XernerxClient.js";
|
|
3
4
|
import { Event } from "./build/Event.js";
|
|
4
5
|
import { Inhibitor } from "./build/Inhibitor.js";
|
|
@@ -7,10 +8,13 @@ import { ContextCommand } from "./build/ContextCommand.js";
|
|
|
7
8
|
import { SlashCommand } from "./build/SlashCommand.js";
|
|
8
9
|
import { CommandType, EventEmitterType } from "./types/Types.js";
|
|
9
10
|
import { InhibitorType } from "./types/InhibitorTypes.js";
|
|
10
|
-
const version = "3.
|
|
11
|
+
const version = "3.1.1";
|
|
11
12
|
export default {
|
|
12
13
|
// Imported methods
|
|
13
14
|
Discord,
|
|
15
|
+
Math,
|
|
16
|
+
Style,
|
|
17
|
+
Random,
|
|
14
18
|
// Client
|
|
15
19
|
Client: XernerxClient,
|
|
16
20
|
XernerxClient,
|
|
@@ -29,7 +33,7 @@ export default {
|
|
|
29
33
|
};
|
|
30
34
|
export {
|
|
31
35
|
// Imported methods
|
|
32
|
-
Discord,
|
|
36
|
+
Discord, Math, Style, Random,
|
|
33
37
|
// Client
|
|
34
38
|
XernerxClient,
|
|
35
39
|
// Types
|
package/dist/models/Events.js
CHANGED
|
@@ -2,7 +2,7 @@ import { GatewayVersion, InteractionType, REST, Routes, } from "discord.js";
|
|
|
2
2
|
import { InteractionCommandUtil, MessageCommandUtil, } from "../utils/CommandUtil.js";
|
|
3
3
|
import { CommandArguments, messageArgs } from "./CommandArguments.js";
|
|
4
4
|
import commandValidation from "./CommandValidations.js";
|
|
5
|
-
import {
|
|
5
|
+
import { Style } from "dumfunctions";
|
|
6
6
|
import { InhibitorValidation } from "./InhibitorValidations.js";
|
|
7
7
|
export class MessageCommandEvents {
|
|
8
8
|
client;
|
|
@@ -315,13 +315,13 @@ export class CommandsDeploy {
|
|
|
315
315
|
}
|
|
316
316
|
if (this.client.handlerOptions.slash?.logging ||
|
|
317
317
|
this.client.handlerOptions?.context?.logging)
|
|
318
|
-
console.info(
|
|
318
|
+
console.info(Style.log(`Xernerx | Deployed ${deployableCommands.length} of ${commands.length} interaction commands ${this.client.handlerOptions.slash?.global ||
|
|
319
319
|
this.client.handlerOptions.context?.global
|
|
320
320
|
? `globally in ${(await this.client.guilds.fetch()).size} server(s), deleted local commands.`
|
|
321
|
-
: "locally"}.`,
|
|
321
|
+
: "locally"}.`, { color: Style.TextColor.Purple }));
|
|
322
322
|
}
|
|
323
323
|
catch (error) {
|
|
324
|
-
console.error(
|
|
324
|
+
console.error(Style.log(`Xernerx | Couldn't deploy interaction commands because <${error}>.`, { color: Style.BackgroundColor.Red }));
|
|
325
325
|
}
|
|
326
326
|
});
|
|
327
327
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/dist/types/Types.d.ts
CHANGED
|
@@ -14,9 +14,9 @@ export declare enum EventEmitterType {
|
|
|
14
14
|
Rest = "rest",
|
|
15
15
|
Process = "process"
|
|
16
16
|
}
|
|
17
|
-
export
|
|
18
|
-
export
|
|
19
|
-
export
|
|
17
|
+
export type SlashCommandOptionChoices = SlashCommandStringOption | SlashCommandNumberOption | SlashCommandIntegerOption;
|
|
18
|
+
export type SlashCommandOption = SlashCommandOptionChoices | SlashCommandBooleanOption | SlashCommandUserOption | SlashCommandChannelOption | SlashCommandRoleOption | SlashCommandMentionableOption;
|
|
19
|
+
export type NiceTypes = "String" | "Number" | "Boolean" | "User" | "Channel" | "Role" | "Mentionable" | "Integer";
|
|
20
20
|
declare const _default: {
|
|
21
21
|
CommandType: typeof CommandType;
|
|
22
22
|
EventEmitterType: typeof EventEmitterType;
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"type": "module",
|
|
3
3
|
"name": "xernerx",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.1.1",
|
|
5
5
|
"description": "A bot framework for discord.js. [BETA]",
|
|
6
6
|
"main": "dist/main.js",
|
|
7
7
|
"scripts": {
|
|
@@ -19,7 +19,14 @@
|
|
|
19
19
|
"homepage": "https://github.com/TheDummi/xernerx#readme",
|
|
20
20
|
"dependencies": {
|
|
21
21
|
"@sapphire/shapeshift": "^3.7.1",
|
|
22
|
-
"
|
|
22
|
+
"@top-gg/sdk": "^3.1.3",
|
|
23
|
+
"discord.js": "^14.7.0",
|
|
24
|
+
"dumfunctions": "^2.0.0",
|
|
25
|
+
"express": "^4.18.2",
|
|
26
|
+
"topgg-autoposter": "^2.0.1"
|
|
23
27
|
},
|
|
24
|
-
"packageManager": "npm@8.5.5"
|
|
28
|
+
"packageManager": "npm@8.5.5",
|
|
29
|
+
"devDependencies": {
|
|
30
|
+
"@types/express": "^4.17.15"
|
|
31
|
+
}
|
|
25
32
|
}
|