diff options
| author | 2020-07-14 10:58:02 +0800 | |
|---|---|---|
| committer | 2020-07-14 10:58:02 +0800 | |
| commit | ac7ed93eb64884a622c8718c8594aa74a3b2b201 (patch) | |
| tree | a7f6c92da50f66fe5f070c5d3ba43a64f42d63ec | |
| parent | Pass argument as kwarg to preserve functionality (diff) | |
Accept argument to order nominees by oldest first
| -rw-r--r-- | bot/cogs/watchchannels/talentpool.py | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bot/cogs/watchchannels/talentpool.py b/bot/cogs/watchchannels/talentpool.py index 33550f68e..1f5989f23 100644 --- a/bot/cogs/watchchannels/talentpool.py +++ b/bot/cogs/watchchannels/talentpool.py @@ -38,14 +38,18 @@ class TalentPool(WatchChannel, Cog, name="Talentpool"): @nomination_group.command(name='watched', aliases=('all', 'list')) @with_role(*MODERATION_ROLES) - async def watched_command(self, ctx: Context, update_cache: bool = True) -> None: + async def watched_command( + self, ctx: Context, oldest_first: bool = False, update_cache: bool = True + ) -> None: """ Shows the users that are currently being monitored in the talent pool. + The optional kwarg `oldest_first` can be used to order the list by oldest nomination. + The optional kwarg `update_cache` can be used to update the user cache using the API before listing the users. """ - await self.list_watched_users(ctx, update_cache) + await self.list_watched_users(ctx, oldest_first=oldest_first, update_cache=update_cache) @nomination_group.command(name='watch', aliases=('w', 'add', 'a')) @with_role(*STAFF_ROLES) |