From 2243555e23cccd15d2852293c2740e52b889b1cf Mon Sep 17 00:00:00 2001 From: WubzyGD Date: Thu, 16 Dec 2021 18:50:17 -0700 Subject: [PATCH] pagination bug... i think? --- util/ts/pagination.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/ts/pagination.ts b/util/ts/pagination.ts index d82a866..5833c0e 100644 --- a/util/ts/pagination.ts +++ b/util/ts/pagination.ts @@ -126,7 +126,7 @@ export class Pagination { let fe = this.message.embeds[0]; fe.setDescription(`${fe.description}\n\n*This menu has ended, start a new one to interact with it!*`); - fe.setFooter(`${fe.footer.text} | Menu ended`, this.client.user.avatarURL()); + fe.setFooter(`${fe.footer && fe.footer.text && fe.footer.text.length ? ` | ${fe.footer.text}` : ''}Menu ended`, this.client.user.avatarURL()); await this.message.edit({embeds: [fe]}); clearInterval(this.timeoutInterval);