Please describe the problem you are having in as much detail as possible:
When i use Client.login(TOKEN) on version 12.0.2 it says its invalid token, but on version 11.5.1 its totaly valid and working
Include a reproducible code sample here, if possible:
const api = require("discord.js");
const client = new api.Client();
client.on("ready", () => {
console.log(`logged in as: ${client.user.username}#${client.user.discriminator}`);
});
client.login(USER_ACCOUNT_TOKEN);
Further details:
This is expected, v12 completely drops support for userbots, as they are against the TOS. You should be using bot tokens, not user tokens.
Then im sticking to v11 lol
plus i know they are aginst the tos but im not using it to "automate" as it says in the tos, im using it with commands that i wrote so i can use (example- math command). The bot can be used by my and only me so i dont see why it would be a problem but whatever
It is against the TOS, you can't negotiate.
in the tos it says its not allowed to be used for AUTOMATION im not automating anything it doesnt say its not allowed at all
Thus im not making a self-bot but rather a tool for myself using their api
Tell this to discord and show us their answer lmao
This counts as automation.
Most helpful comment
This is expected, v12 completely drops support for userbots, as they are against the TOS. You should be using bot tokens, not user tokens.