diff options
author | 2022-01-08 17:10:30 -0500 | |
---|---|---|
committer | 2022-01-08 17:10:30 -0500 | |
commit | 858f951b12904795a97dbde04915ad60eddc2084 (patch) | |
tree | 68337d5fd9b9c3aa40da0365419d768c43950690 | |
parent | using target instead of actor (diff) |
user mention for editing reason works now
presumed that when target was an integer, it would be the user ID and not the nomination ID. retrieves user from nomination and fetches the user
-rw-r--r-- | bot/exts/recruitment/talentpool/_cog.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/bot/exts/recruitment/talentpool/_cog.py b/bot/exts/recruitment/talentpool/_cog.py index f76713fae..bbb3196a1 100644 --- a/bot/exts/recruitment/talentpool/_cog.py +++ b/bot/exts/recruitment/talentpool/_cog.py @@ -406,11 +406,9 @@ class TalentPool(Cog, name="Talentpool"): return if isinstance(target, int): nomination_id = target - target_mention = (await self.bot.fetch_user(target)).mention else: if nomination := self.cache.get(target.id): nomination_id = nomination["id"] - target_mention = target.mention else: await ctx.send("No active nomination found for that member.") return @@ -440,7 +438,10 @@ class TalentPool(Cog, name="Talentpool"): json={"actor": actor.id, "reason": reason} ) await self.refresh_cache() # Update cache - await ctx.send(f":white_check_mark: Successfully updated nomination reason for {target_mention}") + await ctx.send( + f":white_check_mark: Successfully updated nomination reason" + f" for {(await self.bot.fetch_user(nomination['user'])).mention}" + ) @nomination_edit_group.command(name='end_reason') @has_any_role(*MODERATION_ROLES) |