feat(topgg): Add voting prompt.

This commit is contained in:
2023-10-24 11:05:23 +03:00
parent c4f1b1bbfe
commit 50be4aa44a
9 changed files with 180 additions and 0 deletions

View File

@@ -538,6 +538,10 @@ class LeaderboardUI(StatsUI):
page_row
]
voting = self.bot.get_cog('TopggCog')
if voting and not await voting.check_voted_recently(self.userid):
self._layout.append((voting.vote_button(),))
async def reload(self):
"""
Reload UI data, applying cache where possible.