因此,我正在开发一个discord.js,它使用discord.js,一个用于discord.js的node.js包装器。基本上,代码是这样工作的: A ping pong bot, whenever you send "ping", it replies "pong".const Discord = require('
我开始将我的机器人重新工作到V14,当我想创建Ping命令时,我遇到了一个小问题。')
.setDescription('Replies with the Bots Ping!')The current API Ping is: ${client.ws.ping}ms and the Bot Ping is: ${message.createdTimestamp - interaction.createdTimestampn
我试图创建命令,但是它们只在某个单词被写入时触发.例如!price ..。即使在命令!price random text bla bla bla之后编写了任何文本,我也希望它触发,因为我试图为每个命令使用不同的文件,以使主.js文件中没有所有内容。// Require the necessary discord.js classesconst