PollAnswer

export class PollAnswer extends Base
export class PollAnswer extends Base
Represents an answer to a Poll

Extends

Base
Readonly
client:Client<true>
The client that instantiated this
Inherited from Base
Readonly
The emoji of this answer
The id of this answer
Readonly
poll:Poll
The Poll this answer is part of
text:string | null
The text of this answer
voteCount:number
The amount of votes this answer has
fetchVoters(options?):Promise<Collection<Snowflake, User>>
Fetches the users that voted for this answer.
NameTypeOptionalDescription
optionsBaseFetchPollAnswerVotersOptionsYesThe options for fetching voters
toJSON(...props):unknown
NameTypeOptionalDescription
...propsRecord<string, boolean | string>[]NoNone
Inherited from Base
valueOf():string