You may need to enable this feature on the dashboard or with /poll admin enable.
Opens a modal to create a Poll. Fill in the fields and submit the modal to publish the poll. The Poll shows who created it.Polls can also be created on the Polls page of the dashboard.
Permission
MANAGE_MESSAGES
Arguments
This command opens a modal instead of taking inline options:
Field
Description
Sample Data
Title
The Poll title, could be like a question. Min 5, max 200 characters.
Title of the Poll
Duration
Duration of the Poll. Example: “1h” or “1d”. At most 1 year.
1h
Answers
The possible answers to the Poll, one per line. Min 2, max 25 answers, max 80 characters per answer.
Answer 1\nAnswer 2\nAnswer 3
Sample Response
The command opens this modal:When you submit it, the bot posts the poll in the channel. Members vote with the buttons:Then it confirms to you:
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Utilbot Docs","colors":{"primary":"#EBA300","light":"#FFCD5C","dark":"#C28600"},"logo":{"light":"https://mintcdn.com/utilbot/f0zEIJ2Ze9KTu1aK/logo/utilbot.png?fit=max\u0026auto=format\u0026n=f0zEIJ2Ze9KTu1aK\u0026q=85\u0026s=fa2882c082edaffb0da7731f2c813989","dark":"https://mintcdn.com/utilbot/f0zEIJ2Ze9KTu1aK/logo/utilbot.png?fit=max\u0026auto=format\u0026n=f0zEIJ2Ze9KTu1aK\u0026q=85\u0026s=fa2882c082edaffb0da7731f2c813989"},"favicon":"https://mintcdn.com/utilbot/5B9W_H9XQWYeSP4A/favicon.ico?fit=max\u0026auto=format\u0026n=5B9W_H9XQWYeSP4A\u0026q=85\u0026s=d036dbc06c9160f8acb5031cb94dfbe3","navbar":{"links":[{"href":"https://utilbot.co","label":"Website"},{"href":"https://utilbot.co/discord","label":"Support"}],"primary":{"type":"button","label":"Invite Bot","href":"https://utilbot.co/invite"}},"footer":{"socials":{"github":"https://github.com/utilbot","discord":"https://utilbot.co/discord"},"links":[{"header":"Legal","items":[{"label":"Terms of Service","href":"https://utilbot.co/legal/terms"},{"label":"Privacy Policy","href":"https://utilbot.co/legal/privacy"},{"label":"Imprint","href":"https://utilbot.co/legal/imprint"}]}]},"contextual":{"options":["copy","view","chatgpt","claude","perplexity","mcp","cursor","vscode"],"display":"header"},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://utilbot.co"},{"anchor":"Discord Server","icon":"discord","href":"https://utilbot.co/discord"},{"anchor":"Canary Bot","icon":"flask","href":"https://canary.utilbot.co"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"utilbot","hasAudioNarration":false,"actualSubdomain":"utilbot","customDomains":["docs.utilbot.co"],"gitSource":{"type":"github","owner":"utilbot","repo":"docs","deployBranch":"main","contentDirectory":"","isPrivate":false,"mountPath":"","label":"","_id":"6adbeb0d36a178da0367eece"},"feedback":{"thumbs":false,"issues":false},"entitlements":{"AI_CHAT":{"status":"DISABLED"},"WEB_MCP":{"status":"DISABLED"},"NARRATION":{"status":"DISABLED"}},"buildId":"6ae7b1ff5002a7ad16c1b1e5","clientVersion":"0.0.4143","searchFilterCounts":[{"language":"default","tag":"Commands","count":39},{"language":"default","tag":"Admins","count":11},{"language":"default","tag":"General","count":9},{"language":"default","tag":"Moderators","count":9},{"language":"default","tag":"Poll","count":5},{"language":"default","tag":"Misc","count":4},{"language":"default","tag":"Guides","count":4},{"language":"default","tag":"Rank","count":2},{"language":"default","tag":"Changelog","count":1},{"language":"default","tag":"Fun","count":1}]},"assistantConfig":{"enableAskAiButton":false,"enableStarterQuestions":false,"enableContextualStarterQuestions":false,"enableAskAiSearchBar":true},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-onboarding","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"assistant-v5","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-sso-scim","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-signup","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workos-enabled","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"sso-setup-deadline-banner","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"privacy":{"consentBanner":{"enabled":true}},"googleFontsInlined":false},"customCss":[],"page":{"pagePath":"commands/poll/create-poll","slug":"/commands/poll/create-poll","pageMetadata":{"title":"Create Poll","description":null,"href":"/commands/poll/create-poll"},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];const DiscordModal=({title,fields=[],submitLabel=`Submit`})=>_jsxs(`div`,{className:`not-prose`,style:{fontFamily:__snippet_FONT_i8165v,maxWidth:440,margin:`12px 0`,borderRadius:8,overflow:`hidden`,background:__snippet_COLORS_i8165v.background,color:__snippet_COLORS_i8165v.text,fontSize:14,lineHeight:1.375,boxShadow:`0 0 0 1px rgba(0, 0, 0, 0.2), 0 8px 24px rgba(0, 0, 0, 0.35)`},children:[_jsxs(`div`,{style:{display:`flex`,alignItems:`center`,gap:12,padding:`16px 16px 8px`},children:[_jsx(`img`,{alt:``,src:`/logo/utilbot.png`,style:{width:24,height:24,margin:0,borderRadius:`50%`}}),_jsx(`div`,{style:{flex:1,fontSize:20,fontWeight:600,color:__snippet_COLORS_i8165v.heading},children:title}),_jsx(`svg`,{fill:`none`,height:`20`,stroke:__snippet_COLORS_i8165v.muted,strokeLinecap:`round`,strokeWidth:`2.4`,viewBox:`0 0 24 24`,width:`20`,children:_jsx(`path`,{d:`M18 6 6 18M6 6l12 12`})})]}),_jsx(`div`,{style:{display:`flex`,flexDirection:`column`,gap:16,padding:16},children:fields.map((field,index)=>_jsxs(`div`,{children:[_jsxs(`div`,{style:{fontSize:14,fontWeight:600,color:__snippet_COLORS_i8165v.heading,marginBottom:field.description?2:8},children:[field.label,field.required!==false\u0026\u0026_jsx(`span`,{style:{color:__snippet_COLORS_i8165v.danger,paddingLeft:4},children:`*`})]}),field.description\u0026\u0026_jsx(`div`,{style:{fontSize:12,color:__snippet_COLORS_i8165v.muted,marginBottom:8},children:field.description}),_jsx(`div`,{style:{minHeight:field.paragraph?80:40,padding:`10px 12px`,borderRadius:8,background:__snippet_COLORS_i8165v.input,color:field.value?__snippet_COLORS_i8165v.text:`#6d6f78`,whiteSpace:`pre-wrap`,boxSizing:`border-box`},children:field.value||field.placeholder||``})]},index))}),_jsxs(`div`,{style:{display:`flex`,justifyContent:`flex-end`,alignItems:`center`,gap:16,padding:16,background:__snippet_COLORS_i8165v.container},children:[_jsx(`span`,{style:{color:__snippet_COLORS_i8165v.text,fontSize:14,fontWeight:500},children:`Cancel`}),__snippet_button_i8165v({style:`primary`,label:submitLabel})]})]});const __snippet_AVATAR_SIZE_i8165v=40;const __snippet_CONTENT_GAP_i8165v=16;const __snippet_FONT_i8165v=`\"gg sans\", \"Helvetica Neue\", Helvetica, Arial, sans-serif`;const __snippet_appIcon_i8165v=()=>_jsxs(`svg`,{fill:`currentColor`,height:`12`,stroke:`currentColor`,strokeLinejoin:`round`,style:{flexShrink:0},viewBox:`0 0 24 24`,width:`12`,children:[_jsx(`rect`,{height:`9`,rx:`2.4`,strokeWidth:`0`,transform:`rotate(15 6 6)`,width:`9`,x:`1.5`,y:`1.5`}),_jsx(`polygon`,{points:`18,2.6 22.4,10.3 13.6,10.3`,strokeWidth:`2.4`}),_jsx(`polygon`,{points:`6.00,13.50 7.74,14.40 9.52,15.19 9.90,17.11 10.39,19.00 9.13,20.49 7.95,22.05 6.00,22.00 4.05,22.05 2.87,20.49 1.61,19.00 2.10,17.11 2.48,15.19 4.26,14.40`,strokeWidth:`1.2`}),_jsx(`path`,{d:`M18 12.8 Q19.4 16.6 23.2 18 Q19.4 19.4 18 23.2 Q16.6 19.4 12.8 18 Q16.6 16.6 18 12.8 Z`,strokeWidth:`0.8`})]});const __snippet_eyeIcon_i8165v=()=>_jsxs(`svg`,{fill:`none`,height:`16`,style:{flexShrink:0},viewBox:`0 0 24 24`,width:`16`,children:[_jsx(`path`,{d:`M12 3.5 C6.4 3.5 2.8 8.6 1.8 11.4 a1.6 1.6 0 0 0 0 1.2 C2.8 15.4 6.4 20.5 12 20.5 C17.6 20.5 21.2 15.4 22.2 12.6 a1.6 1.6 0 0 0 0 -1.2 C21.2 8.6 17.6 3.5 12 3.5 Z`,stroke:`currentColor`,strokeWidth:`2`}),_jsx(`path`,{d:`M16.55 9.94 A5 5 0 1 1 14.06 7.45 A2.1 2.1 0 1 0 16.55 9.94 Z`,fill:`currentColor`})]});const DiscordMessage=({command,user=`User`,userColor=`#d9e74e`,botName=`Utilbot`,botColor=__snippet_COLORS_i8165v.brand,avatar=`/logo/utilbot.png`,timestamp=`22:27`,ephemeral=false,content,children})=>{const[userAvatar,botAvatar]=__snippet_useImageUrls_i8165v([`avatar:${user}`,avatar]);const userAvatarStyle={width:16,height:16,margin:`0 4px 0 0`,borderRadius:`50%`,background:`#5c5e66`,objectFit:`cover`,flexShrink:0};return _jsxs(`div`,{className:`not-prose`,style:{fontFamily:__snippet_FONT_i8165v,maxWidth:600,margin:`12px 0`,padding:`12px 16px`,borderRadius:8,background:__snippet_COLORS_i8165v.background,color:__snippet_COLORS_i8165v.text,fontSize:14,lineHeight:1.375},children:[command\u0026\u0026_jsxs(`div`,{style:{display:`flex`,alignItems:`center`,marginBottom:4,fontSize:13},children:[_jsx(`div`,{style:{position:`relative`,alignSelf:`stretch`,width:__snippet_AVATAR_SIZE_i8165v+__snippet_CONTENT_GAP_i8165v,flexShrink:0},children:_jsx(`div`,{style:{position:`absolute`,left:__snippet_AVATAR_SIZE_i8165v/2-1,right:4,top:`50%`,bottom:0,borderLeft:`2px solid #4e5058`,borderTop:`2px solid #4e5058`,borderTopLeftRadius:6}})}),userAvatar?_jsx(`img`,{alt:``,src:userAvatar,style:userAvatarStyle}):_jsx(`span`,{style:userAvatarStyle}),_jsxs(`span`,{children:[_jsx(`span`,{style:{color:userColor,fontWeight:500},children:user}),` used`,` `,_jsxs(`span`,{style:{display:`inline-flex`,alignItems:`center`,gap:4,padding:`0 6px`,borderRadius:4,background:`rgba(88, 101, 242, 0.24)`,color:__snippet_COLORS_i8165v.link,fontWeight:500},children:[__snippet_appIcon_i8165v(),command.replace(/^\\//,``)]})]})]}),_jsxs(`div`,{style:{display:`flex`,gap:__snippet_CONTENT_GAP_i8165v,alignItems:`flex-start`},children:[__snippet_image_i8165v(botAvatar,{width:__snippet_AVATAR_SIZE_i8165v,height:__snippet_AVATAR_SIZE_i8165v,borderRadius:`50%`,flexShrink:0,...botAvatar?{background:`none`}:{}}),_jsxs(`div`,{style:{minWidth:0,flex:1},children:[_jsxs(`div`,{style:{display:`flex`,alignItems:`baseline`,gap:6,marginBottom:2},children:[_jsx(`span`,{style:{fontWeight:600,color:botColor},children:botName}),_jsxs(`span`,{style:{display:`inline-flex`,alignItems:`center`,alignSelf:`center`,gap:2,height:15,padding:`0 4px`,borderRadius:4,background:__snippet_COLORS_i8165v.blurple,color:`#fff`,fontSize:10,fontWeight:700},children:[_jsx(`svg`,{fill:`none`,height:`10`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2.4`,viewBox:`0 0 16 16`,width:`10`,children:_jsx(`path`,{d:`M3 8.5 L6.5 12 L13 4.5`})}),`APP`]}),_jsx(`span`,{style:{color:__snippet_COLORS_i8165v.muted,fontSize:12},children:timestamp})]}),_jsxs(`div`,{style:{display:`flex`,flexDirection:`column`,gap:8},children:[content\u0026\u0026__snippet_markdown_i8165v(content),children]}),ephemeral\u0026\u0026_jsxs(`div`,{style:{display:`flex`,alignItems:`center`,gap:4,marginTop:4,color:__snippet_COLORS_i8165v.muted,fontSize:12},children:[__snippet_eyeIcon_i8165v(),_jsx(`span`,{children:`Only you can see this`}),_jsx(`span`,{children:`•`}),_jsx(`span`,{style:{color:__snippet_COLORS_i8165v.link},children:`Dismiss message`})]})]})]})]})};const __snippet_MONO_i8165v=`Consolas, \"Andale Mono WT\", \"Andale Mono\", \"Lucida Console\", Monaco, \"Courier New\", monospace`;let __snippet_teamRequest_i8165v;const __snippet_loadTeam_i8165v=()=>{if(!__snippet_teamRequest_i8165v){__snippet_teamRequest_i8165v=fetch(`https://utilbot.co/api/v6/team`).then(response=>response.ok?response.json():[]).catch(()=>[])}return __snippet_teamRequest_i8165v};const __snippet_avatarName_i8165v=url=>typeof url===`string`\u0026\u0026url.startsWith(`avatar:`)?url.slice(`avatar:`.length):null;const __snippet_useImageUrls_i8165v=urls=>{const names=urls.map(__snippet_avatarName_i8165v);const wanted=names.filter(Boolean).join(`|`);const[avatars,setAvatars]=useState({});useEffect(()=>{if(!wanted)return undefined;let active=true;__snippet_loadTeam_i8165v().then(team=>{if(!active)return;const found={};for(const member of team)found[member.name]=member.image.replace(/\\.gif$/,`.webp`);setAvatars(found)});return()=>{active=false}},[wanted]);return urls.map((url,index)=>names[index]?avatars[names[index]]??null:url)};const __snippet_image_i8165v=(url,style,key)=>_jsx(`div`,{style:{overflow:`hidden`,background:__snippet_COLORS_i8165v.input,...style},children:url\u0026\u0026_jsx(`img`,{alt:``,onError:event=>{event.currentTarget.style.visibility=`hidden`},referrerPolicy:`no-referrer`,src:url,style:{display:`block`,width:`100%`,height:`100%`,margin:0,objectFit:`cover`}})},key);const __snippet_toCssColor_i8165v=color=>typeof color===`number`?`#${color.toString(16).padStart(6,`0`)}`:color;const __snippet_TIMESTAMP_FORMATS_i8165v={t:{hour:`2-digit`,minute:`2-digit`},T:{hour:`2-digit`,minute:`2-digit`,second:`2-digit`},d:{day:`2-digit`,month:`2-digit`,year:`numeric`},D:{day:`numeric`,month:`long`,year:`numeric`},f:{day:`numeric`,month:`long`,year:`numeric`,hour:`2-digit`,minute:`2-digit`},F:{weekday:`long`,day:`numeric`,month:`long`,year:`numeric`,hour:`2-digit`,minute:`2-digit`}};const __snippet_RELATIVE_UNITS_i8165v=[[`year`,31536e3],[`month`,2592e3],[`day`,86400],[`hour`,3600],[`minute`,60],[`second`,1]];const __snippet_SAMPLE_NOW_i8165v=1793050020;const __snippet_renderTimestamp_i8165v=(seconds,style=`f`)=>{const date=new Date(seconds*1e3);if(Number.isNaN(date.getTime()))return String(seconds);if(style===`R`){const diff=seconds-__snippet_SAMPLE_NOW_i8165v;const[unit,size]=__snippet_RELATIVE_UNITS_i8165v.find(([,unitSize])=>Math.abs(diff)>=unitSize)??[`second`,1];return new Intl.RelativeTimeFormat(`en-GB`,{numeric:`always`}).format(Math.trunc(diff/size),unit)}return new Intl.DateTimeFormat(`en-GB`,__snippet_TIMESTAMP_FORMATS_i8165v[style]??__snippet_TIMESTAMP_FORMATS_i8165v.f).format(date)};const __snippet_mention_i8165v=(text,key)=>_jsx(`span`,{style:{borderRadius:3,padding:`0 2px`,fontWeight:500,background:`rgba(88, 101, 242, 0.3)`,color:`#c9cdfb`},children:text},key);const __snippet_mentionName_i8165v=(name,placeholder)=>/^\\d+$/.test(name)?placeholder:name;const __snippet_externalLink_i8165v=(href,children,key)=>{const _components={a:`a`,..._provideComponents()};return _jsx(_components.a,{href,rel:`noreferrer noopener`,style:{color:__snippet_COLORS_i8165v.link,textDecoration:`none`,border:0},target:`_blank`,children},key)};const __snippet_spoiler_i8165v=(children,key)=>_jsx(`span`,{onClick:event=>{const{style}=event.currentTarget;style.color=`inherit`;style.background=`rgba(255, 255, 255, 0.1)`;style.cursor=`auto`},style:{borderRadius:3,padding:`0 2px`,cursor:`pointer`,background:__snippet_COLORS_i8165v.input,color:`transparent`},children},key);const __snippet_bold_i8165v={fontWeight:700,color:`inherit`};const __snippet_INLINE_RULES_i8165v=[{match:/^\\\\(?\u003cchar>[^\\d\\sA-Za-z])/,render:({char})=>char},{match:/^`(?\u003ccode>[^`]+)`/,render:({code},key)=>_jsx(`code`,{style:{fontFamily:__snippet_MONO_i8165v,fontSize:`0.85em`,lineHeight:1.125,padding:`0.1em 0.2em`,borderRadius:4,background:__snippet_COLORS_i8165v.input,color:__snippet_COLORS_i8165v.text,border:0},children:code},key)},{match:/^\u003c(?\u003canimated>a?):(?\u003cname>\\w{2,32}):(?\u003cid>\\d{17,20})>/,render:({animated,name,id},key)=>_jsx(`img`,{alt:`:${name}:`,src:`https://cdn.discordapp.com/emojis/${id}.${animated?`gif`:`webp`}?size=48`,style:{display:`inline-block`,width:`1.375em`,height:`1.375em`,margin:0,verticalAlign:`bottom`,objectFit:`contain`},title:`:${name}:`},key)},{match:/^\u003ct:(?\u003cseconds>-?\\d{1,17})(?::(?\u003cstyle>[DFRTdft]))?>/,render:({seconds,style},key)=>_jsx(`span`,{style:{borderRadius:3,padding:`0 2px`,background:`rgba(255, 255, 255, 0.1)`},children:__snippet_renderTimestamp_i8165v(Number(seconds),style)},key)},{match:/^\u003c@\u0026(?\u003cname>[^>]+)>/,render:({name},key)=>__snippet_mention_i8165v(`@${__snippet_mentionName_i8165v(name,`role`)}`,key)},{match:/^\u003c@!?(?\u003cname>[^>]+)>/,render:({name},key)=>__snippet_mention_i8165v(`@${__snippet_mentionName_i8165v(name,`user`)}`,key)},{match:/^\u003c#(?\u003cname>[^>]+)>/,render:({name},key)=>__snippet_mention_i8165v(`#${__snippet_mentionName_i8165v(name,`channel`)}`,key)},{match:/^\u003c\\/(?\u003ccommand>[\\w -]{1,100}):\\d+>/,render:({command},key)=>__snippet_mention_i8165v(`/${command}`,key)},{match:/^@(?\u003ctarget>everyone|here)\\b/,render:({target},key)=>__snippet_mention_i8165v(`@${target}`,key)},{match:/^\\[(?\u003clabel>(?:\\[[^\\]]*\\]|[^[\\]])+)\\]\\(\\s*\u003c?(?\u003curl>https?:\\/\\/[^\\s\u003c>]+?)>?\\s*\\)/,render:({label,url},key)=>__snippet_externalLink_i8165v(url,__snippet_parseInline_i8165v(label),key)},{match:/^\u003c(?\u003curl>https?:\\/\\/[^\\s>]+)>/,render:({url},key)=>__snippet_externalLink_i8165v(url,url,key)},{match:/^(?\u003curl>https?:\\/\\/[^\\s\u003c]+[^\\s\"'),.:;\u003c\\]])/,render:({url},key)=>__snippet_externalLink_i8165v(url,url,key)},{match:/^\\*\\*\\*(?\u003ctext>[\\s\\S]+?)\\*\\*\\*(?!\\*)/,render:({text},key)=>_jsx(`strong`,{style:__snippet_bold_i8165v,children:_jsx(`em`,{children:__snippet_parseInline_i8165v(text)})},key)},{match:/^\\*\\*(?\u003ctext>[\\s\\S]+?)\\*\\*(?!\\*)/,render:({text},key)=>_jsx(`strong`,{style:__snippet_bold_i8165v,children:__snippet_parseInline_i8165v(text)},key)},{match:/^__(?\u003ctext>[\\s\\S]+?)__(?!_)/,render:({text},key)=>_jsx(`u`,{children:__snippet_parseInline_i8165v(text)},key)},{match:/^\\*(?!\\s)(?\u003ctext>[\\s\\S]*?[^\\s\\\\])\\*(?!\\*)/,render:({text},key)=>_jsx(`em`,{children:__snippet_parseInline_i8165v(text)},key)},{match:/^_(?!\\s)(?\u003ctext>[\\s\\S]*?[^\\s\\\\])_(?![\\dA-Za-z])/,render:({text},key)=>_jsx(`em`,{children:__snippet_parseInline_i8165v(text)},key)},{match:/^~~(?\u003ctext>[\\s\\S]+?)~~/,render:({text},key)=>_jsx(`s`,{children:__snippet_parseInline_i8165v(text)},key)},{match:/^\\|\\|(?\u003ctext>[\\s\\S]+?)\\|\\|/,render:({text},key)=>__snippet_spoiler_i8165v(__snippet_parseInline_i8165v(text),key)},{match:/^:(?\u003cname>[a-z0-9_+-]+):/,render:({name})=>__snippet_EMOJIS_i8165v[name]??`:${name}:`}];const __snippet_RULE_START_i8165v=/[\\\\`\u003c@[*_~|:]|https?:\\/\\//;function __snippet_parseInline_i8165v(text){const nodes=[];let buffer=``;let rest=text;while(rest.length>0){let matched=false;for(const rule of __snippet_INLINE_RULES_i8165v){const match=rule.match.exec(rest);if(!match)continue;const node=rule.render(match.groups??{},nodes.length);if(typeof node===`string`){buffer+=node}else{if(buffer)nodes.push(buffer);buffer=``;nodes.push(node)}rest=rest.slice(match[0].length);matched=true;break}if(matched)continue;const next=rest.slice(1).search(__snippet_RULE_START_i8165v);const end=next===-1?rest.length:next+1;buffer+=rest.slice(0,end);rest=rest.slice(end)}if(buffer)nodes.push(buffer);return nodes}const __snippet_HEADING_i8165v=/^(?\u003chashes>#{1,3}) +(?\u003ctext>\\S.*)$/;const __snippet_SUBTEXT_i8165v=/^-# +(?\u003ctext>\\S.*)$/;const __snippet_LIST_ITEM_i8165v=/^(?\u003cindent> *)(?:[*-]|(?\u003cnumber>\\d{1,9})\\.) +(?\u003ctext>\\S.*)$/;const __snippet_QUOTE_i8165v=/^> (?\u003ctext>.*)$/;const __snippet_CODE_FENCE_i8165v=/^```(?\u003crest>.*)$/;function __snippet_parseBlocks_i8165v(source){const blocks=[];const lines=source.split(`\n`);for(let index=0;index\u003clines.length;index++){const line=lines[index];const fence=__snippet_CODE_FENCE_i8165v.exec(line)?.groups;if(fence\u0026\u0026fence.rest.includes(\"```\")){blocks.push({type:`code`,code:fence.rest.slice(0,fence.rest.indexOf(\"```\"))});continue}if(fence){const end=lines.findIndex((current,cursor)=>cursor>index\u0026\u0026current.includes(\"```\"));if(end!==-1){const language=/^\\w*$/.test(fence.rest)?fence.rest:``;const code=[...language===fence.rest?[]:[fence.rest],...lines.slice(index+1,end)];const last=lines[end].slice(0,lines[end].indexOf(\"```\"));if(last)code.push(last);blocks.push({type:`code`,code:code.join(`\n`)});index=end;continue}}if(line.startsWith(`>>> `)){blocks.push({type:`quote`,lines:[line.slice(4),...lines.slice(index+1)]});break}const quote=__snippet_QUOTE_i8165v.exec(line)?.groups;if(quote){const last=blocks.at(-1);if(last?.type===`quote`)last.lines.push(quote.text);else blocks.push({type:`quote`,lines:[quote.text]});continue}const heading=__snippet_HEADING_i8165v.exec(line)?.groups;if(heading){blocks.push({type:`heading`,level:heading.hashes.length,text:heading.text});continue}const subtext=__snippet_SUBTEXT_i8165v.exec(line)?.groups;if(subtext){blocks.push({type:`subtext`,text:subtext.text});continue}const item=__snippet_LIST_ITEM_i8165v.exec(line)?.groups;if(item){const ordered=item.number!==undefined;const depth=Math.min(Math.floor(item.indent.length/2),2);const last=blocks.at(-1);if(last?.type===`list`\u0026\u0026(last.ordered===ordered||depth>0)){last.items.push({depth,text:item.text})}else{blocks.push({type:`list`,ordered,start:ordered?Number(item.number):1,items:[{depth,text:item.text}]})}continue}const last=blocks.at(-1);if(last?.type===`text`)last.lines.push(line);else blocks.push({type:`text`,lines:[line]})}return blocks}const __snippet_HEADING_SIZES_i8165v={1:22,2:18,3:15};function __snippet_renderBlocks_i8165v(blocks){return blocks.map((block,index)=>{switch(block.type){case`code`:return _jsx(`pre`,{style:{margin:`4px 0`,padding:8,borderRadius:4,border:`1px solid ${__snippet_COLORS_i8165v.input}`,background:__snippet_COLORS_i8165v.container,fontFamily:__snippet_MONO_i8165v,fontSize:`0.85em`,lineHeight:1.3,whiteSpace:`pre`,overflowX:`auto`,color:__snippet_COLORS_i8165v.text},children:block.code},index);case`heading`:return _jsx(`div`,{style:{margin:index===0?`0 0 4px`:`8px 0 4px`,fontSize:__snippet_HEADING_SIZES_i8165v[block.level],fontWeight:700,lineHeight:1.375,color:__snippet_COLORS_i8165v.heading},children:__snippet_parseInline_i8165v(block.text)},index);case`subtext`:return _jsx(`div`,{style:{fontSize:12,lineHeight:1.3,color:__snippet_COLORS_i8165v.muted},children:__snippet_parseInline_i8165v(block.text)},index);case`quote`:return _jsxs(`div`,{style:{display:`flex`,gap:8},children:[_jsx(`div`,{style:{width:4,flexShrink:0,borderRadius:4,background:`#4e5058`}}),_jsx(`div`,{style:{minWidth:0},children:__snippet_renderBlocks_i8165v(__snippet_parseBlocks_i8165v(block.lines.join(`\n`)))})]},index);case`list`:{const items=block.items.map((item,itemIndex)=>_jsx(`li`,{style:{margin:`2px 0`,marginLeft:item.depth*20,padding:0},children:__snippet_parseInline_i8165v(item.text)},itemIndex));return block.ordered?_jsx(`ol`,{start:block.start,style:{margin:`4px 0`,paddingLeft:20,listStyleType:`decimal`},children:items},index):_jsx(`ul`,{style:{margin:`4px 0`,paddingLeft:20,listStyleType:`disc`},children:items},index)}default:return _jsx(`div`,{style:{whiteSpace:`pre-wrap`},children:__snippet_parseInline_i8165v(block.lines.join(`\n`))},index)}})}const __snippet_markdown_i8165v=(content,key)=>_jsx(`div`,{style:{overflowWrap:`anywhere`},children:__snippet_renderBlocks_i8165v(__snippet_parseBlocks_i8165v(content))},key);const __snippet_GALLERY_ROWS_i8165v={1:[1],2:[2],4:[2,2],5:[2,3],6:[3,3],7:[1,3,3],8:[2,3,3],9:[3,3,3],10:[1,3,3,3]};const __snippet_GALLERY_ROW_HEIGHT_i8165v={1:256,2:176,3:128};const __snippet_gallery_i8165v=urls=>{const frame={maxWidth:520,borderRadius:8,overflow:`hidden`,display:`grid`,gap:4};if(urls.length===1)return _jsx(`div`,{style:frame,children:__snippet_image_i8165v(urls[0],urls[0]?{}:{height:256})});if(urls.length===3){return _jsx(`div`,{style:{...frame,height:256,gridTemplateColumns:`1fr 1fr`,gridTemplateRows:`1fr 1fr`},children:urls.map((url,index)=>__snippet_image_i8165v(url,{gridRow:index===0?`span 2`:undefined},index))})}const rows=__snippet_GALLERY_ROWS_i8165v[urls.length]??[urls.length];const starts=rows.map((_,rowIndex)=>rows.slice(0,rowIndex).reduce((sum,columns)=>sum+columns,0));return _jsx(`div`,{style:frame,children:rows.map((columns,rowIndex)=>_jsx(`div`,{style:{display:`grid`,gap:4,height:__snippet_GALLERY_ROW_HEIGHT_i8165v[columns]??128,gridTemplateColumns:`repeat(${columns}, minmax(0, 1fr))`},children:urls.slice(starts[rowIndex],starts[rowIndex]+columns).map((url,index)=>__snippet_image_i8165v(url,{},index))},rowIndex))})};const __snippet_separator_i8165v=(divider=true,spacing=`small`)=>{const large=spacing===`large`;if(!divider)return _jsx(`div`,{style:{height:large?16:4}});return _jsx(`div`,{style:{height:1,margin:large?`8px 0`:0,background:__snippet_COLORS_i8165v.border}})};const __snippet_section_i8165v=(children,thumbnailUrl,accessory)=>_jsxs(`div`,{style:{display:`flex`,gap:12},children:[_jsx(`div`,{style:{display:`flex`,flexDirection:`column`,gap:8,minWidth:0,flex:1},children}),thumbnailUrl!==undefined?__snippet_image_i8165v(thumbnailUrl,{width:85,height:85,flexShrink:0,borderRadius:8}):accessory\u0026\u0026_jsx(`div`,{style:{display:`flex`,alignItems:`center`,flexShrink:0},children:accessory})]});const __snippet_containerStyle_i8165v=accentColor=>({maxWidth:600,display:`flex`,flexDirection:`column`,gap:8,padding:16,borderRadius:8,border:`1px solid ${__snippet_COLORS_i8165v.border}`,borderLeft:accentColor===undefined||accentColor===null?undefined:`4px solid ${__snippet_toCssColor_i8165v(accentColor)}`,background:__snippet_COLORS_i8165v.container});const __snippet_renderFields_i8165v=fields=>{let text=``;let previousInline=false;for(const field of fields){const inline=field.inline===true\u0026\u0026!field.value.includes(`\n`);const rendered=inline?`**${field.name.trim()}:** ${field.value}`:`**${field.name.trim()}**\\n${field.value}`;if(text)text+=inline\u0026\u0026previousInline?`\n`:`\n\n`;text+=rendered;previousInline=inline}return text};const DiscordCard=({accentColor,author,title,description,fields=[],thumbnailUrl,imageUrl,footer,timestamp,children})=>{const[thumbnail,picture]=__snippet_useImageUrls_i8165v([thumbnailUrl,imageUrl]);const header=[author\u0026\u0026`-# ${author.trim()}`,title\u0026\u0026`### ${title.trim()}`].filter(Boolean).join(`\n`);const footerText=[footer?.trim(),timestamp!==undefined\u0026\u0026timestamp!==null\u0026\u0026`\u003ct:${timestamp}:f>`].filter(Boolean).join(` · `);const top=[header,description?.trim()].filter(Boolean).join(`\n`);const texts=[top,fields.length>0?__snippet_renderFields_i8165v(fields):``].filter(Boolean).map((text,index)=>__snippet_markdown_i8165v(text,index));return _jsxs(`div`,{style:__snippet_containerStyle_i8165v(accentColor),children:[thumbnailUrl\u0026\u0026texts.length>0?__snippet_section_i8165v(texts,thumbnail):texts,imageUrl\u0026\u0026__snippet_gallery_i8165v([picture]),children,footerText\u0026\u0026__snippet_separator_i8165v(),footerText\u0026\u0026__snippet_markdown_i8165v(`-# ${footerText}`)]})};const __snippet_COLORS_i8165v={background:`#313338`,container:`#2b2d31`,input:`#1e1f22`,border:`#3f4147`,text:`#dbdee1`,heading:`#f2f3f5`,muted:`#949ba4`,link:`#437fe0`,blurple:`#5865f2`,brand:`#eba300`,danger:`#f23f42`};const __snippet_EMOJIS_i8165v={white_check_mark:`✅`,x:`❌`,warning:`⚠️`,information_source:`ℹ️`,tada:`🎉`,hourglass:`⌛`,tm:`™️`,no_entry:`⛔`,lock:`🔒`,unlock:`🔓`,bell:`🔔`,trophy:`🏆`,first_place:`🥇`,second_place:`🥈`,third_place:`🥉`,star:`⭐`,bar_chart:`📊`,ballot_box:`🗳️`,gift:`🎁`,wave:`👋`,eyes:`👀`,link:`🔗`,pushpin:`📌`,speech_balloon:`💬`,hammer:`🔨`,boot:`👢`,shield:`🛡️`,gear:`⚙️`,clock:`🕐`,calendar:`📅`,thumbsup:`👍`,thumbsdown:`👎`,heart:`❤️`,sparkles:`✨`};const __snippet_emojiNode_i8165v=emoji=>{const custom=/^\u003c(?\u003canimated>a?):(?\u003cname>\\w+):(?\u003cid>\\d+)>$/.exec(emoji)?.groups;if(custom){return _jsx(`img`,{alt:`:${custom.name}:`,src:`https://cdn.discordapp.com/emojis/${custom.id}.${custom.animated?`gif`:`webp`}?size=44`,style:{width:18,height:18,margin:0,objectFit:`contain`}})}const shortcode=/^:(?\u003cname>[a-z0-9_+-]+):$/.exec(emoji)?.groups;return _jsx(`span`,{style:{fontSize:16,lineHeight:1},children:shortcode?__snippet_EMOJIS_i8165v[shortcode.name]??emoji:emoji})};const __snippet_BUTTON_COLORS_i8165v={primary:__snippet_COLORS_i8165v.blurple,secondary:`#4e5058`,success:`#248046`,danger:`#da373c`,link:`#4e5058`};const __snippet_button_i8165v=({style=`secondary`,label,emoji,disabled=false})=>_jsxs(`span`,{style:{display:`inline-flex`,alignItems:`center`,justifyContent:`center`,gap:6,height:32,minWidth:60,maxWidth:`100%`,padding:`0 16px`,borderRadius:8,boxSizing:`border-box`,background:__snippet_BUTTON_COLORS_i8165v[style]??__snippet_BUTTON_COLORS_i8165v.secondary,color:`#fff`,fontSize:14,fontWeight:500,lineHeight:1,whiteSpace:`nowrap`,opacity:disabled?.5:1,cursor:disabled?`not-allowed`:`pointer`},children:[emoji\u0026\u0026__snippet_emojiNode_i8165v(emoji),label\u0026\u0026_jsx(`span`,{style:{overflow:`hidden`,textOverflow:`ellipsis`},children:label}),style===`link`\u0026\u0026_jsx(`svg`,{fill:`none`,height:`14`,stroke:`currentColor`,strokeLinecap:`round`,strokeLinejoin:`round`,strokeWidth:`2`,viewBox:`0 0 24 24`,width:`14`,children:_jsx(`path`,{d:`M15 3h6v6M10 14 21 3M18 13v6a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V8a2 2 0 0 1 2-2h6`})})]});const DiscordButton=props=>__snippet_button_i8165v(props);const DiscordActionRow=({children})=>_jsx(`div`,{style:{display:`flex`,flexWrap:`wrap`,gap:8},children});function _createMdxContent(props){const _components={a:`a`,code:`code`,p:`p`,pre:`pre`,span:`span`,tbody:`tbody`,td:`td`,th:`th`,thead:`thead`,tr:`tr`,..._provideComponents(),...props.components},{CodeBlock,Heading,Note,Table,_MdxComponentBoundary}=_components;if(!CodeBlock)_missingMdxReference(`CodeBlock`,true);if(!Heading)_missingMdxReference(`Heading`,true);if(!Note)_missingMdxReference(`Note`,true);if(!Table)_missingMdxReference(`Table`,true);if(!_MdxComponentBoundary)_missingMdxReference(`_MdxComponentBoundary`,true);return _jsxs(_Fragment,{children:[_jsx(Heading,{level:`2`,id:`command`,children:`Command`}),`\n`,_jsx(CodeBlock,{numberOfLines:`2`,language:`text`,children:_jsx(_components.pre,{className:`shiki shiki-themes github-light-default dark-plus`,style:{backgroundColor:`#ffffff`,\"--shiki-dark-bg\":`#0B0C0E`,color:`#1f2328`,\"--shiki-dark\":`#D4D4D4`},language:`text`,children:_jsxs(_components.code,{language:`text`,numberOfLines:`2`,children:[_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{children:`/poll create`})}),`\n`,_jsx(_components.span,{className:`line`,children:_jsx(_components.span,{})})]})})}),`\n`,_jsx(Heading,{level:`2`,id:`description`,children:`Description`}),`\n`,_jsx(Note,{children:_jsxs(_components.p,{children:[`You may need to enable this feature on the dashboard or with `,_jsx(_components.a,{href:`/commands/poll/admin-poll`,children:_jsx(_components.code,{children:`/poll admin enable`})}),`.`]})}),`\n`,_jsx(_components.p,{children:`Opens a modal to create a Poll. Fill in the fields and submit the modal to publish the poll. The Poll shows who created it.`}),`\n`,_jsx(_components.p,{children:`Polls can also be created on the Polls page of the dashboard.`}),`\n`,_jsx(Heading,{level:`2`,id:`permission`,children:`Permission`}),`\n`,_jsx(_components.p,{children:_jsx(_components.code,{children:`MANAGE_MESSAGES`})}),`\n`,_jsx(Heading,{level:`2`,id:`arguments`,children:`Arguments`}),`\n`,_jsx(_components.p,{children:`This command opens a modal instead of taking inline options:`}),`\n`,_jsxs(Table,{children:[_jsx(_components.thead,{children:_jsxs(_components.tr,{children:[_jsx(_components.th,{children:`Field`}),_jsx(_components.th,{children:`Description`}),_jsx(_components.th,{children:`Sample Data`})]})}),_jsxs(_components.tbody,{children:[_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Title`}),_jsx(_components.td,{children:`The Poll title, could be like a question. Min 5, max 200 characters.`}),_jsx(_components.td,{children:`Title of the Poll`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Duration`}),_jsx(_components.td,{children:`Duration of the Poll. Example: “1h” or “1d”. At most 1 year.`}),_jsx(_components.td,{\"data-numeric\":`true`,children:`1h`})]}),_jsxs(_components.tr,{children:[_jsx(_components.td,{children:`Answers`}),_jsx(_components.td,{children:`The possible answers to the Poll, one per line. Min 2, max 25 answers, max 80 characters per answer.`}),_jsx(_components.td,{children:`Answer 1\\\\nAnswer 2\\\\nAnswer 3`})]})]})]}),`\n`,_jsx(Heading,{level:`2`,id:`sample-response`,children:`Sample Response`}),`\n`,_jsx(_components.p,{children:`The command opens this modal:`}),`\n`,_jsx(_MdxComponentBoundary,{name:`DiscordModal`,children:_jsx(DiscordModal,{title:`Create Poll`,fields:[{label:`Title`,placeholder:`Title of the Poll`},{label:`Duration`,placeholder:`Duration of the Poll. Example: \"1h\" or \"1d\"`},{label:`Answers`,placeholder:`Answers for the Poll. One Answer per Line. Max 25 Answers. Max 80 Characters per Answer.`,paragraph:true}]})}),`\n`,_jsx(_components.p,{children:`When you submit it, the bot posts the poll in the channel. Members vote with the buttons:`}),`\n`,_jsx(_MdxComponentBoundary,{name:`DiscordMessage`,children:_jsx(DiscordMessage,{children:_jsx(_MdxComponentBoundary,{name:`DiscordCard`,children:_jsx(DiscordCard,{accentColor:3318440,author:`Poll by \u003c@HerrTxbias>`,title:`Poll: Title of the Poll`,description:`Click on the corresponding button to vote.\n\n🇦 Answer 1 · **0%**\n🇧 Answer 2 · **0%**\n🇨 Answer 3 · **0%**`,footer:`Ends \u003ct:1793053620:f> (\u003ct:1793053620:R>)`,children:_jsx(_MdxComponentBoundary,{name:`DiscordActionRow`,children:_jsxs(DiscordActionRow,{children:[_jsx(_MdxComponentBoundary,{name:`DiscordButton`,children:_jsx(DiscordButton,{emoji:`🇦`,label:`Answer 1`})}),_jsx(_MdxComponentBoundary,{name:`DiscordButton`,children:_jsx(DiscordButton,{emoji:`🇧`,label:`Answer 2`})}),_jsx(_MdxComponentBoundary,{name:`DiscordButton`,children:_jsx(DiscordButton,{emoji:`🇨`,label:`Answer 3`})})]})})})})})}),`\n`,_jsx(_components.p,{children:`Then it confirms to you:`}),`\n`,_jsx(_MdxComponentBoundary,{name:`DiscordMessage`,children:_jsx(DiscordMessage,{command:`/poll create`,user:`HerrTxbias`,ephemeral:true,content:`Poll created!`})})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{DiscordModal,__snippet_AVATAR_SIZE_i8165v,__snippet_CONTENT_GAP_i8165v,__snippet_FONT_i8165v,__snippet_appIcon_i8165v,__snippet_eyeIcon_i8165v,DiscordMessage,__snippet_MONO_i8165v,__snippet_teamRequest_i8165v,__snippet_loadTeam_i8165v,__snippet_avatarName_i8165v,__snippet_useImageUrls_i8165v,__snippet_image_i8165v,__snippet_toCssColor_i8165v,__snippet_TIMESTAMP_FORMATS_i8165v,__snippet_RELATIVE_UNITS_i8165v,__snippet_SAMPLE_NOW_i8165v,__snippet_renderTimestamp_i8165v,__snippet_mention_i8165v,__snippet_mentionName_i8165v,__snippet_externalLink_i8165v,__snippet_spoiler_i8165v,__snippet_bold_i8165v,__snippet_INLINE_RULES_i8165v,__snippet_RULE_START_i8165v,__snippet_parseInline_i8165v,__snippet_HEADING_i8165v,__snippet_SUBTEXT_i8165v,__snippet_LIST_ITEM_i8165v,__snippet_QUOTE_i8165v,__snippet_CODE_FENCE_i8165v,__snippet_parseBlocks_i8165v,__snippet_HEADING_SIZES_i8165v,__snippet_renderBlocks_i8165v,__snippet_markdown_i8165v,__snippet_GALLERY_ROWS_i8165v,__snippet_GALLERY_ROW_HEIGHT_i8165v,__snippet_gallery_i8165v,__snippet_separator_i8165v,__snippet_section_i8165v,__snippet_containerStyle_i8165v,__snippet_renderFields_i8165v,DiscordCard,__snippet_COLORS_i8165v,__snippet_EMOJIS_i8165v,__snippet_emojiNode_i8165v,__snippet_BUTTON_COLORS_i8165v,__snippet_button_i8165v,DiscordButton,DiscordActionRow,default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Create Poll","description":null,"href":"/commands/poll/create-poll"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[148,8066,")=>null;const __snippet_AVATAR_SIZE_i8165v=undefined;const __snippet_CONTENT_GAP_i8165v=undefined;const __snippet_FONT_i8165v=undefined;const __snippet_appIcon_i8165v=()=>null;const __snippet_eyeIcon_i8165v=()=>null;const DiscordMessage=()=>null;const __snippet_MONO_i8165v=undefined;const __snippet_teamRequest_i8165v=undefined;const __snippet_loadTeam_i8165v=()=>null;const __snippet_avatarName_i8165v=()=>null;const __snippet_useImageUrls_i8165v=()=>null;const __snippet_image_i8165v=()=>null;const __snippet_toCssColor_i8165v=()=>null;c"],[8106,23964,"undefined;const __snippet_RELATIVE_UNITS_i8165v=undefined;const __snippet_SAMPLE_NOW_i8165v=undefined;const __snippet_renderTimestamp_i8165v=()=>null;const __snippet_mention_i8165v=()=>null;const __snippet_mentionName_i8165v=()=>null;const __snippet_externalLink_i8165v=()=>null;const __snippet_spoiler_i8165v=()=>null;const __snippet_bold_i8165v=undefined;const __snippet_INLINE_RULES_i8165v=undefined;const __snippet_RULE_START_i8165v=undefined;const __snippet_parseInline_i8165v=()=>null;const __snippet_HEADING_i8165v=undefined;const __snippet_SUBTEXT_i8165v=undefined;const __snippet_LIST_ITEM_i8165v=undefined;const __snippet_QUOTE_i8165v=undefined;const __snippet_CODE_FENCE_i8165v=undefined;const __snippet_parseBlocks_i8165v=()=>null;const __snippet_HEADING_SIZES_i8165v=undefined;const __snippet_renderBlocks_i8165v=()=>null;const __snippet_markdown_i8165v=()=>null;const __snippet_GALLERY_ROWS_i8165v=undefined;const __snippet_GALLERY_ROW_HEIGHT_i8165v=undefined;const __snippet_gallery_i8165v=()=>null;const __snippet_separator_i8165v=()=>null;const __snippet_section_i8165v=()=>null;const __snippet_containerStyle_i8165v=()=>null;const __snippet_renderFields_i8165v=()=>null;const DiscordCard=()=>null;const __snippet_COLORS_i8165v=undefined;const __snippet_EMOJIS_i8165v=undefined;const __snippet_emojiNode_i8165v=()=>null;const __snippet_BUTTON_COLORS_i8165v=undefined;const __snippet_button_i8165v=()=>null;const DiscordButton=()=>null;const DiscordActionRow=()=>null;function _create"]]},"mdxExtracts":{"tableOfContents":[{"title":"Command","slug":"command","depth":2,"children":[]},{"title":"Description","slug":"description","depth":2,"children":[]},{"title":"Permission","slug":"permission","depth":2,"children":[]},{"title":"Arguments","slug":"arguments","depth":2,"children":[]},{"title":"Sample Response","slug":"sample-response","depth":2,"children":[]}],"codeExamples":{}},"jsLinks":[],"subdomain":"utilbot","siteName":"Utilbot Docs","title":"Create Poll - Utilbot Docs","navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-10-30T23:26:17.529Z","originalFileLocation":"commands/poll/create-poll.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"application-name\" content=\"Utilbot Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/utilbot/NlNyglL_riO9qC53/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/utilbot/NlNyglL_riO9qC53/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/utilbot/NlNyglL_riO9qC53/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/utilbot/NlNyglL_riO9qC53/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/utilbot/NlNyglL_riO9qC53/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/utilbot/NlNyglL_riO9qC53/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/utilbot/NlNyglL_riO9qC53/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/utilbot/NlNyglL_riO9qC53/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/utilbot/NlNyglL_riO9qC53/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Create Poll - Utilbot Docs\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Utilbot Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.utilbot.co/commands/poll/create-poll\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://utilbot.mintlify.site/_mintlify/api/og/v2?division=Poll\u0026amp;title=Create+Poll\u0026amp;theme=a27c515711b50ed89b5c780a\u0026amp;signature=c94d3fdeb41939ba0b84e6b02eb0354e6c56f16d3303a1e255c4468e27ea3251\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Create Poll - Utilbot Docs\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://utilbot.mintlify.site/_mintlify/api/og/v2?division=Poll\u0026amp;title=Create+Poll\u0026amp;theme=a27c515711b50ed89b5c780a\u0026amp;signature=c94d3fdeb41939ba0b84e6b02eb0354e6c56f16d3303a1e255c4468e27ea3251\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/utilbot/NlNyglL_riO9qC53/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Utilbot Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#EBA300\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.utilbot.co/commands/poll/create-poll\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/commands/poll/create-poll.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.utilbot.co/#organization\",\"name\":\"Utilbot Docs\",\"url\":\"https://docs.utilbot.co\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://mintcdn.com/utilbot/f0zEIJ2Ze9KTu1aK/logo/utilbot.png?fit=max\u0026auto=format\u0026n=f0zEIJ2Ze9KTu1aK\u0026q=85\u0026s=fa2882c082edaffb0da7731f2c813989\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.utilbot.co#website\",\"name\":\"Utilbot Docs\",\"url\":\"https://docs.utilbot.co\",\"publisher\":{\"@id\":\"https://docs.utilbot.co/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.utilbot.co/commands/poll/create-poll#webpage\",\"url\":\"https://docs.utilbot.co/commands/poll/create-poll\",\"name\":\"Create Poll\",\"dateModified\":\"2026-10-30T23:26:17.529Z\",\"isPartOf\":{\"@id\":\"https://docs.utilbot.co#website\"},\"breadcrumb\":{\"@id\":\"https://docs.utilbot.co/commands/poll/create-poll#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.utilbot.co/commands/poll/create-poll#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Utilbot Docs\",\"item\":\"https://docs.utilbot.co\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Create Poll\",\"item\":\"https://docs.utilbot.co/commands/poll/create-poll\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.utilbot.co/commands/poll/create-poll#article\",\"headline\":\"Create Poll\",\"name\":\"Create Poll\",\"url\":\"https://docs.utilbot.co/commands/poll/create-poll\",\"mainEntityOfPage\":{\"@id\":\"https://docs.utilbot.co/commands/poll/create-poll#webpage\"},\"dateModified\":\"2026-10-30T23:26:17.529Z\",\"publisher\":{\"@id\":\"https://docs.utilbot.co/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.utilbot.co#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Utilbot Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Utilbot Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/commands/poll/create-poll.md","siteName":"Utilbot Docs","nav":{"global":{"anchors":[{"anchor":"Website","icon":"globe","href":"https://utilbot.co"},{"anchor":"Discord Server","icon":"discord","href":"https://utilbot.co/discord"},{"anchor":"Canary Bot","icon":"flask","href":"https://canary.utilbot.co"}]},"tabs":[{"tab":"Home","icon":"house","pages":[{"title":"Home","href":""}]},{"tab":"Guides","icon":"book-open","pages":[{"title":"Guides","href":"/general/intro"}]},{"tab":"Commands","icon":"terminal","pages":[{"title":"Command Overview","href":"/commands/command-overview"},{"group":"General","pages":[{"title":"Help","href":"/commands/general/help"},{"title":"Info","href":"/commands/general/info"},{"title":"User","href":"/commands/general/user"},{"title":"Stats","href":"/commands/general/stats"},{"title":"Show User Info","description":null,"href":"/commands/general/show-user-info"}]},{"group":"Poll","pages":[{"title":"Create Poll","href":"/commands/poll/create-poll"},{"title":"Extend Poll","description":null,"href":"/commands/poll/extend-poll"},{"title":"End Poll","href":"/commands/poll/end-poll"},{"title":"Delete Poll","href":"/commands/poll/delete-poll"},{"title":"Poll Admin","href":"/commands/poll/admin-poll"}]},{"group":"Rank","pages":[{"title":"Rank","href":"/commands/rank/rank"},{"title":"Leaderboard","href":"/commands/rank/leaderboard"}]},{"group":"Giveaways","pages":[{"title":"Giveaway","href":"/commands/giveaways/giveaway"}]},{"group":"Fun","pages":[{"title":"Starboard","href":"/commands/fun/starboard"}]},{"group":"Misc","pages":[{"title":"Quote","href":"/commands/misc/quote"},{"title":"Tag","href":"/commands/misc/tag"},{"title":"Tag Management","href":"/commands/misc/tag-management"},{"title":"Developer","href":"/commands/misc/developer"}]},{"group":"Moderators","pages":[{"title":"Clear","href":"/commands/moderators/clear"},{"title":"Clear Threads","href":"/commands/moderators/clear-threads"},{"title":"Kick","href":"/commands/moderators/kick"},{"title":"Ban","href":"/commands/moderators/ban"},{"title":"Warn","href":"/commands/moderators/warn"},{"title":"Warn History","href":"/commands/moderators/warn-history"},{"title":"Lift Warn","href":"/commands/moderators/lift-warn"},{"title":"Unban","href":"/commands/moderators/unban"},{"title":"Restore Roles","href":"/commands/moderators/restore-roles"}]},{"group":"Admins","pages":[{"title":"Warns","href":"/commands/admins/warns"},{"title":"Rules","href":"/commands/admins/rules"},{"title":"Support","href":"/commands/admins/support"},{"title":"Log","href":"/commands/admins/log"},{"title":"Ranks","href":"/commands/admins/ranks"},{"title":"Channel Creator","href":"/commands/admins/channel-creator"},{"title":"Role Selection","href":"/commands/admins/role-selection"},{"title":"Welcome","href":"/commands/admins/welcome"},{"title":"Word Filter","href":"/commands/admins/word-filter"},{"title":"Soundboard","href":"/commands/admins/soundboard"},{"title":"Quoting","href":"/commands/admins/quoting"}]}]},{"tab":"Changelog","icon":"clock-rotate-left","pages":[{"title":"Changelog","href":"/changelog"}]}]},"basePath":"","title":"Create Poll - Utilbot Docs","buildId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","deploymentId":"dpl_Fyv1NbzwP68g2bEH2Roy98uY1zmE","dynamics":[],"chunks":[]}