mirror of
https://github.com/discordeno/discordeno.git
synced 2026-09-17 08:47:22 +00:00
fix(types): Update max poll duration and defaults for creating a poll (#3694)
* Change the max duration of poll from 7 days to 32 * Update default values for poll creation (#3701) --------- Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com> Co-authored-by: Awesome Stickz <awesome@stickz.dev>
This commit is contained in:
co-authored by
Skillz4Killz
Awesome Stickz
parent
b20e12ded4
commit
b16e9b70a0
@@ -1356,9 +1356,20 @@ export interface CreatePoll {
|
||||
question: Camelize<DiscordPollMedia>
|
||||
/** Each of the answers available in the poll, up to 10 */
|
||||
answers: Array<Omit<Camelize<DiscordPollAnswer>, 'answerId'>>
|
||||
/** Number of hours the poll should be open for, up to 7 days */
|
||||
/**
|
||||
* Number of hours the poll should be open for
|
||||
*
|
||||
* @remarks
|
||||
* up to 32 days
|
||||
*
|
||||
* @default 24
|
||||
*/
|
||||
duration: number
|
||||
/** Whether a user can select multiple answers */
|
||||
/**
|
||||
* Whether a user can select multiple answers
|
||||
*
|
||||
* @default false
|
||||
*/
|
||||
allowMultiselect: boolean
|
||||
/** The layout type of the poll */
|
||||
layoutType?: DiscordPollLayoutType
|
||||
|
||||
Reference in New Issue
Block a user