Fix PostgreSQL broadcast column upgrade, make some changes to followup message handling
This commit is contained in:
parent
a67c2b9884
commit
fa3d7b3772
3 changed files with 22 additions and 8 deletions
|
@ -65,8 +65,8 @@ export default async (client, info, pages, timeout = 120000) => {
|
|||
if (info.type === "classic") {
|
||||
currentPage = await client.rest.channels.createMessage(info.message.channelID, Object.assign(pages[page], options, pages.length > 1 ? components : {}));
|
||||
} else {
|
||||
await info.interaction[info.interaction.acknowledged ? "editOriginal" : "createMessage"](Object.assign(pages[page], pages.length > 1 ? components : {}));
|
||||
currentPage = await info.interaction.getOriginal();
|
||||
currentPage = await info.interaction[info.interaction.acknowledged ? "editOriginal" : "createMessage"](Object.assign(pages[page], pages.length > 1 ? components : {}));
|
||||
if (!currentPage) currentPage = await info.interaction.getOriginal();
|
||||
}
|
||||
|
||||
if (pages.length > 1) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue