so... 1.3.92 ?
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
			
		||||
{
 | 
			
		||||
  "name": "discord.js-selfbot-v13",
 | 
			
		||||
  "version": "1.3.91",
 | 
			
		||||
  "version": "1.3.92",
 | 
			
		||||
  "description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
 | 
			
		||||
  "main": "./src/index.js",
 | 
			
		||||
  "types": "./typings/index.d.ts",
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,7 @@
 | 
			
		||||
const { Collection } = require('@discordjs/collection');
 | 
			
		||||
const User = require('./User');
 | 
			
		||||
const { Util } = require('..');
 | 
			
		||||
const { HypeSquadOptions } = require('../util/Constants');
 | 
			
		||||
const { HypeSquadOptions, Opcodes } = require('../util/Constants');
 | 
			
		||||
const DataResolver = require('../util/DataResolver');
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
@@ -260,6 +260,34 @@ class ClientUser extends User {
 | 
			
		||||
    return data;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * Set selfdeaf (Global)
 | 
			
		||||
   * @param {boolean} status Whether or not the ClientUser is deafened
 | 
			
		||||
   * @returns {boolean}
 | 
			
		||||
   */
 | 
			
		||||
  setDeaf(status) {
 | 
			
		||||
    if (typeof status !== 'boolean') throw new Error('Deaf status must be a boolean.');
 | 
			
		||||
    this.client.ws.broadcast({
 | 
			
		||||
      op: Opcodes.VOICE_STATE_UPDATE,
 | 
			
		||||
      d: { guild_id: null, channel_id: null, self_deaf: status },
 | 
			
		||||
    });
 | 
			
		||||
    return status;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * Set selfmute (Global)
 | 
			
		||||
   * @param {boolean} status Whether or not the ClientUser is muted
 | 
			
		||||
   * @returns {boolean}
 | 
			
		||||
   */
 | 
			
		||||
  setMute(status) {
 | 
			
		||||
    if (typeof status !== 'boolean') throw new Error('Mute status must be a boolean.');
 | 
			
		||||
    this.client.ws.broadcast({
 | 
			
		||||
      op: Opcodes.VOICE_STATE_UPDATE,
 | 
			
		||||
      d: { guild_id: null, channel_id: null, self_mute: status },
 | 
			
		||||
    });
 | 
			
		||||
    return status;
 | 
			
		||||
  }
 | 
			
		||||
 | 
			
		||||
  /**
 | 
			
		||||
   * Delete account. Warning: Cannot be changed once used!
 | 
			
		||||
   * @param {string} password Password of the account
 | 
			
		||||
 
 | 
			
		||||
@@ -199,6 +199,22 @@ class PartialGroupDMChannel extends Channel {
 | 
			
		||||
  get lastPinAt() {}
 | 
			
		||||
  send() {}
 | 
			
		||||
  sendTyping() {}
 | 
			
		||||
 | 
			
		||||
  // Testing feature: Call
 | 
			
		||||
  // URL: https://discord.com/api/v9/channels/DMchannelId/call/ring
 | 
			
		||||
  /**
 | 
			
		||||
   * Call this DMChannel. [TEST only]
 | 
			
		||||
   * @returns {Promise<void>}
 | 
			
		||||
   */
 | 
			
		||||
  call() {
 | 
			
		||||
    console.log('TEST only, and not working !');
 | 
			
		||||
    return this.client.api.channels(this.id).call.ring.post({
 | 
			
		||||
      usingApplicationJson: true,
 | 
			
		||||
      data: {
 | 
			
		||||
        recipients: null,
 | 
			
		||||
      },
 | 
			
		||||
    });
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
TextBasedChannel.applyToClass(PartialGroupDMChannel, false);
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										2
									
								
								typings/index.d.ts
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										2
									
								
								typings/index.d.ts
									
									
									
									
										vendored
									
									
								
							@@ -656,6 +656,8 @@ export class ClientUser extends User {
 | 
			
		||||
  public setPassword(oldPassword: string, newPassword: string): Promise<this>;
 | 
			
		||||
  public disableAccount(password: string): Promise<this>;
 | 
			
		||||
  public deleteAccount(password: string): Promise<this>;
 | 
			
		||||
  public setDeaf(status: boolean): Promise<boolean>;
 | 
			
		||||
  public setMute(status: boolean): Promise<boolean>;
 | 
			
		||||
  // Selfbot
 | 
			
		||||
  public readonly nitro: boolean;
 | 
			
		||||
  /**
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user