0

我正在尝试使用 WokCommands、Discord.JS 和 ytdl-core 创建一个音乐机器人。

有时当我尝试运行命令时,我得到的只是“无效的交互应用程序命令”。当我在机器人登录后等待 10-15 分钟时,它开始工作。对这些命令进行编程的第一天立即起作用,但昨天他​​们开始出现这种奇怪的行为。它不是一个单一的命令,而是全部。

这是播放命令文件:

//Dependencies Import
const {
    MessageEmbed
} = require("discord.js");
const voice = require("../voice.js");

module.exports = {
    slash: "both",
    testOnly: false,
    description: "Play audio from youtube URL - Velody",
    minArgs: 1,
    expectedArgs: "<song>",
    callback: async ({
        interaction,
        client,
        args
    }) => {
        let embed = new MessageEmbed();
        embed.setAuthor('Velody', 'https://raw.githubusercontent.com/linusromland/Velody/master/Velody-logos.jpeg', 'https://github.com/linusromland/Velody')
        embed = voice.play(embed, client, interaction, args[0]);
        return embed;
    },
};

我正在使用 Discord.JS 12 和 Wokcommands 1.3.6

4

0 回答 0