Buttons in lie-swatter

This commit is contained in:
Dragon Fire
2024-04-13 01:02:43 -04:00
parent c06cc24a4a
commit 8404a974fb
2 changed files with 19 additions and 26 deletions
+1 -2
View File
@@ -53,10 +53,9 @@ module.exports = class TrueOrFalseCommand extends Command {
**You have 15 seconds to answer this question.**
${decodeURIComponent(body.results[0].question)}
`, { components: [row] });
const filter = res => res.user.id === msg.author.id;
try {
const ans = await questionMsg.awaitMessageComponent({
filter,
filter: res => res.user.id === msg.author.id,
max: 1,
time: 15000
});