botkalista / discord.js.userbot

Allow discord.js to login as User
MIT License
25 stars 6 forks source link

TypeError: Cannot read properties of null (reading 'destroy') #13

Open vbondarets opened 1 year ago

vbondarets commented 1 year ago

I got this error while trying to run app.js file

const Discord = require('discord.js'); const allowUserBotting = require('discord.js.userbot'); const client = new Discord.Client({ intents: [ Discord.GatewayIntentBits.Guilds, Discord.GatewayIntentBits.GuildMessages ]}) // Remember to set correct node_modules_path if it's not working. allowUserBotting(client); client.login('my_token');

client.on('ready', () => { console.log(Logged in ${clien.user.tag}) })

vbondarets commented 1 year ago

And I also tried to add node.modules path but it didn't help