wv3-discord.js 1.0.0 → 1.0.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/index.js
CHANGED
|
@@ -23,31 +23,38 @@ const {
|
|
|
23
23
|
ChatInputCommandInteraction,
|
|
24
24
|
CommandInteractionOptionResolver
|
|
25
25
|
} = require("./src/structures/Interaction");
|
|
26
|
-
|
|
26
|
+
new WV3Client()
|
|
27
27
|
module.exports = {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
28
|
+
discord: {
|
|
29
|
+
WV3Client,
|
|
30
|
+
createClient,
|
|
31
|
+
REST,
|
|
32
|
+
Routes,
|
|
33
|
+
Collection,
|
|
34
|
+
GatewayIntentBits,
|
|
35
|
+
Events,
|
|
36
|
+
InteractionType,
|
|
37
|
+
ApplicationCommandOptionType,
|
|
38
|
+
MessageFlags,
|
|
39
|
+
EmbedBuilder,
|
|
40
|
+
AttachmentBuilder,
|
|
41
|
+
SlashCommandBuilder,
|
|
42
|
+
SlashCommandOptionBuilder,
|
|
43
|
+
SlashCommandSubcommandBuilder,
|
|
44
|
+
User,
|
|
45
|
+
ClientUser,
|
|
46
|
+
Message,
|
|
47
|
+
TextChannel,
|
|
48
|
+
ChatInputCommandInteraction,
|
|
49
|
+
CommandInteractionOptionResolver,
|
|
50
|
+
DiscordHTTPError
|
|
51
|
+
},
|
|
52
|
+
Tools: {
|
|
53
|
+
Gen: {
|
|
54
|
+
Client: require('./scripts/wv3-tools'),
|
|
55
|
+
}
|
|
56
|
+
},
|
|
57
|
+
|
|
51
58
|
version: "1.0.0",
|
|
52
59
|
brand: "wv3-discord.js"
|
|
53
60
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
class Tasker {
|
|
2
2
|
constructor() {
|
|
3
|
-
|
|
3
|
+
|
|
4
4
|
const { AsyncTaskManager } = require("./tasks");
|
|
5
5
|
const Manager = new AsyncTaskManager({
|
|
6
6
|
concurrency: 2,
|
|
@@ -34,8 +34,9 @@ class Tasker {
|
|
|
34
34
|
|
|
35
35
|
class Syncernizor extends Tasker {
|
|
36
36
|
static globalLock = { locked: false };
|
|
37
|
+
|
|
37
38
|
constructor(useGlobalLock = true) {
|
|
38
|
-
super();
|
|
39
|
+
super(useGlobalLock);
|
|
39
40
|
this.printLock = useGlobalLock ? Syncernizor.globalLock : { locked: false };
|
|
40
41
|
const caller = (msg) => this.call(msg);
|
|
41
42
|
Object.setPrototypeOf(caller, Syncernizor.prototype);
|