This commit is contained in:
Dragon Fire
2021-06-09 22:40:43 -04:00
parent 85c953003e
commit 7179f98a6f
+2 -2
View File
@@ -71,7 +71,7 @@ module.exports = class KinoCommand extends Command {
Press the "Next" button to go to the next page, and "Prev" to go back. Press the "Next" button to go to the next page, and "Prev" to go back.
Press "End" at any time to stop reading. Press "End" at any time to stop reading.
`, { components: [row] }); `, { components: [row] });
const initialInteractions = await initialMsg.awaitMessageComponentInteractions(filter, { const initialInteractions = await initialMsg.awaitMessageComponentInteractions(res => res.user.id === msg.author.id, {
max: 1, max: 1,
time: 15000 time: 15000
}); });
@@ -94,7 +94,7 @@ module.exports = class KinoCommand extends Command {
${escapeMarkdown(line.trim())} ${escapeMarkdown(line.trim())}
`, { components: [row] }); `, { components: [row] });
const interactions = await initialMsg.awaitMessageComponentInteractions(filter, { const interactions = await initialMsg.awaitMessageComponentInteractions(res => res.user.id === msg.author.id, {
max: 1, max: 1,
time: 15000 time: 15000
}); });