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

@@ -297,6 +297,10 @@ class ProfileUI(StatsUI):
(self.stats_button, self.edit_button, self.close_button)
]
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 _render_stats(self):
"""
Create and render the profile card.