mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-07-22 19:06:44 +00:00
Fix Webhook poll sending raising AttributeError with a mocked state
This commit is contained in:
parent
9d979d3df1
commit
2751b55357
@ -721,6 +721,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…
x
Reference in New Issue
Block a user