Skip to content

Commit 49b9242

Browse files
author
TyrantLink
committed
fix: add store poll to webhook state
1 parent 9a6cbff commit 49b9242

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

discord/webhook/async_.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -803,6 +803,12 @@ def create_user(self, data):
803803
# state parameter is artificial
804804
return BaseUser(state=self, data=data) # type: ignore
805805

806+
def store_poll(self, poll: Poll, message_id: int):
807+
if self._parent is not None:
808+
return self._parent.store_poll(poll, message_id)
809+
# state parameter is artificial
810+
return None
811+
806812
@property
807813
def http(self):
808814
if self._parent is not None:

0 commit comments

Comments
 (0)