私のpollordコマンドを使用しているdiscord.js botに問題がありますが、一定の時間が経過した後の反応の数を確認したいユーザは(yを好む人よりもxを好む人が多い)と言って、尋ねる。Discord.js結果が何らかの作業を必要とするpollコマンド
discord.js:
const Discord = require('discord.js')
exports.run = async (bot, message, args) => {
if (!args) return message.reply("You must have something to vote for!")
if (!message.content.includes("?")) return message.reply("Include a ? in your vote!")
message.channel.send(`:ballot_box: ${message.author.username} started a vote! React to my next message to vote on it. :ballot_box: `);
const pollTopic = await message.channel.send(`${args}`);
pollTopic.react(`✅`);
pollTopic.react(`⛔`);
};
どのような問題が発生していますか?何がうまくいかなかったのですか?私たちがあなたを助けてくれるよう助けてください:) –
そのxDについては申し訳ありませんが、具体的な回答はありません。基本的に質問しています。「thanはthanよりも反応がもっと多い – ThatMajesticGuy