Skip to content

Commit

Permalink
Add guide category in footer when there is only one page
Browse files Browse the repository at this point in the history
  • Loading branch information
Tibowl committed Dec 17, 2021
1 parent 5b746b1 commit a5c66d4
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/commands/misc/guide.ts
Expand Up @@ -133,6 +133,8 @@ export function getGuidePage(guide: Guide, relativePage: number, currentPage: nu

if (maxPages > 1)
embed.setFooter(`Page ${currentPage} / ${maxPages} - ${guide.name}`)
else if (guide.name !== page.name)
embed.setFooter(guide.name)

if (page.desc)
embed.setDescription(page.desc.replace(/\${(.*?)}/g, (_, name) => data.emoji(name)))
Expand Down

0 comments on commit a5c66d4

Please sign in to comment.