Skip to content

Commit

Permalink
Fix help menu
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMonDon committed Jul 17, 2024
1 parent bfb4c33 commit fabc70a
Showing 1 changed file with 14 additions and 6 deletions.
20 changes: 14 additions & 6 deletions commands/General/help.js
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,13 @@ class Help extends Command {
if (displayedCategory === 'Nsfw') displayedCategory = 'NSFW';

const pageFooter = totalPages === 1 ? '' : `Page ${pageNumber}/${totalPages} | `;
em.setTitle(`${displayedCategory} Commands`).setFooter({
text: `${pageFooter}}`,
});
em.setTitle(`${displayedCategory} Commands`);

if (pageFooter) {
em.setFooter({
text: pageFooter,
});
}

await interaction.editReply({
embeds: [em],
Expand Down Expand Up @@ -254,9 +258,13 @@ class Help extends Command {
if (displayedCategory === 'Nsfw') displayedCategory = 'NSFW';

const pageFooter = totalPages === 1 ? '' : `Page ${pageNumber}/${totalPages} | `;
em.setTitle(`${displayedCategory} Commands`).setFooter({
text: pageFooter,
});
em.setTitle(`${displayedCategory} Commands`);

if (pageFooter) {
em.setFooter({
text: pageFooter,
});
}

return msg.channel.send({ embeds: [em] });
} else {
Expand Down

0 comments on commit fabc70a

Please sign in to comment.