chore(release): version
- Bypass Discord Phone Verification
This commit is contained in:
parent
9af5d8954a
commit
dce9c8013c
File diff suppressed because one or more lines are too long
4
package-lock.json
generated
4
package-lock.json
generated
@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "discord.js-selfbot-v13",
|
||||
"version": "2.3.4",
|
||||
"version": "2.3.41",
|
||||
"lockfileVersion": 2,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "discord.js-selfbot-v13",
|
||||
"version": "2.3.4",
|
||||
"version": "2.3.41",
|
||||
"license": "GNU General Public License v3.0",
|
||||
"dependencies": {
|
||||
"@discordjs/builders": "^0.15.0",
|
||||
|
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "discord.js-selfbot-v13",
|
||||
"version": "2.3.4",
|
||||
"version": "2.3.41",
|
||||
"description": "A unofficial discord.js fork for creating selfbots [Based on discord.js v13]",
|
||||
"main": "./src/index.js",
|
||||
"types": "./typings/index.d.ts",
|
||||
|
@ -1,11 +1,12 @@
|
||||
'use strict';
|
||||
|
||||
const Buffer = require('node:buffer').Buffer;
|
||||
const Base = require('./Base');
|
||||
const { GuildScheduledEvent } = require('./GuildScheduledEvent');
|
||||
const IntegrationApplication = require('./IntegrationApplication');
|
||||
const InviteStageInstance = require('./InviteStageInstance');
|
||||
const { Error } = require('../errors');
|
||||
const { Endpoints } = require('../util/Constants');
|
||||
const { ChannelTypes, Endpoints } = require('../util/Constants');
|
||||
const Permissions = require('../util/Permissions');
|
||||
|
||||
// TODO: Convert `inviter` and `channel` in this class to a getter.
|
||||
@ -320,15 +321,32 @@ class Invite extends Base {
|
||||
/**
|
||||
* Join this Guild using this invite.
|
||||
* @param {boolean} autoVerify Whether to automatically verify member
|
||||
* @param {string} [captcha] The captcha key to add
|
||||
* @returns {Promise<void>}
|
||||
* @example
|
||||
* await client.fetchInvite('code').then(async invite => {
|
||||
* await invite.acceptInvite();
|
||||
* });
|
||||
*/
|
||||
async acceptInvite(autoVerify = true) {
|
||||
async acceptInvite(autoVerify = true, captcha = null) {
|
||||
if (!this.guild) throw new Error('INVITE_NO_GUILD');
|
||||
await this.client.api.invites(this.code).post({});
|
||||
const dataHeader = {
|
||||
location: 'Join Guild',
|
||||
location_guild_id: this.guild?.id,
|
||||
location_channel_id: this.channelId,
|
||||
location_channel_type: ChannelTypes[this.channel?.type] ?? 0,
|
||||
};
|
||||
await this.client.api.invites(this.code).post({
|
||||
data: captcha
|
||||
? {
|
||||
captcha_key: captcha,
|
||||
}
|
||||
: {},
|
||||
// Goodjob discord :) Bypass Phone Verification (not captcha .-.)
|
||||
headers: {
|
||||
'X-Context-Properties': Buffer.from(JSON.stringify(dataHeader), 'utf8').toString('base64'),
|
||||
},
|
||||
});
|
||||
if (autoVerify) {
|
||||
const getForm = await this.client.api
|
||||
.guilds(this.guild.id)
|
||||
|
@ -172,7 +172,7 @@ class Options extends null {
|
||||
// $device: 'iPhone14,5 OS 15.2',
|
||||
$os: 'Windows',
|
||||
$browser: 'Discord Client',
|
||||
$device: 'ASUS ROG Phone 5',
|
||||
$device: 'ASUS ROG Phone 5', // :)
|
||||
// Add
|
||||
$os_version: '10',
|
||||
$referrer: '',
|
||||
@ -208,7 +208,7 @@ class Options extends null {
|
||||
'Sec-Fetch-Site': 'same-origin',
|
||||
'X-Debug-Options': 'bugReporterEnabled',
|
||||
// https://github.com/Merubokkusu/Discord-S.C.U.M/issues/66#issuecomment-1009171667
|
||||
'x-super-properties': `${Buffer.from(
|
||||
'X-Super-Properties': `${Buffer.from(
|
||||
JSONBig.stringify({
|
||||
os: 'Windows',
|
||||
browser: 'Discord Client',
|
||||
|
Loading…
Reference in New Issue
Block a user