djs-selfbot-v13 3.7.35 → 3.7.36

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/LICENSE CHANGED
@@ -1,7 +1,7 @@
1
1
  GNU GENERAL PUBLIC LICENSE
2
2
  Version 3, 29 June 2007
3
3
 
4
- Copyright (C) 2022 aiko-chan-ai and discordjs
4
+ Copyright (C) 2025 002-sans aiko-chan-ai and discordjs
5
5
  Everyone is permitted to copy and distribute verbatim copies
6
6
  of this license document, but changing it is not allowed.
7
7
 
@@ -632,7 +632,7 @@ state the exclusion of warranty; and each file should have at least
632
632
  the "copyright" line and a pointer to where the full notice is found.
633
633
 
634
634
  <one line to give the program's name and a brief idea of what it does.>
635
- Copyright (C) <year> <name of author>
635
+ Copyright (C) 2025 002-sans aiko-chan-ai and discordjs
636
636
 
637
637
  This program is free software: you can redistribute it and/or modify
638
638
  it under the terms of the GNU General Public License as published by
@@ -647,12 +647,9 @@ the "copyright" line and a pointer to where the full notice is found.
647
647
  You should have received a copy of the GNU General Public License
648
648
  along with this program. If not, see <https://www.gnu.org/licenses/>.
649
649
 
650
- Also add information on how to contact you by electronic and paper mail.
650
+ notice like this when it starts in an interactive mode:
651
651
 
652
- If the program does terminal interaction, make it output a short
653
- notice like this when it starts in an interactive mode:
654
-
655
- <program> Copyright (C) <year> <name of author>
652
+ djs-selfbot-v13 Copyright (C) 2025 002-sans aiko-chan-ai and discordjs
656
653
  This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
657
654
  This is free software, and you are welcome to redistribute it
658
655
  under certain conditions; type `show c' for details.
package/README.md CHANGED
@@ -108,11 +108,6 @@ Github Discussion: [Here](https://github.com/002-sans/djs-selfbot-v13/discussion
108
108
  ## Credits
109
109
  - [Discord.js](https://github.com/discordjs/discord.js)
110
110
 
111
- ## <strong>Other project(s)
112
-
113
- - 📘 [***aiko-chan-ai/DiscordBotClient***](https://github.com/aiko-chan-ai/DiscordBotClient) <br/>
114
- A patched version of discord, with bot login support
115
-
116
111
  ## Star History
117
112
 
118
113
  [![Star History Chart](https://api.star-history.com/svg?repos=002-sans/djs-selfbot-v13&type=Date)](https://star-history.com/#002-sans/djs-selfbot-v13&Date)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "djs-selfbot-v13",
3
- "version": "3.7.35",
3
+ "version": "3.7.36",
4
4
  "description": "An unofficial discord.js fork for creating selfbots",
5
5
  "main": "./src/index.js",
6
6
  "types": "./typings/index.d.ts",
@@ -15,8 +15,8 @@
15
15
  "lint:typings:fix": "tslint typings/index.d.ts --fix",
16
16
  "format": "prettier --write src/**/*.js typings/**/*.ts",
17
17
  "lint:all": "npm run lint && npm run lint:typings",
18
- "docs": "docgen --source src --custom docs/index.yml --output docs/main.json",
19
- "docs:test": "docgen --source src --custom docs/index.yml",
18
+ "docs": "node scripts/generate-docs.js --source src --custom docs/index.yml --output docs/main.json",
19
+ "docs:test": "node scripts/generate-docs.js --source src --custom docs/index.yml",
20
20
  "build": "npm run lint:fix && npm run lint:typings:fix && npm run format && npm run docs"
21
21
  },
22
22
  "files": [
@@ -198,6 +198,7 @@ class BaseGuildVoiceChannel extends GuildChannel {
198
198
  return this.edit({ rtcRegion }, reason);
199
199
  }
200
200
 
201
+
201
202
  /**
202
203
  * Sets the user limit of the channel.
203
204
  * @param {number} userLimit The new user limit
@@ -223,6 +224,30 @@ class BaseGuildVoiceChannel extends GuildChannel {
223
224
  return this.edit({ videoQualityMode }, reason);
224
225
  }
225
226
 
227
+ /**
228
+ * Sets the status of the voice channel.
229
+ * @param {?string} status The new status (max 500 characters). Set to `null` to remove the status
230
+ * @returns {Promise<BaseGuildVoiceChannel>}
231
+ * @example
232
+ * // Set the status of a voice channel
233
+ * voiceChannel.setStatus('Hello!')
234
+ * .then(channel => console.log(`Set status to ${channel.status} for ${channel.name}`))
235
+ * .catch(console.error);
236
+ * @example
237
+ * // Remove the status of a voice channel
238
+ * voiceChannel.setStatus(null);
239
+ */
240
+ setStatus(status) {
241
+ return this.client.api.channels(this.id, 'voice-status').put({
242
+ data: {
243
+ status,
244
+ },
245
+ }).then(() => {
246
+ this.status = status;
247
+ return this;
248
+ });
249
+ }
250
+
226
251
  }
227
252
 
228
253
  TextBasedChannel.applyToClass(BaseGuildVoiceChannel, true, ['lastPinAt']);
@@ -105,6 +105,13 @@ class VoiceChannel extends BaseGuildVoiceChannel {
105
105
  * @param {string} [reason] Reason for changing the camera video quality mode.
106
106
  * @returns {Promise<VoiceChannel>}
107
107
  */
108
+
109
+ /**
110
+ * Sets the status of the voice channel.
111
+ * @name VoiceChannel#setStatus
112
+ * @param {?string} status The new status (max 500 characters). Set to `null` to remove the status
113
+ * @returns {Promise<VoiceChannel>}
114
+ */
108
115
  }
109
116
 
110
117
  module.exports = VoiceChannel;
@@ -719,13 +719,14 @@ export class BaseGuildVoiceChannel extends TextBasedChannelMixin(GuildChannel, [
719
719
  public rateLimitPerUser: number | null;
720
720
  public userLimit: number;
721
721
  public videoQualityMode: VideoQualityMode | null;
722
- public status?: string;
722
+ public status: string | null;
723
723
  public createInvite(options?: CreateInviteOptions): Promise<Invite>;
724
724
  public setRTCRegion(rtcRegion: string | null, reason?: string): Promise<this>;
725
725
  public fetchInvites(cache?: boolean): Promise<Collection<string, Invite>>;
726
726
  public setBitrate(bitrate: number, reason?: string): Promise<VoiceChannel>;
727
727
  public setUserLimit(userLimit: number, reason?: string): Promise<VoiceChannel>;
728
728
  public setVideoQualityMode(videoQualityMode: VideoQualityMode | number, reason?: string): Promise<VoiceChannel>;
729
+ public setStatus(status: string | null): Promise<this>;
729
730
  }
730
731
 
731
732
  export class BaseMessageComponent {