Browse Source

Fix Webhook poll sending raising AttributeError with a mocked state

pull/10109/head
DA344 11 months ago
committed by dolfies
parent
commit
8bcf4afb96
  1. 5
      discord/webhook/async_.py

5
discord/webhook/async_.py

@ -510,6 +510,11 @@ class _WebhookState:
return self._parent._get_guild(guild_id)
return None
def _get_poll(self, msg_id: Optional[int]) -> Optional[Poll]:
if self._parent is not None:
return self._parent._get_poll(msg_id)
return None
def store_user(self, data: Union[UserPayload, PartialUserPayload], *, cache: bool = True) -> BaseUser:
if self._parent is not None:
return self._parent.store_user(data, cache=cache)

Loading…
Cancel
Save