Skip to content

PollAnswer

Constructors

new PollAnswer()

new PollAnswer(client, channelId, messageId, answer): PollAnswer

Parameters

ParameterType
clientClient<Transformers, CacheManagerStructure>
channelIdstring
messageIdstring
answerAnswerStructure

Returns

PollAnswer

Defined in

transformers/src/factories/poll.ts:19

Properties

channelId

readonly channelId: string

Defined in

transformers/src/factories/poll.ts:12


messageId

readonly messageId: string

Defined in

transformers/src/factories/poll.ts:13


id

readonly id: number

Defined in

transformers/src/factories/poll.ts:14


media

readonly media: MediaStructure

Defined in

transformers/src/factories/poll.ts:15


client

readonly client: Client<Transformers, CacheManagerStructure>

Defined in

transformers/src/factories/poll.ts:17

Methods

fetchVoters()

fetchVoters(params): Promise<User[]>

Parameters

ParameterTypeDescription
paramsobject-
params.after?string-
params.limit?number0-100 Default 25

Returns

Promise<User[]>

Defined in

transformers/src/factories/poll.ts:28