Double underscore HTTPClient's internal session.

This commit is contained in:
Rapptz
2019-03-24 14:36:54 -04:00
parent e567b59fea
commit 548b9d5693
2 changed files with 10 additions and 9 deletions

View File

@ -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):