complexpoll

Privateunrated

Content

31 lines
{=(COMMENT):***Deletes command invocation.***}
{delete}

{=(COMMENT):***Limits use to Admins and Moderators.***}

{=(COMMENT):***Stores the user's avatar in icon, and their username in author.***}
{=(icon):{user(avatar)}}
{=(author):{user}}

{=(COMMENT):***Dynamic timestamps at end of embed.***}
{embed(timestamp):now}
{=(time):{strf:%FT%T}.000Z}

{=(COMMENT):***Sets the embed color to the user's color.***}
{embed(color):{user(color)}}

{=(COMMENT):***Parses arguments into two variables.***}
{=(question):{args(1):-}}
{=(answers):{args(2):-}}

{=(COMMENT):***Stores all emotes in a variable.***}
{=(emote):<:_1:772951481657327626> <:_2:772951472965943298> <:_3:772951465026781204> <:_4:772951455783059466> <:_5:772951448442109983> <:_6:772951440582377493>}

{=(COMMENT):***Populates the embed with reactions.***}
{=(arglength):1}
{=(arglength):{if({answers(2):,}!={answers}):2|{arglength}}}
{=(arglength):{if({answers(3):,}!={answers}):3|{arglength}}}
{=(arglength):{if({answers(4):,}!={answers}):4|{arglength}}}
{=(arglength):{if({answers(5):,}!={answers}):5|{arglength}}}
{=(arglength):{if({answers(6):,}!={answers}):6|{arglength}}}
{react:{emote(+{arglength})}}

Embed

1 line
{"color": 5198940, "title": "{question}", "author": {"name": "{author}", "icon_url": "{icon}"}, "description": "{emote(1)}{answers(1):,}\n{if({answers(2):,}!={answers}):{emote(2)}{answers(2):,}}\n{if({answers(3):,}!={answers}):{emote(3)}{answers(3):,}}\n{if({answers(4):,}!={answers}):{emote(4)}{answers(4):,}}\n{if({answers(5):,}!={answers}):{emote(5)}{answers(5):,}}\n{if({answers(6):,}!={answers}):{emote(6)}{answers(6):,}}\n"}
Raw JSON
{
  "id": 443911,
  "created_at": "2020-11-22T17:16:03.000Z",
  "tag_name": "complexpoll",
  "nsfw": false,
  "owner_id": "388907478009511936",
  "uses": 20,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "620035425259749377",
  "sharer": "388907478009511936",
  "content": "{=(COMMENT):***Deletes command invocation.***}\n{delete}\n\n{=(COMMENT):***Limits use to Admins and Moderators.***}\n\n{=(COMMENT):***Stores the user's avatar in icon, and their username in author.***}\n{=(icon):{user(avatar)}}\n{=(author):{user}}\n\n{=(COMMENT):***Dynamic timestamps at end of embed.***}\n{embed(timestamp):now}\n{=(time):{strf:%FT%T}.000Z}\n\n{=(COMMENT):***Sets the embed color to the user's color.***}\n{embed(color):{user(color)}}\n\n{=(COMMENT):***Parses arguments into two variables.***}\n{=(question):{args(1):-}}\n{=(answers):{args(2):-}}\n\n{=(COMMENT):***Stores all emotes in a variable.***}\n{=(emote):<:_1:772951481657327626> <:_2:772951472965943298> <:_3:772951465026781204> <:_4:772951455783059466> <:_5:772951448442109983> <:_6:772951440582377493>}\n\n{=(COMMENT):***Populates the embed with reactions.***}\n{=(arglength):1}\n{=(arglength):{if({answers(2):,}!={answers}):2|{arglength}}}\n{=(arglength):{if({answers(3):,}!={answers}):3|{arglength}}}\n{=(arglength):{if({answers(4):,}!={answers}):4|{arglength}}}\n{=(arglength):{if({answers(5):,}!={answers}):5|{arglength}}}\n{=(arglength):{if({answers(6):,}!={answers}):6|{arglength}}}\n{react:{emote(+{arglength})}}",
  "embed": "{\"color\": 5198940, \"title\": \"{question}\", \"author\": {\"name\": \"{author}\", \"icon_url\": \"{icon}\"}, \"description\": \"{emote(1)}{answers(1):,}\\n{if({answers(2):,}!={answers}):{emote(2)}{answers(2):,}}\\n{if({answers(3):,}!={answers}):{emote(3)}{answers(3):,}}\\n{if({answers(4):,}!={answers}):{emote(4)}{answers(4):,}}\\n{if({answers(5):,}!={answers}):{emote(5)}{answers(5):,}}\\n{if({answers(6):,}!={answers}):{emote(6)}{answers(6):,}}\\n\"}",
  "last_fetched": "2026-10-20T23:14:42.921Z"
}