discord.fixed.js 1.2.4 → 1.2.5

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 CHANGED
@@ -14,6 +14,7 @@ discord.fixed.js is designed to be:
14
14
 
15
15
  - Simplified `Bot` class for Discord.js
16
16
  - Builders for modern Discord interactions:
17
+ - `VoiceChannelStatus` — simple way to set Voice Channel Status
17
18
  - `EmbedBuilder` — simplified embed construction
18
19
  - `ComponentBuilder` — build complex component layouts
19
20
  - `Button`, `Row`, `Select` — quick action row and button handling
@@ -89,6 +90,14 @@ const embed = new EmbedBuilder()
89
90
  .color("Blue");
90
91
  ```
91
92
 
93
+ ### VoiceChannelStatus
94
+
95
+ ```js
96
+ const { VoiceChannelStatus } = require("discord.fixed.js");
97
+
98
+ VoiceChannelStatus().set("text", "emoji", "12341234")
99
+ ```
100
+
92
101
  ### Components
93
102
 
94
103
  ```js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "discord.fixed.js",
3
- "version": "1.2.4",
3
+ "version": "1.2.5",
4
4
  "description": "A wrapper for Discord developers",
5
5
  "main": "src/export.cjs",
6
6
  "module": "src/export.mjs",
@@ -0,0 +1,10 @@
1
+ const { Bot } = require("../Client/Bot");
2
+
3
+ class VoiceChannelStatus {
4
+ constructor(data) {
5
+ super(data);
6
+ }
7
+ set(data) {
8
+
9
+ }
10
+ }
@@ -1,16 +1,31 @@
1
- const { Client, GatewayIntentBits, Partials } = require("discord.js");
1
+ const { Client, GatewayIntentBits, Partials, REST, Routes } = require("discord.js");
2
2
 
3
3
  class Bot extends Client {
4
4
  constructor(options = {}) {
5
- const intents = options.intents === "all" ? Object.values(GatewayIntentBits) : options.intents;
6
- const partials = options.partials === "all" ? Object.values(Partials) : options.partials;
7
- const allowedMentions = options.allowedMentions || { parse: ["users", "roles", "everyone"], repliedUser: true };
5
+ const intents =
6
+ options.intents === "all"
7
+ ? Object.values(GatewayIntentBits)
8
+ : options.intents;
9
+
10
+ const partials =
11
+ options.partials === "all"
12
+ ? Object.values(Partials)
13
+ : options.partials;
14
+
15
+ const allowedMentions = options.allowedMentions || {
16
+ parse: ["users", "roles", "everyone"],
17
+ repliedUser: true
18
+ };
19
+
8
20
  super({ intents, partials, allowedMentions });
21
+
9
22
  this.owners = options.owners || [];
10
23
  }
11
24
 
12
25
  async start(token) {
13
- return super.login(token);
26
+ this.rest = new REST({ version: "10" }).setToken(token);
27
+ this.login(token);
28
+ return;
14
29
  }
15
30
  }
16
31
 
package/src/Client/Bot.js CHANGED
@@ -1,4 +1,4 @@
1
- const { Client, GatewayIntentBits, Partials } = require("discord.js");
1
+ const { Client, GatewayIntentBits, Partials, REST, Routes } = require("discord.js");
2
2
 
3
3
  class Bot extends Client {
4
4
  constructor(options = {}) {
@@ -23,7 +23,9 @@ class Bot extends Client {
23
23
  }
24
24
 
25
25
  async start(token) {
26
- return super.login(token);
26
+ this.rest = new REST({ version: "10" }).setToken(token);
27
+ this.login(token);
28
+ return;
27
29
  }
28
30
  }
29
31
 
package/src/export.js CHANGED
@@ -1,6 +1,11 @@
1
1
  module.exports = {
2
2
  Bot: require("./Client/Bot"),
3
- EmbedBuilder: require("./Builders/EmbedBuilder"), ...require("./Builders/ComponentBuilder"),
3
+ VoiceChannelStatus: require("./Builders/VoiceChannelStatus"),
4
+ VCS: require("./Builders/VoiceChannelStatus"),
5
+ VCStatus: require("./Builders/VoiceChannelStatus"),
6
+ Embed: require("./Builders/EmbedBuilder"),
7
+ EmbedBuilder: require("./Builders/EmbedBuilder"),
8
+ ...require("./Builders/ComponentBuilder"),
4
9
  ...require("./Builders/ButtonActionBuilder"),
5
10
  ...require("./Patches/Aliases")
6
11
  };
@@ -1,14 +0,0 @@
1
- import { Client, GatewayIntentBits, Partials, ClientOptions } from "discord.js";
2
-
3
- export interface BotOptions {
4
- intents?: "all" | any[];
5
- partials?: "all" | any[];
6
- allowedMentions?: ClientOptions["allowedMentions"];
7
- owners?: string[];
8
- }
9
-
10
- export class Bot extends Client {
11
- owners: string[];
12
- constructor(options?: BotOptions);
13
- start(token: string): Promise<string>;
14
- }
@@ -1,17 +0,0 @@
1
- import { Client, GatewayIntentBits, Partials } from "discord.js";
2
-
3
- class Bot extends Client {
4
- constructor(options = {}) {
5
- const intents = options.intents === "all" ? Object.values(GatewayIntentBits) : options.intents;
6
- const partials = options.partials === "all" ? Object.values(Partials) : options.partials;
7
- const allowedMentions = options.allowedMentions || { parse: ["users", "roles", "everyone"], repliedUser: true };
8
- super({ intents, partials, allowedMentions });
9
- this.owners = options.owners || [];
10
- }
11
-
12
- async start(token) {
13
- return super.login(token);
14
- }
15
- }
16
-
17
- export default Bot;
package/src/Client/Bot.ts DELETED
@@ -1,26 +0,0 @@
1
- import { Client, GatewayIntentBits, Partials, ClientOptions } from "discord.js";
2
-
3
- interface BotOptions {
4
- intents?: "all" | any[];
5
- partials?: "all" | any[];
6
- allowedMentions?: ClientOptions["allowedMentions"];
7
- owners?: string[];
8
- }
9
-
10
- export class Bot extends Client {
11
- owners: string[];
12
-
13
- constructor(options: BotOptions = {}) {
14
- const intents = options.intents === "all" ? Object.values(GatewayIntentBits) : options.intents;
15
- const partials = options.partials === "all" ? Object.values(Partials) : options.partials;
16
- const allowedMentions = options.allowedMentions || { parse: ["users", "roles", "everyone"], repliedUser: true };
17
-
18
- super({ intents, partials, allowedMentions });
19
-
20
- this.owners = options.owners || [];
21
- }
22
-
23
- async start(token: string) {
24
- return super.login(token);
25
- }
26
- }