Poll
Constructors
new Poll()
new Poll(
client,channelId,messageId,poll):Poll
Parameters
| Parameter | Type |
|---|---|
client | Client<Transformers, CacheManagerStructure> |
channelId | string |
messageId | string |
poll | Structure |
Returns
Defined in
transformers/src/factories/poll.ts:54
Properties
channelId
readonlychannelId:string
Defined in
transformers/src/factories/poll.ts:43
messageId
readonlymessageId:string
Defined in
transformers/src/factories/poll.ts:44
question
readonlyquestion:MediaStructure
Defined in
transformers/src/factories/poll.ts:45
answers
readonlyanswers:PollAnswer[]
Defined in
transformers/src/factories/poll.ts:46
expiresTimestamp
readonlyexpiresTimestamp:undefined|Date
Defined in
transformers/src/factories/poll.ts:47
allowMultiselect
readonlyallowMultiselect:boolean
Defined in
transformers/src/factories/poll.ts:48
layoutType
readonlylayoutType:PollLayoutType
Defined in
transformers/src/factories/poll.ts:49
results
readonlyresults:undefined|ResultStructure
Defined in
transformers/src/factories/poll.ts:50
client
readonlyclient:Client<Transformers,CacheManagerStructure>
Defined in
transformers/src/factories/poll.ts:52
Methods
end()
end():
Promise<Message>
Returns
Promise<Message>