Skip to content

Resources


poll

Poll dataclass

Bases: BaseResource


              flowchart TD
              scurrypy.resources.poll.Poll[Poll]
              scurrypy.resources.base_resource.BaseResource[BaseResource]

                              scurrypy.resources.base_resource.BaseResource --> scurrypy.resources.poll.Poll
                


              click scurrypy.resources.poll.Poll href "" "scurrypy.resources.poll.Poll"
              click scurrypy.resources.base_resource.BaseResource href "" "scurrypy.resources.base_resource.BaseResource"
            

A poll!

channel_id: Snowflake instance-attribute

Channel ID of the poll.

message_id: Snowflake instance-attribute

Message ID of the poll.

fetch_poll_voters async

Fetch users that voted on the answer.

Parameters:

  • answer_id (Snowflake) –

    ID of the answer

  • after (Snowflake, default: None ) –

    users after this user ID

  • limit (int, default: 25 ) –

    Max number of users to return. Defaults to 25.

Returns:

  • JsonQuery –

    users that voted on the answer

end async

End the poll. Fires Message Update Event.

Warning

Polls from other users cannot be terminated.

Returns: