我通过在聊天中说“911”制作了一个机器人帮助命令列表。它为您提供了一个嵌入命令和 3 个反应按钮“前进”“后退”“删除”。它按预期工作,但我不知道为什么我只能使用反应按钮一次。例如:我在第 1 页,我按下前进到 2,然后后退到 1,但如果我想再次前进到 2,它不再响应。DISCORD 聊天中的图片: https: //i.stack.imgur.com/7dvzT.jpg { const embed = new Discord.MessageEmbed() .setDescription("*:vertical_traffic_light: :police_car: 911 / 112 / help for emergencies :police_car: :vertical_traffic_light:*") .setAuthor("**Necrophilia Police**") .setThumbnail('https://cdn.discordapp.com/avatars/766629801078685716/7daaa149ec7a8096357eda7805a56ecc.png?size=128') .setColor(0xC41E35) .setTitle("Commands for both DM and Server Messages") .addField("***:white_check_mark: For SERVER Messages:***", ":moneybag: `sunt horny ==> You are sent to horny jail`") .addField(":moneybag: `esti horny +tag ==> He/She is sent to horny jail`", ":moneybag: `nu sunt horny ==> Congrats from Garcea`") .addField(":moneybag: `nu este horny +tag ==> He/She congrats from Garcea`", ":moneybag: `what's your wisdom ==> Garcea's Wisdom`") .addField(":moneybag: `kekekek.... ==> Garcea laughs with you`", ":moneybag: `testos ==> testosu' ninja`") .addField(":moneybag: `fight/challenge/duel +anything ==> Prepare yo ass`", ":moneybag: `peepo the pet ==> Sending best meme`") .addField(":moneybag: `drug/drog/droage +anything ==> Garcea comes for you`", ":moneybag: `quiz ==> A quiz made by Garcea`") .addField(":moneybag: `today/time/day/date ==> Date and Time`", ":moneybag: `monke ==> mmmm M O N K E`") .addField(":moneybag: `-weather +location ==> Weather`", "`Example: -weather Iasi`") .addField(":moneybag: `-hangman ==> hangman minigame`", ":moneybag: `-random ==> random cursed image`")
1 回答
斯蒂芬大帝
TA贡献1827条经验 获得超8个赞
m.createReactionCollector(filter, { max: 1, time: 5 * 60 * 1000 })
您在此处指定的最大值是要收集的最大反应量。您可以将最大值增加到一个较高的值,或者如果您不想限制最大反应量,则可以删除该选项。
您可能还想添加一个collecter2.on('end')并删除所有反应并编辑嵌入以反映它已停止收集反应。
添加回答
举报
0/150
提交
取消