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
¶
end
async
¶
End the poll. Fires Message Update Event.
Warning
Polls from other users cannot be terminated.
Returns:
-
JsonQuery–updated message