diff --git a/jarvis/cogs/extra/pinboard.py b/jarvis/cogs/extra/pinboard.py index 6483eb0..7945eea 100644 --- a/jarvis/cogs/extra/pinboard.py +++ b/jarvis/cogs/extra/pinboard.py @@ -200,13 +200,13 @@ class PinboardCog(Extension): msg = await ctx.send(content="Choose a pinboard", components=components) - com_ctx = await self.bot.wait_for_component( - messages=msg, - components=components, - check=lambda x: ctx.author.id == x.ctx.author.id, - ) + com_ctx = await self.bot.wait_for_component( + messages=msg, + components=components, + check=lambda x: ctx.author.id == x.ctx.author.id, + ) - pinboard = channel_list[int(com_ctx.ctx.values[0])] + starboard = channel_list[int(com_ctx.ctx.values[0])] exists = await Pin.find_one( Pin.message == int(message.id), @@ -271,12 +271,10 @@ class PinboardCog(Extension): components[0].components[0].disabled = True - await com_ctx.ctx.edit_origin( - content=f"Message saved to Pinboard.\nSee it in {pinboard.mention}", - components=components, - ) - except: - self.bot.logger.error("E", exc_info=True) + await com_ctx.ctx.edit_origin( + content=f"Message saved to Pinboard.\nSee it in {starboard.mention}", + components=components, + ) @context_menu(name="Pin Message", context_type=CommandType.MESSAGE) @check(admin_or_permissions(Permissions.MANAGE_GUILD, Permissions.MANAGE_MESSAGES))