Skip to content

Commit 057c1b0

Browse files
committed
Merge branch 'polls' of https://github.com/AstreaTSS/interactions-py-library into polls
2 parents a7f1c93 + 2be66f8 commit 057c1b0

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

interactions/models/discord/message.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -70,8 +70,11 @@
7070

7171
channel_mention = re.compile(r"<#(?P<id>[0-9]{17,})>")
7272

73+
7374
class PollAnswerVotersIterator(AsyncIterator):
74-
def __init__(self, message: "Message", answer_id: int, limit: int = 25, after: Snowflake_Type | None = None) -> None:
75+
def __init__(
76+
self, message: "Message", answer_id: int, limit: int = 25, after: Snowflake_Type | None = None
77+
) -> None:
7578
self.message: "Message" = message
7679
self.answer_id = answer_id
7780
self.after: Snowflake_Type | None = after
@@ -623,7 +626,9 @@ def proto_url(self) -> str:
623626
"""A URL like `jump_url` that uses protocols."""
624627
return f"discord://-/channels/{self._guild_id or '@me'}/{self._channel_id}/{self.id}"
625628

626-
def answer_voters(self, answer_id: int, limit: int = 0, before: Snowflake_Type | None = None) -> PollAnswerVotersIterator:
629+
def answer_voters(
630+
self, answer_id: int, limit: int = 0, before: Snowflake_Type | None = None
631+
) -> PollAnswerVotersIterator:
627632
"""
628633
An async iterator for getting the voters for an answer in the poll this message has.
629634

0 commit comments

Comments
 (0)