diff options
| author | 2020-07-14 10:58:56 +0800 | |
|---|---|---|
| committer | 2020-07-14 10:58:56 +0800 | |
| commit | 01d2803b608407330959ef880bd562456921d0fd (patch) | |
| tree | d9600e4f14b2ff74a91b39b786bec2d82c80f789 | |
| parent | Accept argument to order nominees by oldest first (diff) | |
Add command to list nominees by oldest first
| -rw-r--r-- | bot/cogs/watchchannels/talentpool.py | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/bot/cogs/watchchannels/talentpool.py b/bot/cogs/watchchannels/talentpool.py index 1f5989f23..89256e92e 100644 --- a/bot/cogs/watchchannels/talentpool.py +++ b/bot/cogs/watchchannels/talentpool.py @@ -51,6 +51,17 @@ class TalentPool(WatchChannel, Cog, name="Talentpool"): """ await self.list_watched_users(ctx, oldest_first=oldest_first, update_cache=update_cache) + @nomination_group.command(name='oldest') + @with_role(*MODERATION_ROLES) + async def oldest_command(self, ctx: Context, update_cache: bool = True) -> None: + """ + Shows talent pool monitored users ordered by oldest nomination. + + The optional kwarg `update_cache` can be used to update the user + cache using the API before listing the users. + """ + await ctx.invoke(self.watched_command, oldest_first=True, update_cache=update_cache) + @nomination_group.command(name='watch', aliases=('w', 'add', 'a')) @with_role(*STAFF_ROLES) async def watch_command(self, ctx: Context, user: FetchedMember, *, reason: str) -> None: |