Skip to content

PollAnswer

classe · Source

Represents an answer to a Poll

Extends: Base

Properties

poll

readonly

poll: Poll

The Poll this answer is part of Source

id

id: number

The id of this answer Source

text

nullable

text: string

The text of this answer Source

_emoji

nullable · private

_emoji: APIPartialEmoji

The raw emoji of this answer Source

voteCount

voteCount: number

The amount of votes this answer has Source

emoji

nullable

emoji: GuildEmoji | Emoji

The emoji of this answer Source

client

readonly

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

NameTypeDescription
options?FetchPollVotersOptionsThe options for fetching voters Default: {}.

Returns: Promise<Collection<Snowflake, User>>Source

Unofficial software. Not affiliated with or supported by Discord.