mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-04 04:56:49 +00:00
Remove old workarounds pt. 2
This commit is contained in:
parent
83b00ee029
commit
c620c53cf0
1 changed files with 0 additions and 3 deletions
|
|
@ -21,10 +21,7 @@ async def get_or_create_webhook_for_channel(conn, bot_user: discord.User, channe
|
|||
if webhook_from_db:
|
||||
webhook_id, webhook_token = webhook_from_db
|
||||
|
||||
session = channel._state.http._session
|
||||
hook = discord.Webhook.partial(webhook_id, webhook_token, adapter=discord.AsyncWebhookAdapter(session))
|
||||
|
||||
hook._adapter.store_user = hook._adapter._store_user
|
||||
return hook
|
||||
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue