const { Client, Intents } = require('discord.js');
const { token } = require('./config.json');
const client = new Client(
{ intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MESSAGES,
Intents.FLAGS.GUILD_MESSAGE_REACTIONS
]
});
client.once('ready', () => {
console.log('bot say kys!');
});
client.on('messageCreate',message =>
{
/* the error i think is here but im not realy sure the error said (TypeError: message.replay
enter code here`is not a function ) */
if(message.content === 'hi')
{
message.replay('hello')
}
});
client.login(token);我要改写他的下一句,因为网站上说我想制造一个不和谐的机器人,这是我第一次
发布于 2022-06-05 18:10:46
这不是replay,而是reply
message.reply("content");https://stackoverflow.com/questions/72508213
复制相似问题