Skip to content

Poll

Constructors

new Poll()

new Poll(client, channelId, messageId, poll): Poll

Parameters

ParameterType
clientClient<Transformers, CacheManagerStructure>
channelIdstring
messageIdstring
pollStructure

Returns

Poll

Defined in

transformers/src/factories/poll.ts:54

Properties

channelId

readonly channelId: string

Defined in

transformers/src/factories/poll.ts:43


messageId

readonly messageId: string

Defined in

transformers/src/factories/poll.ts:44


question

readonly question: MediaStructure

Defined in

transformers/src/factories/poll.ts:45


answers

readonly answers: PollAnswer[]

Defined in

transformers/src/factories/poll.ts:46


expiresTimestamp

readonly expiresTimestamp: undefined | Date

Defined in

transformers/src/factories/poll.ts:47


allowMultiselect

readonly allowMultiselect: boolean

Defined in

transformers/src/factories/poll.ts:48


layoutType

readonly layoutType: PollLayoutType

Defined in

transformers/src/factories/poll.ts:49


results

readonly results: undefined | ResultStructure

Defined in

transformers/src/factories/poll.ts:50


client

readonly client: Client<Transformers, CacheManagerStructure>

Defined in

transformers/src/factories/poll.ts:52

Methods

end()

end(): Promise<Message>

Returns

Promise<Message>

Defined in

transformers/src/factories/poll.ts:68