Code Monkey home page Code Monkey logo

discord.js-selfbot-v13's Introduction


discord.js

About

Welcome to [email protected], based on [email protected]

  • discord.js-selfbot-v13 is a Node.js module that allows user accounts to interact with the Discord API v9.

npm version npm downloads Tests status

I don't take any responsibility for blocked Discord accounts that used this module.

Using this on a user account is prohibited by the Discord TOS and can lead to the account block.

Project Status

discord.js-selfbot-v13 is currently in maintenance mode. New features are not actively being added but existing features and new versions of discord are supported as possible. There are some major architectural changes which need to be added to improve the stability and security of the project. I don't have as much spare time as I did when I started this project, so there is not currently any plan for these improvements.

Features (User)

  • Message: Embeds (WebEmbed)
  • User: Status, Activity, RemoteAuth, etc.
  • Guild: Fetch Members, Join / Leave, Top emojis, ...
  • Interactions: Slash Commands, Buttons, Menu, Modal
  • Captcha Handler (2captcha, capmonster, custom)
  • Documentation
  • Voice & Video stream
  • Everything

Installation

Node.js 16.6.0 or newer is required

Recommended Node.js version: 18+ (LTS)

npm install discord.js-selfbot-v13@latest

Example

const { Client } = require('discord.js-selfbot-v13');
const client = new Client();

client.on('ready', async () => {
  console.log(`${client.user.username} is ready!`);
})

client.login('token');

Get Token ?

Run code (Discord Console - [Ctrl + Shift + I])

window.webpackChunkdiscord_app.push([
  [Math.random()],
  {},
  req => {
    if (!req.c) return;
    for (const m of Object.keys(req.c)
      .map(x => req.c[x].exports)
      .filter(x => x)) {
      if (m.default && m.default.getToken !== undefined) {
        return copy(m.default.getToken());
      }
      if (m.getToken !== undefined) {
        return copy(m.getToken());
      }
    }
  },
]);
console.log('%cWorked!', 'font-size: 50px');
console.log(`%cYou now have your token in the clipboard!`, 'font-size: 16px');

Contributing

  • Before creating an issue, please ensure that it hasn't already been reported/suggested, and double-check the documentation.
  • See the contribution guide if you'd like to submit a PR.

Need help?

Github Discussion: Here

Credits

. Other project(s)

Star History

Star History Chart

From Github with love ๐Ÿ’•

discord.js-selfbot-v13's People

Contributors

ahmedmondo avatar aiko-chan-ai avatar catcat1204 avatar connerdassen avatar darkguy10 avatar davidguttman avatar dead8309 avatar dependabot[bot] avatar fknmega avatar gillhoang avatar gorgulenkozxc avatar hanahaneull avatar hongducdev avatar icaka969 avatar kvbaxi avatar lazuee avatar leomavri avatar mantou1233 avatar nekocyan avatar notsapinho avatar rfxct avatar rodit avatar speedycraftah avatar thedevyellowy avatar tropicallism avatar tryka-1213 avatar valadaptive avatar websharik avatar xd33m avatar xielqs avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

discord.js-selfbot-v13's Issues

Problem when sending sub command

Version : 1.2.2
Code :

await message.channel.sendSlash(skyID, "rpg-farm", ["couper"]);
// /rpg-farm couper

Error:

/Users/aiko/Desktop/Developpement/Projets/JavaScript/Test/node_modules/discord.js-selfbot-v13/src/structures/ApplicationCommand.js:489
      if (subCommandCheck && subCommand && !subCommand?.options[i]) continue;
                                                               ^

TypeError: Cannot read properties of undefined (reading '0')
    at ApplicationCommand.sendSlashCommand (/Users/aiko/Desktop/Developpement/Projets/JavaScript/Test/node_modules/discord.js-selfbot-v13/src/structures/ApplicationCommand.js:489:64)
    at TextChannel.sendSlash (/Users/aiko/Desktop/Developpement/Projets/JavaScript/Test/node_modules/discord.js-selfbot-v13/src/structures/Channel.js:256:25)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async Timeout._onTimeout (/Users/aiko/Desktop/Developpement/Projets/JavaScript/Test/index.js:12:7)

Embeds not working

Issue description

send an embed

Code sample

const exampleEmbed = new discord.MessageEmbed()
		.setColor('#0099ff')
		.setTitle('Some title')
		.setURL('https://discord.js.org/')
		.setAuthor({ name: 'Some name', iconURL: 'https://i.imgur.com/AfFp7pu.png', url: 'https://discord.js.org' })
		.setDescription('Some description here')
		.setThumbnail('https://i.imgur.com/AfFp7pu.png')
		.addFields(
			{ name: 'Regular field title', value: 'Some value here' },
			{ name: '_\u200B_', value: '_\u200B_' },
			{ name: 'Inline field title', value: 'Some value here', inline: true },
			{ name: 'Inline field title', value: 'Some value here', inline: true },
		)
		.addField('Inline field title', 'Some value here', true)
		.setImage('https://i.imgur.com/AfFp7pu.png')
		.setTimestamp()
		.setFooter({ text: 'Some footer text here', iconURL: 'https://i.imgur.com/AfFp7pu.png' });
	
		message.channel.send({ embeds: [exampleEmbed] });

Package version

latest version

Node.js version

v16.14.1

Operating system

No response

Priority this issue should have

Medium (should be fixed soon)

Checklist

  • I have searched the open issues for duplicates.
  • I have shared the entire traceback.
  • I am using a user token (and it isn't visible in the code).

Additional Information

No response

todo

Which package is the feature request for?

The core library

Feature

  • message_create event (large guilds)
  • Developer Portal (#427)
  • Support 2captcha solve service + custom
  • Redeem nitro (half working good) + Auto redeem nitro
  • Support add Integrations & Bots to the guild (with captcha solve services)
  • Discord.js v14 (not now)
  • RemoteAuth (v2) can be used in other projects, fully documented + captcha handler (#444)
  • Call (DM + Group DM) support (full)
  • Guild Automod
  • Guild forum (wait discordjs/discord.js#8651)
  • Cache interaction command + awaitModalCreate()
  • New API attachments
  • Select Menu v2
  • Setting-protobuf (https://github.com/dolfies/discord-protos)
  • RPC Server (https://github.com/OpenAsar/arrpc)

Send slash subcommand

Hello !
I can send slash commands, but I can't send subcommands. How can I do it, with the v2 method ?

User.aboutMe

Is it possible to get a user's Bio or About Me?

GuildMember.user.getProfile(); returns the user info, but it doesn't include the user's Bio or About Me

ActivityPlatform type does not show any activity.

Hello, I don't get it why the activity doesn't show up when using the ActivityPlatform type on user accounts. Am I missing something?
Here are my example codes:

Xbox activity:

client.on("ready", () => {
    client.user.setPresence({
        status: "online",
        activities :[{
            type: 0,
            platform: "xbox",
            name: "Minecraft",
            application_id: "438122941302046720",
            timestamps :{
                start: Math.floor(new Date().getTime())
            }
        }]
    })
})

Samsung activity:

client.on("ready", () => {
    client.user.setPresence({
        status: "online",
        activities :[{
            type: 0,
            platform: "samsung",
            name: "Minecraft",
            application_id: "606736488545124381",
            timestamps :{
                start: Math.floor(new Date().getTime())
            }
        }]
    })
})

I tried all of the available platform types: desktop, xbox, samsung, android, ios, ps4 and ps5, but none of them worked.
I also get no errors when using them.

But the activity shows completely fine when removing the platform line (shows "Playing a game" instead of "Samsung Galaxy" or "Xbox").

Slash Commands not working

client.on("messageCreate", async (msg) => { // When a message is created
    if(msg.content === "a") { // If the message content is "!ping"
		await Channel.sendSlash("302050872383242240", "bump");
        // Send a message in the same channel with "Pong!"
    } else if(msg.content === "!pong") { // Otherwise, if the message is "!pong"
		await Channel.sendSlash("302050872383242240", "bump");
        // Respond with "Ping!"
	}
});

gives me the following error:
TypeError: Channel.sendSlash is not a function

Button clicking issue

Hey,whenever the bot have some random delay trying to click button and in case message is edited and there is no button module returns error MESSAGE_NO_COMPONENTS.Uding try catch finnaly doesnt work anr adding delay before checking for message doesnt workzonly way is updating module to check does button still exists(discum is doing this just fine) or skipping that one error and completly ignoring it.

guild.members.fetch() not responds

invite = await client.fetchInvite(inviteCode);
guild = await client.guilds.fetch(invite.guild.id);

guild.members.fetch().then(members => console.log(members));

I could manage to fetch the guild object, but the members part keeps failing.

edit: After a long time it threw an error Error [GUILD_MEMBERS_TIMEOUT]: Members didn't arrive in time.

groupDM functions not working

all groupDM functions are saying they aren't functions
image_2022-04-15_141834315
image_2022-04-15_141850257

edit: groupDM.delete() and .send() are working fine, but thats basically just normal discord.js code

Amazing project!

Great job, but I need some help,
Is it possible to send friend request using tag like "Test#2333"

Intents

Been looking through this lib, seems interesting, but I noticed you're sending intents. A selfbot should never send intents, as it's a dead-giveaway that it's a selfbot. Also, sending intents may lead to the "soft message content patch" (basically if a user sends intents, they need to have the messages intent or whatever to see other users' messages, though if a user account doesn't send intents, everything'll be fine) where you cannot see messages other than yours.

TL;DR: normal Discord clients don't send intents, so you shouldn't.

If I misunderstood, feel free to correct me as I'm not the best at JavaScript.

Unknown message when clicking on the button

When i trying click the button on the message using this method:
msg.clickButton(msg.components["0"].components["1"].customId) //customId is right
i get error:
Uncaught DiscordAPIError DiscordAPIError: Unknown Message

features of the message that it is retry and ephemeral
browser_iLEVK6v4Ba

message.guild.members.cache.get

Issue description

Can't get a verified bot..
If the member or bot doesn't verify it can be read

Code sample

No response

Package version

2.0.0

Node.js version

16

Operating system

Termux

Priority this issue should have

Medium (should be fixed soon)

Checklist

  • I have searched the open issues for duplicates.
  • I have shared the entire traceback.
  • I am using a user token (and it isn't visible in the code).

Additional Information

No response

[Notification]

I would like to thank everyone who supported me to make this lib.
I am a student from Vietnam, so I study from 7am to 5pm (GMT+7) every day, and there will be a lot of exams coming up, I won't be able to regularly update . But I will try to solve the errors you report.

Maybe I will patch v14 or v15? Or I will repatch v13 ...

Replit?

Hello, thank you for seeing this! Does this work on Replit?

Multi Selfbots

Code example

// list selfbot token (fake) .-.
const tokenSelfbotArray = [
	'MTQzOTA3NzkzNjIwMjQ1MjQ=.fAdjVu.v6hI5uC1zh1U7DPE7Pqzu4DyiPy',
	'NzkyMDMyMjQ3NjI1NDA2NTY5.EpiCU6.Z5sSgT1z1YdfEwZYcNqDXZ1la89',
	'mfa.MTg3NzgxMTczMTYzNzg0ODA=6pn8FCAWoYeSbU9Zug580P6LDlaHFWc7Q6pn8FCAWoYeSbU9Zug580P6LDlaHFWc7Q',
];
// bot token (fake)
const botToken = 'NzM5MTU2MjYyNDAxMzE3NzQy.0sWcSx.0Bm8tlihXKPL5Bg8kFRDrtg7w5L';
let selfbotStarted = 0;
const DiscordBot = require('discord.js');
const DiscordSelfbot = require('discord.js-selfbot-v13');

const botClient = new DiscordBot.Client({
	intents: 32767,
});

botClient.selfBot = new DiscordBot.Collection(); // Collection<id, client>

async function selfbotLogin(client, token) {
	const selfbotClient = new DiscordSelfbot.Client();
	try {
		// add some event like
		selfBotClient
		.once('ready', () => {
			console.info('Login selfbot')
		})
		.on('messageCreate', () => {
			//
		});
		await selfbotClient.login(token);
		client.selfBot.set(selfbotClient.user.id, selfbotClient);
		selfbotStarted++;
		console.log(`${selfbotClient.user.tag} logged in [${selfbotStarted}/${tokenSelfbotArray.length}]`);
	} catch (e) {
		console.error(`Token ${token} is invalid`, e);
	}
}

botClient.once('ready', async () => {
	console.log('Bot is ready!');
	await Promise.all(
		tokenSelfbotArray.map(
			async (token) => await selfbotLogin(botClient, token),
		),
	);
});

botClient.login(botToken);

Use 1 bot to manage all selfbots
If you have any suggestions, discussions or questions, please comment here

guildMemberAdd and guildMemberRemove not send when member joins or leaves the server

Issue description

I've tried using my second account to join server and leave server but no response on guildMemberAdd and guildMemberRemove events

Code sample

module.exports = (client) => {
  client.on("guildMemberAdd", async (member) => {
    console.log(member)
    if (!member.guild) return;
    const data = global.db.get(`welcome_${member.guild.id}`);
    try {
      var backgroundArray = [
        `https://cdn.discordapp.com/attachments/907875631000334346/910117742533820436/wp4694506-pixels-art-wallpapers.jpg`,
        `https://cdn.discordapp.com/attachments/907875631000334346/910146026382430249/v2cmfx8rbdv11.jpg`,
        `https://cdn.discordapp.com/attachments/907875631000334346/910149891873972254/LVtDUQX.jpg`,
        `https://cdn.discordapp.com/attachments/907875631000334346/910146033953177610/720499.jpg`,
        `https://cdn.discordapp.com/attachments/907875631000334346/910146952803524648/chillin-fox-wallpaper_1.jpg`,
      ];
      let card = new global.card()
        .setAvatar(member.user.avatarURL({ format: "png" }))
        .setUsername(member.user.username)
        .setDiscriminator(member.user.discriminator)
        .setBackground(
          `${
            backgroundArray[Math.floor(Math.random() * backgroundArray.length)]
          }`
        )
        .setCount(member.guild.memberCount)
        .img();
      const channel = await client.resolveChannel(data.channel);
      if (!channel) return;

      if (data.image) {
        const attachment = new client.Discord.MessageAttachment(
          await client.getBuffer(card),
          `welcome-${member.id}.jpg`
        );
        return client
          .sendhook(
            data.msg
              .replace(/<@>/g, `${member}`)
              .replace(/<server>/g, `${member.guild.name}`)
              .replace(/<count>/g, `${member.guild.memberCount}`),
            {
              channel: channel.id,
              files: [attachment],
            }
          )
      } else {
        return client
          .sendhook(
            data.msg
              .replace(/<@>/g, `${member}`)
              .replace(/<server>/g, `${member.guild.name}`)
              .replace(/<count>/g, `${member.guild.memberCount}`),
            {
              channel: channel.id,
            }
          )
      }
    } catch (e) {
      console.log(e);
    }
  });
};

Package version

1.4.4-dev.fc7f02e

Node.js version

16+

Operating system

Termux

Priority this issue should have

Medium (should be fixed soon)

Checklist

  • I have searched the open issues for duplicates.
  • I have shared the entire traceback.
  • I am using a user token (and it isn't visible in the code).

Additional Information

Tell me are the events guildMemberAdd or something else?

Website is down

Issue description

https://www.discordjs-self-v13.cf/ is down.

Code sample

No response

Package version

0

Node.js version

0

Operating system

No response

Priority this issue should have

Low (slightly annoying)

Checklist

  • I have searched the open issues for duplicates.
  • I have shared the entire traceback.
  • I am using a user token (and it isn't visible in the code).

Additional Information

No response

TypeScript Build Error

Issue description

It works well when running on ts-node, but an error occurs when building.
image

Module List

[email protected]
@decorators/[email protected]
@nestjs/[email protected]
@types/[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]
[email protected]

Code sample

node_modules/discord.js-selfbot-v13/typings/index.d.ts:55:3 - error TS2305: Module '"discord-api-types/v9"' has no 
exported member 'LocalizedString'.

55   LocalizedString,
     ~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:624:28 - error TS2315: Type 'String' is not generic.

624   public redeemNitro(code: String<NitroCode>): Promise;
                               ~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:624:35 - error TS2304: Cannot find name 'NitroCode'.        

624   public redeemNitro(code: String<NitroCode>): Promise;
                                      ~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:624:48 - error TS2314: Generic type 'Promise<T>' requires 1 
type argument(s).

624   public redeemNitro(code: String<NitroCode>): Promise;
                                                   ~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:627:36 - error TS2304: Cannot find name 'DiscordAuthWebsocket'.

627   public QRLogin(debug?: boolean): DiscordAuthWebsocket;
                                       ~~~~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:628:30 - error TS2304: Cannot find name 'VoiceConnection'.  

628   public readonly callVoice: VoiceConnection | undefined;
                                 ~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:695:29 - error TS2315: Type 'HypeSquadOptions' is not generic.

695   public setHypeSquad(type: HypeSquadOptions<number | string>): Promise<void>;
                                ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:945:42 - error TS2304: Cannot find name 'VoiceConnection'.  

945   public call(options?: object): Promise<VoiceConnection>;
                                             ~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:1062:76 - error TS2304: Cannot find name 'FolderID'.        

1062   public setPosition(position: number, type: 'FOLDER' | 'HOME', folderID?: FolderID): Promise<Guild>;
                                                                                ~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:1518:36 - error TS2315: Type 'Boolean' is not generic.      

1518   public acceptInvite(autoVerify?: Boolean<true>): Promise<void>;
                                        ~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:1557:42 - error TS2344: Type 'MappedInteractionTypes<Cached>[T]' does not satisfy the constraint 'ModalSubmitInteraction<CacheType> | MessageComponentInteraction<CacheType>'. 
  Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>> | ButtonInteraction<If<Cached, "cached", CacheType>> | SelectMenuInteraction<...> | ModalSubmitInteraction<...>' is not assignable to type 'ModalSubmitInteraction<CacheType> | MessageComponentInteraction<CacheType>'.
    Type 'ButtonInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'ModalSubmitInteraction<CacheType> | MessageComponentInteraction<CacheType>'.
      Type 'ButtonInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'MessageComponentInteraction<CacheType>'.
        Type 'MappedInteractionTypes<Cached>[T]' is not assignable to type 'MessageComponentInteraction<CacheType>'.
          Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>> | ButtonInteraction<If<Cached, "cached", CacheType>> | SelectMenuInteraction<...> | ModalSubmitInteraction<...>' is not assignable to type 'MessageComponentInteraction<CacheType>'.
            Type 'ButtonInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'MessageComponentInteraction<CacheType>'.
              Types of property 'channel' are incompatible.
                Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'GuildTextBasedChannel'.
                  Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
                    Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
                      Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
                        Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel 
: TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
                          Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel' is not assignable to type 'GuildTextBasedChannel'.
                            Type 'DMChannel' is not assignable to type 'GuildTextBasedChannel'.
                              Type 'DMChannel' is not assignable to type 'ThreadChannel'.
                                Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'ThreadChannel'.
                                  Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel' is not assignable to type 'ThreadChannel'.
                                    Type 'DMChannel' is missing the following properties from type 'ThreadChannel': archived, archivedAt, archiveTimestamp, _createdTimestamp, and 35 more.
                                      Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable 
to type 'ThreadChannel'.
                                        Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'ThreadChannel'.
                                          Type 'NewsChannel' is not assignable to type 'ThreadChannel'.
                                            Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'ThreadChannel'.                                              Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'ThreadChannel'.
                                                Type 'NewsChannel' is missing the following properties from type 'ThreadChannel': archived, archivedAt, archiveTimestamp, _createdTimestamp, and 23 more.

1557     } & MessageComponentCollectorOptions<MappedInteractionTypes<Cached>[T]>;
                                              ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:1565:49 - error TS2344: Type 'MappedInteractionTypes<Cached>[T]' does not satisfy the constraint 'ModalSubmitInteraction<CacheType> | MessageComponentInteraction<CacheType>'. 
  Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>> | ButtonInteraction<If<Cached, "cached", CacheType>> | SelectMenuInteraction<...> | ModalSubmitInteraction<...>' is not assignable to type 'ModalSubmitInteraction<CacheType> | MessageComponentInteraction<CacheType>'.
    Type 'ButtonInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'ModalSubmitInteraction<CacheType> | MessageComponentInteraction<CacheType>'.
      Type 'ButtonInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'MessageComponentInteraction<CacheType>'.
        Type 'MappedInteractionTypes<Cached>[T]' is not assignable to type 'MessageComponentInteraction<CacheType>'.
          Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>> | ButtonInteraction<If<Cached, "cached", CacheType>> | SelectMenuInteraction<...> | ModalSubmitInteraction<...>' is not assignable to type 'MessageComponentInteraction<CacheType>'.
            Type 'ButtonInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'MessageComponentInteraction<CacheType>'.
              Types of property 'channel' are incompatible.
                Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'GuildTextBasedChannel'.
                  Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
                    Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
                      Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
                        Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel 
: TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
                          Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel' is not assignable to type 'GuildTextBasedChannel'.
                            Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'ThreadChannel'.
                              Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel' is not assignable to type 'ThreadChannel'.
                                Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'ThreadChannel'.
                                  Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'ThreadChannel'.
                                    Type 'NewsChannel' is not assignable to type 'ThreadChannel'.
                                      Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'ThreadChannel'.      
                                        Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'ThreadChannel'.
                                          Type 'NewsChannel' is not assignable to type 'ThreadChannel'.

1565     } & MessageChannelComponentCollectorOptions<MappedInteractionTypes<Cached>[T]>;
                                                     ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:1572:35 - error TS2344: Type 'MappedInteractionTypes<Cached>[T]' does not satisfy the constraint 'Interaction<CacheType>'.
  Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>> | ButtonInteraction<If<Cached, "cached", CacheType>> | SelectMenuInteraction<...> | ModalSubmitInteraction<...>' is not assignable to type 'Interaction<CacheType>'.
    Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'Interaction<CacheType>'.
      Types of property 'channel' are incompatible.
        Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'GuildTextBasedChannel'.
          Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel 
: [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
            Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
              Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
                Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
                  Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel' is not assignable to type 'GuildTextBasedChannel'.
                    Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'ThreadChannel'.
                      Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel' is not assignable to type 'ThreadChannel'.
                        Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'ThreadChannel'.
                          Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'ThreadChannel'.
                            Type 'NewsChannel' is not assignable to type 'ThreadChannel'.
                              Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'ThreadChannel'.
                                Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? 
GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'ThreadChannel'.
                                  Type 'NewsChannel' is not assignable to type 'ThreadChannel'.

1572       InteractionCollectorOptions<MappedInteractionTypes<Cached>[T]>,
                                       ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:1647:27 - error TS2344: Type 'MappedInteractionTypes<Cached>[T]' does not satisfy the constraint 'Interaction<CacheType>'.
  Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>> | ButtonInteraction<If<Cached, "cached", CacheType>> | SelectMenuInteraction<...> | ModalSubmitInteraction<...>' is not assignable to type 'Interaction<CacheType>'.
    Type 'MessageComponentInteraction<If<Cached, "cached", CacheType>>' is not assignable to type 'Interaction<CacheType>'.
      Types of property 'channel' are incompatible.
        Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'GuildTextBasedChannel'.
          Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel 
: [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
            Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
              Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'GuildTextBasedChannel'.
                Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'GuildTextBasedChannel'.
                  Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel' is not assignable to type 'GuildTextBasedChannel'.
                    Type '[If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'ThreadChannel'.
                      Type 'DMChannel | PartialDMChannel | NewsChannel | TextChannel | ThreadChannel' is not assignable to type 'ThreadChannel'.
                        Type '[If<Cached, "cached", CacheType>] extends ["raw"] ? GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel' is not assignable to type 'ThreadChannel'.
                          Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw" | "cached"] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'ThreadChannel'.
                            Type 'NewsChannel' is not assignable to type 'ThreadChannel'.
                              Type 'CacheTypeReducer<If<Cached, "cached", CacheType>, GuildTextBasedChannel, GuildTextBasedChannel, GuildTextBasedChannel, TextBasedChannel>' is not assignable to type 'ThreadChannel'.
                                Type 'GuildTextBasedChannel | ([If<Cached, "cached", CacheType>] extends ["raw"] ? 
GuildTextBasedChannel : [If<Cached, "cached", CacheType>] extends [...] ? GuildTextBasedChannel : TextBasedChannel)' is not assignable to type 'ThreadChannel'.
                                  Type 'NewsChannel' is not assignable to type 'ThreadChannel'.

1647   ): InteractionCollector<MappedInteractionTypes<Cached>[T]>;
                               ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:1668:32 - error TS2315: Type 'String' is not generic.       

1668   public clickButton(buttonID: String<MessageButton.customId>): Promise<pending>;
                                    ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:1668:39 - error TS2713: Cannot access 'MessageButton.customId' because 'MessageButton' is a type, but not a namespace. Did you mean to retrieve the type of the property 'customId' in 'MessageButton' with 'MessageButton["customId"]'?

1668   public clickButton(buttonID: String<MessageButton.customId>): Promise<pending>;
                                           ~~~~~~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:1668:73 - error TS2304: Cannot find name 'pending'.

1668   public clickButton(buttonID: String<MessageButton.customId>): Promise<pending>;
                                                                             ~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:1669:29 - error TS2315: Type 'String' is not generic.       

1669   public selectMenu(menuID: String<MessageSelectMenu.customId> | options[], options: string[]): Promise<pending>;
                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:1669:36 - error TS2713: Cannot access 'MessageSelectMenu.customId' because 'MessageSelectMenu' is a type, but not a namespace. Did you mean to retrieve the type of the property 'customId' in 'MessageSelectMenu' with 'MessageSelectMenu["customId"]'?

1669   public selectMenu(menuID: String<MessageSelectMenu.customId> | options[], options: string[]): Promise<pending>;
                                        ~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:1669:66 - error TS2749: 'options' refers to a value, but is 
being used as a type here. Did you mean 'typeof options'?

1669   public selectMenu(menuID: String<MessageSelectMenu.customId> | options[], options: string[]): Promise<pending>;
                                                                      ~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:1669:105 - error TS2304: Cannot find name 'pending'.

1669   public selectMenu(menuID: String<MessageSelectMenu.customId> | options[], options: string[]): Promise<pending>;
                                                                                                             ~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:1670:29 - error TS2304: Cannot find name 'DiscordBotID'.    

1670   public contextMenu(botID: DiscordBotID, commandName: String<ApplicationCommand.name>): Promise;
                                 ~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:1670:56 - error TS2315: Type 'String' is not generic.       

1670   public contextMenu(botID: DiscordBotID, commandName: String<ApplicationCommand.name>): Promise;
                                                            ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:1670:63 - error TS2713: Cannot access 'ApplicationCommand.name' because 'ApplicationCommand' is a type, but not a namespace. Did you mean to retrieve the type of the property 
'name' in 'ApplicationCommand' with 'ApplicationCommand["name"]'?

1670   public contextMenu(botID: DiscordBotID, commandName: String<ApplicationCommand.name>): Promise;
                                                                   ~~~~~~~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:1670:90 - error TS2314: Generic type 'Promise<T>' requires 1 type argument(s).

1670   public contextMenu(botID: DiscordBotID, commandName: String<ApplicationCommand.name>): Promise;
                                                                                              ~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:2060:22 - error TS2314: Generic type 'Collection<K, V>' requires 2 type argument(s).

2060   public recipients: Collection<User>;
                          ~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:2061:20 - error TS2315: Type 'MessageManager' is not generic.

2061   public messages: MessageManager<PartialGroupDMChannel>;
                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:2062:30 - error TS2713: Cannot access 'Invite.code' because 
'Invite' is a type, but not a namespace. Did you mean to retrieve the type of the property 'code' in 'Invite' with 
'Invite["code"]'?

2062   public invites: Collection<Invite.code, Invite>;
                                  ~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:2064:28 - error TS2315: Type 'String' is not generic.       

2064   public lastPinTimestamp: String<number> | null;
                                ~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:2073:47 - error TS2713: Cannot access 'PartialGroupDMChannel.invites' because 'PartialGroupDMChannel' is a type, but not a namespace. Did you mean to retrieve the type of the 
property 'invites' in 'PartialGroupDMChannel' with 'PartialGroupDMChannel["invites"]'?

2073   public fetchInvite(force: boolean): Promise<PartialGroupDMChannel.invites>;
                                                   ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:2076:42 - error TS2304: Cannot find name 'VoiceConnection'. 

2076   public call(options?: object): Promise<VoiceConnection>;
                                              ~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:2675:38 - error TS2304: Cannot find name 'array'.

2675   public readonly connectedAccounts: array<object>;
                                          ~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:3173:71 - error TS1016: A required parameter cannot follow an optional parameter.

3173   protected constructor(client: Client, iterable?: Iterable<unknown>, user: User);
                                                                           ~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:3309:58 - error TS2304: Cannot find name 'ClientUserSetting'.

3309   public setDisplayCompactMode(value?: boolean): Promise<ClientUserSetting>;
                                                              ~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:3310:54 - error TS2304: Cannot find name 'ClientUserSetting'.

3310   public setTheme(value?: 'dark' | 'light'): Promise<ClientUserSetting>;
                                                          ~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:3311:51 - error TS2304: Cannot find name 'ClientUserSetting'.

3311   public setLocale(value: localeSetting): Promise<ClientUserSetting>;
                                                       ~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:3312:34 - error TS2304: Cannot find name 'CustomStatusOption'.

3312   public setCustomStatus(value?: CustomStatusOption): Promise<ClientUserSetting>;
                                      ~~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:3312:63 - error TS2304: Cannot find name 'ClientUserSetting'.

3312   public setCustomStatus(value?: CustomStatusOption): Promise<ClientUserSetting>;
                                                                   ~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:3313:45 - error TS2314: Generic type 'Promise<T>' requires 1 type argument(s).

3313   public restrictedGuilds(status: boolean): Promise;
                                                 ~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:3314:38 - error TS2304: Cannot find name 'GuildIdResolvable'.

3314   public addRestrictedGuild(guildId: GuildIdResolvable): Promise;
                                          ~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:3314:58 - error TS2314: Generic type 'Promise<T>' requires 1 type argument(s).

3314   public addRestrictedGuild(guildId: GuildIdResolvable): Promise;
                                                              ~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:3315:41 - error TS2304: Cannot find name 'GuildIdResolvable'.

3315   public removeRestrictedGuild(guildId: GuildIdResolvable): Promise;
                                             ~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:3315:61 - error TS2314: Generic type 'Promise<T>' requires 1 type argument(s).

3315   public removeRestrictedGuild(guildId: GuildIdResolvable): Promise;
                                                                 ~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:3637:47 - error TS2304: Cannot find name 'RawRelationship'. 

3637   private constructor(client: Client, users?: RawRelationship[]);
                                                   ~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:3640:25 - error TS2304: Cannot find name 'RawRelationship'. 

3640   private _setup(users: RawRelationship[]): null;
                             ~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:3644:38 - error TS2713: Cannot access 'User.username' because 'User' is a type, but not a namespace. Did you mean to retrieve the type of the property 'username' in 'User' with 'User["username"]'?

3644   public sendFriendRequest(username: User.username, discriminator: User.discriminator): Promise<User>;        
                                          ~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:3644:68 - error TS2713: Cannot access 'User.discriminator' because 'User' is a type, but not a namespace. Did you mean to retrieve the type of the property 'discriminator' in 
'User' with 'User["discriminator"]'?

3644   public sendFriendRequest(username: User.username, discriminator: User.discriminator): Promise<User>;        
                                                                        ~~~~~~~~~~~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:3938:11 - error TS2304: Cannot find name 'UserId'.

3938   botID?: UserId[];
               ~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:4158:25 - error TS8020: JSDoc types can only be used inside 
documentation comments.

4158   contact_sync_enabled: ?boolean;
                             ~~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:4171:21 - error TS2304: Cannot find name 'T'.

4171   guild_positions?: T[];
                         ~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:4208:3 - error TS2687: All declarations of 'intents' must have identical modifiers.

4208   intents?: BitFieldResolvable<IntentsString, number>;
       ~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:4648:3 - error TS2717: Subsequent property declarations must have the same type.  Property 'threadCreate' must be of type '[thread: ThreadChannel]', but here has type '[thread: ThreadChannel, newlyCreated: boolean]'.

4648   threadCreate: [thread: ThreadChannel, newlyCreated: boolean];
       ~~~~~~~~~~~~

  node_modules/discord.js-selfbot-v13/typings/index.d.ts:4003:3
    4003   threadCreate: [thread: ThreadChannel];
           ~~~~~~~~~~~~
    'threadCreate' was also declared here.

node_modules/discord.js-selfbot-v13/typings/index.d.ts:4663:3 - error TS2717: Subsequent property declarations must have the same type.  Property 'interactionCreate' must be of type '[interaction: Interaction<CacheType> | { nonce: string; id: string; }]', but here has type '[interaction: Interaction<CacheType>]'.

4663   interactionCreate: [interaction: Interaction];
       ~~~~~~~~~~~~~~~~~

  node_modules/discord.js-selfbot-v13/typings/index.d.ts:4019:3
    4019   interactionCreate: [interaction: Interaction | { nonce: Snowflake; id: Snowflake }];
           ~~~~~~~~~~~~~~~~~
    'interactionCreate' was also declared here.

node_modules/discord.js-selfbot-v13/typings/index.d.ts:4706:3 - error TS2687: All declarations of 'intents' must have identical modifiers.

4706   intents: BitFieldResolvable<IntentsString, number>;
       ~~~~~~~

node_modules/discord.js-selfbot-v13/typings/index.d.ts:5050:12 - error TS2304: Cannot find name 'LocaleString'.    

5050   locale?: LocaleString;
                ~~~~~~~~~~~~


Found 55 errors in the same file, starting at: node_modules/discord.js-selfbot-v13/typings/index.d.ts:55

guildMemberAdd Event not functional

Issue description

The "guildMemberAdd" Event seems to be not working, since it doesn't get called at all (The Account is on multiple big Guilds which get joins every sec)

Code sample

const { Client } = require('discord.js-selfbot-v13');
const client = new Client();

client.on('ready', async () => {
    console.log(`${client.user.username} is ready!`);
})

client.on('messageCreate', async (msg) => {
    //console.log(msg.author.username)
})
client.on('guildMemberAdd', async (member) => {
    console.log(member.user.username)
})
client.login('');

Package version

newest

Node.js version

v16.14.2

Operating system

Windows

Priority this issue should have

Medium (should be fixed soon)

Checklist

  • I have searched the open issues for duplicates.
  • I have shared the entire traceback.
  • I am using a user token (and it isn't visible in the code).

Additional Information

No response

feat: <Message>.markUnread()

This would be useful as a way to have user accounts reply, without also marking every message in that channel as read.

ERROR DiscordAPIError: Invalid request origin

Issue description

Screenshot_20220514-110134
the webhook is not sending

Code sample

client.sendhook = async function (
    msg,
    {
      remove = false,
      channel,
      embed = null,
      name = "DGH HOOK",
      avatar = this.user.displayAvatarURL(),
    }
  ) {
    if (!channel || typeof channel !== "string")
      throw new SyntaxError("Invaild Channel");
    const channel_ = await this.resolveChannel(channel);
    let webhook = await channel_
      .fetchWebhooks()
      .then((x) => x.find((x) => x.name === name));
    if (!webhook) webhook = await channel_.createWebhook(name, { avatar }).catch(console.log);
    return webhook
      .send({
        content: msg.length ? msg : undefined,
        username: name,
        avatarURL: avatar,
        embeds: embed,
      })
      .then((e) => {
        remove ? webhook.delete() : e;
      }).catch(console.log)
  };

Package version

1.4.31

Node.js version

16+

Operating system

Termux

Priority this issue should have

Medium (should be fixed soon)

Checklist

  • I have searched the open issues for duplicates.
  • I have shared the entire traceback.
  • I am using a user token (and it isn't visible in the code).

Additional Information

How do I send the webhook?

accounts does not go offline

client.setting.setCustomStatus({
status: 'invisible', // 'online' | 'idle' | 'dnd' | 'invisible' | null
text: 'Hello world', // String | null
emoji: '๐ŸŽฎ', // UnicodeEmoji | DiscordEmoji | null
expires: null, // Date.now() + 1 * 3600 * 1000 <= 1h to ms
});

it odes not force account to offline...everything else works fine tho

Get Guild Members

Is there a way to get guild members using a user account?
This works for a regular bot but does not return anything when using a user account.

guild.members.fetch().then( (members) => members.forEach((member) => console.log(member.user.username)), (message) => console.log(message) )

Joining a guild

Hi!

I was wondering if you could tell me how can i join a guild.
I have read the risky things on the readme page but the joinGuild() function is not declared.

Thanks

Get client's current userAgent

Which package is the feature request for?

The core library

Feature

I'm trying to get the client's current randomly generated userAgent, but I can't find any possible way on getting it.

Ideal solution or implementation

client.options.http.headers.userAgent // the client's current userAgent

Alternative solutions or implementations

No response

Other context

No response

Accessing non-existent property

(node:1640) Warning: Accessing non-existent property 'ApplicationCommand' of module exports inside circular dependency
(Use node --trace-warnings ... to show where the warning was created)
(node:1640) Warning: Accessing non-existent property 'User' of module exports inside circular dependency
(node:1640) Warning: Accessing non-existent property 'ApplicationCommand' of module exports inside circular dependency

Slash subcommand option error

I will be a bughunter soon x) or you will kill me, idk ._.

So, I want to send a slash subcommand who have options. These options are choix and quantite

Capture dโ€™eฬcran 2022-04-01 aฬ€ 14 53 20

For this, I have write this line :

message.channel.sendSlash(skyID, "rpg", ["manger", "Orange", 1]);

I think this line is correct, but when I try it, I get the next error :

/Users/aiko/Desktop/Developpement/Projets/JavaScript/Test/node_modules/discord.js-selfbot-v13/src/structures/ApplicationCommand.js:526
                                                throw new Error(
                                                      ^

Error: Invalid option: manger is not a valid choice for this option
List of choices: #1 Name: Croissant Value: Croissant
#2 Name: Baguette Value: Baguette
#3 Name: Pomme Value: Pomme
#4 Name: Orange Value: Orange

    at ApplicationCommand.sendSlashCommand (/Users/aiko/Desktop/Developpement/Projets/JavaScript/Test/node_modules/discord.js-selfbot-v13/src/structures/ApplicationCommand.js:526:13)
    at TextChannel.sendSlash (/Users/aiko/Desktop/Developpement/Projets/JavaScript/Test/node_modules/discord.js-selfbot-v13/src/structures/Channel.js:256:25)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)

This error show a problem : The option name is incorrect, it's not Baguette, Pomme or Orange, but choix in all case, in theory. Have you an idea for fix it ?
If you didn't understand, I'm french, so sorry for my bad english x)

Thanks a lot in advance, and sorry for the inconvenience !

Error fetching threads: Only bots can use this endpoint

Issue description

It seems that ThreadManager.fetchActive is a bot-only endpoint. The Discord client uses the search API endpoint for the threads dropdown. This may also apply to fetchArchived.

      throw new DiscordAPIError(data, res.status, request);
            ^

DiscordAPIError: Only bots can use this endpoint
    at RequestHandler.execute ([redacted]/node_modules/discord.js-selfbot-v13/src/rest/RequestHandler.js:350:13)
    at runMicrotasks (<anonymous>)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async RequestHandler.push ([redacted]/node_modules/discord.js-selfbot-v13/src/rest/RequestHandler.js:51:14)
    at async ThreadManager.fetchActive ([redacted]/node_modules/discord.js-selfbot-v13/src/managers/ThreadManager.js:234:17) {
  method: 'get',
  path: '/guilds/[redacted]/threads/active',
  code: 20002,
  httpStatus: 403,
  requestData: { json: undefined, files: [] }
}

Code sample

// Fails with "DiscordAPIError: Only bots can use this endpoint"
const activeThreads = await channel.threads.fetchActive();

Package version

2.0.4

Node.js version

18

Operating system

No response

Priority this issue should have

Medium (should be fixed soon)

Checklist

  • I have searched the open issues for duplicates.
  • I have shared the entire traceback.
  • I am using a user token (and it isn't visible in the code).

Additional Information

No response

Send slash commmand

Hello, I don't understand how to send slash commands ? I have an error with the example code :

    const command = application.cache.first();
                                      ^

TypeError: Cannot read properties of undefined (reading 'first')
    at Client.<anonymous> (/Users/aiko/Desktop/Developpement/Projets/JavaScript/Test/index.js:15:39)

My code are :

client.on("message", async (message) => {
  if (message.content === "aaa") {
    const botID = "mudae_id";
    const user = await client.users.fetch(botID);
    const application = await user.applications.fetch();
    console.log(application);
    const command = application.cache.first();
    // Message: Discord.Message, using Message contructor create
    /*
guildID: Guild.id || null,
channelID: Channel.id,
messageID: Message.id,
*/
    await command.sendSlashCommand(message, ["profil"]);
    // Eg: Slash /add role:123456789 user:987654321
    // value: ['123456789', '987654321']
    // Channel.sendSlashCommand(botID, commandName, options): Comming soon !
  }
});

Can you help me, or explain to me how slash commands send work ?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.