CreatePoll
Documentation / @discordeno/types / CreatePoll
Interface: CreatePoll
Defined in: discordeno/poll.ts:7
https://docs.discord.com/developers/resources/poll#poll-create-request-object
Properties
allowMultiselect
allowMultiselect:
boolean
Defined in: discordeno/poll.ts:26
Whether a user can select multiple answers
Default
false
answers
answers:
Omit<{answerId:number;pollMedia: {emoji?: {animated?:boolean;available?:boolean;id?:string|null;managed?:boolean;name?:string|null;requireColons?:boolean;roles?:string[];user?: {accentColor?:number|null;avatar:string|null;avatarDecorationData?: {asset:string;skuId:string; } |null;banner?:string|null;bot?:boolean;collectibles?: {nameplate?: ... | ...; } |null;discriminator:string;email?:string|null;flags?:number;globalName:string|null;id:string;locale?:string;mfaEnabled?:boolean;premiumType?:PremiumTypes;primaryGuild?: {badge: ... | ...;identityEnabled: ... | ... | ...;identityGuildId: ... | ...;tag: ... | ...; } |null;publicFlags?:number;system?:boolean;username:string;verified?:boolean; }; };text?:string; }; },"answerId">[]
Defined in: discordeno/poll.ts:11
Each of the answers available in the poll, up to 10
duration
duration:
number
Defined in: discordeno/poll.ts:20
Number of hours the poll should be open for
Remarks
up to 32 days
Default
24
layoutType?
optionallayoutType?:Default
Defined in: discordeno/poll.ts:28
The layout type of the poll
question
question:
Pick<Camelize<DiscordPollMedia>,"text">
Defined in: discordeno/poll.ts:9
The question of the poll. Only text is supported.