mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 13:06:50 +00:00
Don't proxy in DMs
This commit is contained in:
parent
ad9b3d2166
commit
9350f4cc18
1 changed files with 4 additions and 0 deletions
|
|
@ -135,6 +135,10 @@ async def proxy_message(conn, member, trigger_message, inner):
|
|||
|
||||
|
||||
async def handle_proxying(conn, message):
|
||||
# Can't proxy in DMs, webhook creation will explode
|
||||
if message.channel.is_private:
|
||||
return False
|
||||
|
||||
# Big fat query to find every member associated with this account
|
||||
# Returned member object has a few more keys (system tag, for example)
|
||||
members = await db.get_members_by_account(conn, account_id=message.author.id)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue