From 548b9d56934fb65b4d51bb4fe335f824b3712f5b Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sun, 24 Mar 2019 14:36:54 -0400 Subject: Double underscore HTTPClient's internal session. --- discord/webhook.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'discord/webhook.py') diff --git a/discord/webhook.py b/discord/webhook.py index 4bef842a..cb8679d4 100644 --- a/discord/webhook.py +++ b/discord/webhook.py @@ -487,7 +487,8 @@ class Webhook: @classmethod def from_state(cls, data, state): - return cls(data, adapter=AsyncWebhookAdapter(session=state.http._session), state=state) + session = state.http._HTTPClient__session + return cls(data, adapter=AsyncWebhookAdapter(session=session), state=state) @property def guild(self): -- cgit v1.2.3