【发布时间】:2020-06-26 14:52:48
【问题描述】:
所以当我尝试运行它时,它会说 (节点:30096)UnhandledPromiseRejectionWarning:错误 [TOKEN_INVALID]:提供了无效令牌。
这是代码
const bot = new Discord.Client();
const token = 'the token but i won't show';
bot.on('ready', () =>{
console.log('This bot is online!');
})
bot.login('token');```
【问题讨论】:
标签: javascript visual-studio-code