Discord bot how to login with personal account token with Node.js?

They have removed support for user token (self bot) from discord.js in v12 and looking at the commit they have removed quite a lot from the package.

After digging a bit in the discord.js package found a way where you can overwrite this functionality by doing.

const client = new Discord.Client({_tokenType: ''}); 

This will remove the prefix bot when making a call to discord gateway and client will connect successfully.

This is purely for educational purpose and should be used responsibly.

P.s They are going to modify some other stuff too in the apis to make it impossible.