Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to use a Regular Account (updated w/ master) #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ignshifts
Copy link
Owner

@ignshifts ignshifts commented Apr 10, 2023

If you are not using a bot, your only other option is using a regular account (selfbot).

discord.js only allows bot tokens to be connected to the gateway so you are forced to use another package, discord.js-selfbot-v13.

How to install

npm install discord.js-selfbot-v13@latest
npm uninstall discord.js

Changes

You will have to change a few things how the classes are destructured and required, replace discord.js with discord.js-selfbot-v13.

Code Replacement

Replace the first 2 lines, with this:

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

Look at the Files changed if you need a visual representation.

Repository owner deleted a comment from bigoptiver Mar 2, 2024
@ignshifts ignshifts closed this Mar 2, 2024
Repository owner locked and limited conversation to collaborators Mar 2, 2024
Repository owner unlocked this conversation Jun 15, 2024
Repository owner locked as off-topic and limited conversation to collaborators Jun 15, 2024
@ignshifts ignshifts added the enhancement New feature or request label Jun 15, 2024
@ignshifts ignshifts reopened this Jun 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant