Poll
Extends
ObjectToLower
<Omit
<APIPoll
,"expiry"
>>.Base
Constructors
new Poll(client, data, channelId, messageId)
1new Poll(2 client: UsingClient,3 data: APIPoll,4 channelId: string,5 messageId: string): Poll
Parameters
Parameter | Type |
---|---|
client | UsingClient |
data | APIPoll |
channelId | string |
messageId | string |
Returns
Inherited from
ObjectToLower<Omit<APIPoll, 'expiry'>>.constructor
Source
seyfert/src/structures/Poll.ts:11
Properties
Property | Modifier | Type | Inherited from |
---|---|---|---|
allowMultiselect | public | boolean | ObjectToLower.allowMultiselect |
answers | public | Object [] | ObjectToLower.answers |
channelId | readonly | string | - |
client | readonly | UsingClient | - |
expiry | public | number | - |
layoutType | public | Default | ObjectToLower.layoutType |
messageId | readonly | string | - |
question | public | Object | ObjectToLower.question |
question.emoji | public | undefined | Object | - |
question.text | public | undefined | string | - |
results | public | undefined | Object | ObjectToLower.results |
Methods
end()
1end(): Promise<Message>
Returns
Promise
<Message
>
Source
seyfert/src/structures/Poll.ts:21
getAnswerVoters()
1getAnswerVoters(id: ValidAnswerId): Promise<User[]>
Parameters
Parameter | Type |
---|---|
id | ValidAnswerId |
Returns
Promise
<User
[]>