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
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
>