Allow discord.js to login as User
npm install discord.js.userbot
npm i discord.js.userbot
any | | client instance of new Discord.Client |
string | "../node_modules" | relative path to your node_modules | default ../node_modules |
js
const Discord = require('discord.js');
const allowUserBotting = require('discord.js.userbot');
const client = new Discord.Client();
// Remember to set correct node_modules_path if it's not working.
allowUserBotting(client);
//or
allowUserBotting(client,'my_node_modules_folder_path');
client.login('TOKEN');
``