因此,我正在开发一个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.createdTimestampnode:event
我正在尝试为我的机器人创建一个命令,让它ping像Hypixel这样的“我的世界”服务器,但每当我运行机器人并输入命令时,我都会得到这样的结果: ping('mc.hypixel.net', 25565, (error, response) =>{
TypeError: ping is not a function 这是我的代码: client.on('message',message.content.slice(prefix.l