Skip to content

Commit

Permalink
Apply suggestions from code review mk2
Browse files Browse the repository at this point in the history
Co-authored-by: BenW <[email protected]>
  • Loading branch information
ExampleWasTaken and benw202 authored May 29, 2024
1 parent e260e07 commit 20826f9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/lib/genericEmbedPagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/infractionEmbedPagination.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [] });
}
}

0 comments on commit 20826f9

Please sign in to comment.