Fork of discord.js-userbot, fixed module error
npm install discord.js-userbot-fix#### Allow discord.js to login as User
npm i discord.js.userbot-fix| Param | Type | Default | Description |
| --- | --- | --- | --- |
| client | Client | undefined | client instance of new Discord.Client |
``js``
const Discord = require('discord.js');
const allowUserBotting = require('discord.js.userbot-fix');
const client = new Discord.Client();
// Remember to set correct node_modules_path if it's not working.
allowUserBotting(client);
client.login('TOKEN');
You can read more in the function documentation.