embedpoll
Privateunrated
Content
24 lines{delete}{=():}
{=(prefix):!}
{=(tagname):embedpoll}
{embed(color):#{#:ff82ab~ff7373~11f5c8~1149f5~6811f5~745e97~c35eea~ffc0cb~1f7f1f~bf1f1f~93F8D0}}
{=(comment):This first section gets the initial count of commas in the args, to then use as the basis for the following section. since loops aren't possible, only counts up to 10}
{=(commacount):{if({list(10):{args}}!=):10|{if({list(9):{args}}!=):9|{if({list(8):{args}}!=):8|{if({list(7):{args}}!=):7|{if({list(6):{args}}!=):6|{if({list(5):{args}}!=):5|{if({list(4):{args}}!=):4|{if({list(3):{args}}!=):3|{if({list(2):{args}}!=):2|{if({list(1):{args}}!=):1|0}}}}}}}}}}}
{=(offset):{m:trunc(1+{commacount})} {m:trunc(2+{commacount})} {m:trunc(3+{commacount})} {m:trunc(4+{commacount})} {m:trunc(5+{commacount})}}
{=(comment):This section counts the commas in the args after the pipes are replaced with commas, to count the number of args used. While you could just write if statements checking which args(#):| was equal to args, that method can break if the args in the if statement parameters are too long, or if vertical pipes are present in args used in any/all block parameters. List blocks in parameters solve that, but are more finicky to use}
{=(pipereplace):{replace(|,,):{args}}}
{=(arglen):{if({list({offset(5)}):{pipereplace}}!=):5|{if({list({offset(4)}):{pipereplace}}!=):4|{if({list({offset(3)}):{pipereplace}}!=):3|{if({list({offset(2)}):{pipereplace}}!=):2|1}}}}}
{=(emojis):1️⃣ 2️⃣ 3️⃣ 4️⃣ 5️⃣}
{=(error):You must have at least 2 poll options provided with the following format: `{prefix}{tagname} Question|Answer 1|Answer 2|Answer 3|Answer 4|Answer 5`}
{{if({arglen}!=1):react:{emojis(+{arglen})}}}
{{if({arglen}==1):c:echo {channel(id)} {error}}}
{=(desc):1️⃣ - {args(2):|}
2️⃣ - {args(3):|}
3️⃣ - {args(4):|}
4️⃣ - {args(5):|}
5️⃣ - {args(6):|}}Embed
1 line{"color": 5198940, "image": {"url": "{if({arglen}==1):error}"}, "title": "{args(1):|}", "author": {"name": "{user}", "icon_url": "{user(avatar)}}"}, "description": "{desc(+{arglen}):}"}Raw JSON
{
"id": 407935,
"created_at": "2020-11-03T05:59:04.000Z",
"tag_name": "embedpoll",
"nsfw": false,
"owner_id": "329028412632989697",
"uses": 0,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "773052012219596800",
"sharer": "329028412632989697",
"content": "{delete}{=():}\n{=(prefix):!}\n{=(tagname):embedpoll}\n{embed(color):#{#:ff82ab~ff7373~11f5c8~1149f5~6811f5~745e97~c35eea~ffc0cb~1f7f1f~bf1f1f~93F8D0}}\n\n{=(comment):This first section gets the initial count of commas in the args, to then use as the basis for the following section. since loops aren't possible, only counts up to 10}\n{=(commacount):{if({list(10):{args}}!=):10|{if({list(9):{args}}!=):9|{if({list(8):{args}}!=):8|{if({list(7):{args}}!=):7|{if({list(6):{args}}!=):6|{if({list(5):{args}}!=):5|{if({list(4):{args}}!=):4|{if({list(3):{args}}!=):3|{if({list(2):{args}}!=):2|{if({list(1):{args}}!=):1|0}}}}}}}}}}}\n\n{=(offset):{m:trunc(1+{commacount})} {m:trunc(2+{commacount})} {m:trunc(3+{commacount})} {m:trunc(4+{commacount})} {m:trunc(5+{commacount})}}\n\n{=(comment):This section counts the commas in the args after the pipes are replaced with commas, to count the number of args used. While you could just write if statements checking which args(#):| was equal to args, that method can break if the args in the if statement parameters are too long, or if vertical pipes are present in args used in any/all block parameters. List blocks in parameters solve that, but are more finicky to use}\n{=(pipereplace):{replace(|,,):{args}}}\n{=(arglen):{if({list({offset(5)}):{pipereplace}}!=):5|{if({list({offset(4)}):{pipereplace}}!=):4|{if({list({offset(3)}):{pipereplace}}!=):3|{if({list({offset(2)}):{pipereplace}}!=):2|1}}}}}\n\n{=(emojis):1️⃣ 2️⃣ 3️⃣ 4️⃣ 5️⃣}\n{=(error):You must have at least 2 poll options provided with the following format: `{prefix}{tagname} Question|Answer 1|Answer 2|Answer 3|Answer 4|Answer 5`}\n{{if({arglen}!=1):react:{emojis(+{arglen})}}}\n{{if({arglen}==1):c:echo {channel(id)} {error}}}\n\n{=(desc):1️⃣ - {args(2):|}\n2️⃣ - {args(3):|}\n3️⃣ - {args(4):|}\n4️⃣ - {args(5):|}\n5️⃣ - {args(6):|}}",
"embed": "{\"color\": 5198940, \"image\": {\"url\": \"{if({arglen}==1):error}\"}, \"title\": \"{args(1):|}\", \"author\": {\"name\": \"{user}\", \"icon_url\": \"{user(avatar)}}\"}, \"description\": \"{desc(+{arglen}):}\"}",
"last_fetched": "2026-10-20T22:59:46.318Z"
}