【发布时间】:2021-10-28 12:11:32
【问题描述】:
我正在尝试为我的服务器编写一个简单的机器人,但发生了这个错误:
ReferenceError: Intents 未定义
我的代码很简单:
const Discord = require('discord.js');
const bot = new Discord.Client();
bot.login('TOKENcode');
bot.on("message", (message) =>{
console.log('hello world!');
})
我该怎么办?我只想在 Discord 上写一条消息,让我的 Visual Studio Code 提示说“hello world!”
【问题讨论】:
标签: javascript json android-intent discord bots