From 858f951b12904795a97dbde04915ad60eddc2084 Mon Sep 17 00:00:00 2001 From: Shom770 <82843611+Shom770@users.noreply.github.com> Date: Sat, 8 Jan 2022 17:10:30 -0500 Subject: 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 --- bot/exts/recruitment/talentpool/_cog.py | 7 ++++--- 1 file 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) -- cgit v1.2.3