添加更多页面到收藏夹| Discord.js

时间:2018-10-09 05:52:44

标签: javascript bots discord

//----------------------------------On collector collect------------------------------
collector.on('collect', async(r) => {
    clearTimeout(timeout); //Reset timeout

    if (r.emoji.name === "◀") { //index commands page

        await interactiveMessage.edit({ embed: mainCommands });

    } else if (r.emoji.name === "▶") { //help commands page

        await interactiveMessage.edit({ embed: helpCommands });

    } else if (r.emoji.name === "▶") { //fun commands page

        await interactiveMessage.edit({ embed: funCommands });

    } else if (r.emoji.name === '') { //nsfw commands wow

        await interactiveMessage.edit({ embed: nsfwCommands });

确切地说,我有好几页(9),但是在我打到第一个else ifhelp commands之后,如果我再次尝试执行该反应,它将不会继续下一页fun commands

我如何继续下去?

0 个答案:

没有答案