最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Unknown Interaction on All interactions - Discord.js v13 - Stack Overflow

programmeradmin1浏览0评论

All of a sudden I keep on getting this error on most interactions and my bot just sends `"Bot is thinking...".

[UnhandledRejection] DiscordAPIError: Unknown interaction
    at RequestHandler.execute (/Users/main/Desktop/Discordbots/gamerscavern/node_modules/discord.js/src/rest/RequestHandler.js:349:13)
    at processTicksAndRejections (node:internal/process/task_queues:96:5)
    at async RequestHandler.push (/Users/main/Desktop/Discordbots/gamerscavern/node_modules/discord.js/src/rest/RequestHandler.js:50:14)
    at async SelectMenuInteraction.reply (/Users/main/Desktop/Discordbots/gamerscavern/node_modules/discord.js/src/structures/interfaces/InteractionResponses.js:98:5)

Example this help mand. Which returns Unknown interaction on the interaction.update() part in the collector AND in the filter when another user interacts with it. I have no clue why this is happening. And as mentioned, it worked fine just a few hours ago.

Here is my code:

Help mand:

const {
    Client,
    Message,
    MessageEmbed,
    MessageActionRow,
    MessageSelectMenu,
} = require('discord.js');

module.exports = {
    name: 'help',
    description: 'List all of my mands or info about a specific mand.',
    aliases: ['mands'],
    usage: '[mand name]',
    category: 'info',
    cooldown: 3,
    /**
     *
     * @param {Client} client
     * @param {Message} message
     * @param {String[]} args
     */
    execute: async (client, message, args, prefix) => {
        if (message.author.bot) return;
        const data = [];
        const { mands } = message.client;

        const emojis = {
            config: '⚙️',
            info: 'ℹ️',
            moderation: '
发布评论

评论列表(0)

  1. 暂无评论