Set tag content limit, fixed new pagination showing buttons on single-page messages
This commit is contained in:
parent
9f36a79a2b
commit
2fbd2e3016
2 changed files with 2 additions and 1 deletions
|
@ -70,7 +70,7 @@ module.exports = async (client, message, pages, timeout = 120000) => {
|
|||
"Content-Type": "application/json"
|
||||
}
|
||||
};
|
||||
let currentPage = await client.createMessage(message.channel.id, Object.assign(pages[page], options, components));
|
||||
let currentPage = await client.createMessage(message.channel.id, Object.assign(pages[page], options, pages.length > 1 ? components : {}));
|
||||
if (pages.length > 1) {
|
||||
const interactionCollector = new InteractionCollector(client, currentPage, { time: timeout });
|
||||
interactionCollector.on("interaction", async (msg, interaction, id, token, member) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue