diff options
| author | Rapptz <[email protected]> | 2019-03-24 14:36:54 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-03-24 14:45:18 -0400 |
| commit | 548b9d56934fb65b4d51bb4fe335f824b3712f5b (patch) | |
| tree | 1db10c9f9421b47088c66b3d30d185b15b079983 /discord/webhook.py | |
| parent | [commands] Double underscore some attributes. (diff) | |
| download | discord.py-548b9d56934fb65b4d51bb4fe335f824b3712f5b.tar.xz discord.py-548b9d56934fb65b4d51bb4fe335f824b3712f5b.zip | |
Double underscore HTTPClient's internal session.
Diffstat (limited to 'discord/webhook.py')
| -rw-r--r-- | discord/webhook.py | 3 |
1 files changed, 2 insertions, 1 deletions
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): |