From b16e9b70a0e1519964e17c105d15d4a872676033 Mon Sep 17 00:00:00 2001 From: Fleny Date: Sun, 7 Jul 2024 17:25:56 +0200 Subject: [PATCH] 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 --- packages/types/src/discordeno.ts | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/packages/types/src/discordeno.ts b/packages/types/src/discordeno.ts index d2270990d..ad225649b 100644 --- a/packages/types/src/discordeno.ts +++ b/packages/types/src/discordeno.ts @@ -1356,9 +1356,20 @@ export interface CreatePoll { question: Camelize /** Each of the answers available in the poll, up to 10 */ answers: Array, '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