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
- Client,
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,
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
  {
2
2
  "name": "wv3-discord.js",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "A lightweight Discord API client with a discord.js-inspired API.",
5
5
  "main": "index.js",
6
6
  "types": "index.d.ts",
@@ -8,7 +8,7 @@ class BaseClient {
8
8
  genStartTime
9
9
  }
10
10
  }) {
11
- super(options);
11
+
12
12
  this._ws = null;
13
13
  this._connected = false;
14
14
  this._cfg = options._cfg;
@@ -1,6 +1,6 @@
1
1
  class Tasker {
2
2
  constructor() {
3
- super()
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);