如何宣布使用了什么命令// Discord.js

时间:2018-08-07 05:48:26

标签: javascript bots discord

所以,我的机器人有语音命令,用法是 $ zing ,该机器人会跟随并自动发送 ${message.author.username} has made me play a voice command.

我想将play a voice command.更改为所使用的特定命令。虽然我不知道它的代码。

下面的代码

我尝试了$ {file} / $ {command},但未定义它们。因此,我将使用/来表示所使用的特定命令。

exports.exec = async (Cuckbot, message) => {
    message.channel.send({
      embed: {
        color: 14682320,
        description: ` **${message.author.username}** has made me play ${file}`,
      }

0 个答案:

没有答案