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:
Fleny
2024-07-07 10:25:56 -05:00
committed by GitHub
co-authored by Skillz4Killz Awesome Stickz
parent b20e12ded4
commit b16e9b70a0
+13 -2
View File
@@ -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