mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-16 18:50:13 +00:00
Fixing issues caused by PK using an outdated version of the lib. Whoops :')
This commit is contained in:
parent
94da43e187
commit
58123dfe58
1 changed files with 4 additions and 4 deletions
|
|
@ -246,13 +246,13 @@ async def do_query_message(conn, client: discord.Client, payload: discord.RawRea
|
|||
# We couldn't find this user in the cache - bail
|
||||
return False
|
||||
|
||||
# Send the card to the user
|
||||
# Remove reaction and send the card to the user
|
||||
try:
|
||||
await user.send(embed=card)
|
||||
channel = await client.fetch_channel(payload.channel_id)
|
||||
message = await channel.fetch_message(payload.message_id)
|
||||
channel = await client.get_channel(payload.channel_id)
|
||||
message = await channel.get_message(payload.message_id)
|
||||
if message.guild and message.channel.permissions_for(message.guild.get_member(client.user.id)).manage_messages:
|
||||
await message.remove_reaction(payload.emoji, user)
|
||||
await user.send(embed=card)
|
||||
except discord.Forbidden:
|
||||
# User doesn't have DMs enabled, not much we can do about that
|
||||
pass
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue