PollAnswer
classe · Source
Represents an answer to a Poll
Extends: Base
Properties
poll
poll: Poll
The Poll this answer is part of Source
id
id: number
The id of this answer Source
text
text: string
The text of this answer Source
_emoji
_emoji: APIPartialEmoji
The raw emoji of this answer Source
voteCount
voteCount: number
The amount of votes this answer has Source
emoji
emoji: GuildEmoji | Emoji
The emoji of this answer Source
client
client: Client
The client that instantiated this Source
Methods
fetchVoters
fetchVoters(options?: FetchPollVotersOptions): Promise<Collection<Snowflake, User>>
Fetches the users that voted for this answer Parameters
| Name | Type | Description |
|---|---|---|
options? | FetchPollVotersOptions | The options for fetching voters Default: {}. |
Returns: Promise<Collection<Snowflake, User>>Source