Fix last remnants of .context
This commit is contained in:
parent
228a963920
commit
ec14506634
1 changed files with 10 additions and 12 deletions
|
@ -206,7 +206,7 @@ class PinboardCog(Extension):
|
||||||
check=lambda x: ctx.author.id == x.ctx.author.id,
|
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(
|
exists = await Pin.find_one(
|
||||||
Pin.message == int(message.id),
|
Pin.message == int(message.id),
|
||||||
|
@ -272,11 +272,9 @@ class PinboardCog(Extension):
|
||||||
components[0].components[0].disabled = True
|
components[0].components[0].disabled = True
|
||||||
|
|
||||||
await com_ctx.ctx.edit_origin(
|
await com_ctx.ctx.edit_origin(
|
||||||
content=f"Message saved to Pinboard.\nSee it in {pinboard.mention}",
|
content=f"Message saved to Pinboard.\nSee it in {starboard.mention}",
|
||||||
components=components,
|
components=components,
|
||||||
)
|
)
|
||||||
except:
|
|
||||||
self.bot.logger.error("E", exc_info=True)
|
|
||||||
|
|
||||||
@context_menu(name="Pin Message", context_type=CommandType.MESSAGE)
|
@context_menu(name="Pin Message", context_type=CommandType.MESSAGE)
|
||||||
@check(admin_or_permissions(Permissions.MANAGE_GUILD, Permissions.MANAGE_MESSAGES))
|
@check(admin_or_permissions(Permissions.MANAGE_GUILD, Permissions.MANAGE_MESSAGES))
|
||||||
|
|
Loading…
Add table
Reference in a new issue