Skip to content

Discord.js error - TOKEN #1806

@KappuCitti

Description

@KappuCitti

Every time I have to retry regenerate token and I put it in the code the error is the same.

Error:
Error [TOKEN_INVALID]: An invalid token was provided.
ErrorBot

Script:

const Discord = require('discord.js');

const client = new Discord.Client();

client.on('ready', () => {
    console.log(`${client.user.tag} On-Line!`);
});
client.login("TOKEN");

Information:
Discord.js version: 12.2.0
Node.js version: 12.16.3
Operative System: Windows 10

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions