From 20826f9b9dff2dd9d2f7b29e98752d9f6e1fd43e Mon Sep 17 00:00:00 2001 From: ExampleWasTaken <58574351+ExampleWasTaken@users.noreply.github.com> Date: Wed, 29 May 2024 15:46:21 +0200 Subject: [PATCH] Apply suggestions from code review mk2 Co-authored-by: BenW --- src/lib/genericEmbedPagination.ts | 2 +- src/lib/infractionEmbedPagination.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/lib/genericEmbedPagination.ts b/src/lib/genericEmbedPagination.ts index 0b2236f1..e1024331 100644 --- a/src/lib/genericEmbedPagination.ts +++ b/src/lib/genericEmbedPagination.ts @@ -51,7 +51,7 @@ export async function createPaginatedEmbedHandler(initialInteraction: CommandInt function handleEmbedExpire() { const embed = embeds[currentPage]; - initialInteraction.editReply({ embeds: [embed.setFooter({ text: `${embed.data.footer ? `${embed.data.footer.text} - ` : ''} This embed has expired.` })], components: [] }); + initialInteraction.editReply({ embeds: [embed.setFooter({ text: `${embed.data.footer ? `${embed.data.footer.text} - ` : ''}This embed has expired.` })], components: [] }); } function setButtonDisabledStates() { diff --git a/src/lib/infractionEmbedPagination.ts b/src/lib/infractionEmbedPagination.ts index 71978ec2..a5150526 100644 --- a/src/lib/infractionEmbedPagination.ts +++ b/src/lib/infractionEmbedPagination.ts @@ -85,6 +85,6 @@ export async function createPaginatedInfractionEmbedHandler(initialInteraction: function handleEmbedExpire() { const embed = embeds[currentPage]; - initialInteraction.editReply({ embeds: [embed.setFooter({ text: `${embed.data.footer ? `${embed.data.footer.text} - ` : ''} This embed has expired.` })], components: [] }); + initialInteraction.editReply({ embeds: [embed.setFooter({ text: `${embed.data.footer ? `${embed.data.footer.text} - ` : ''}This embed has expired.` })], components: [] }); } }