mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Fix error when trying to message list in DMs
This commit is contained in:
parent
d8f2fe9c48
commit
16515e461c
1 changed files with 4 additions and 2 deletions
|
|
@ -396,5 +396,7 @@ async def system_list(ctx: CommandContext, system: System):
|
|||
current_page = (current_page + 1) % page_count
|
||||
|
||||
# If we can, remove the original reaction from the member
|
||||
if ctx.message.channel.permissions_for(ctx.message.guild.get_member(ctx.client.user.id)).manage_messages:
|
||||
await reaction.remove(ctx.message.author)
|
||||
# Don't bother checking permission if we're in DMs (wouldn't work anyway)
|
||||
if ctx.message.guild:
|
||||
if ctx.message.channel.permissions_for(ctx.message.guild.get_member(ctx.client.user.id)).manage_messages:
|
||||
await reaction.remove(ctx.message.author)
|
||||
Loading…
Add table
Add a link
Reference in a new issue