complexpoll

Privateunrated

Content

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

{=(COMMENT):***Limits use to Admins and Moderators.***}
{require(You do not have permission to run this command):<@&768655746497511434>}

{=(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):<:one_:786705133065076746> <:two_:786705133014089738> <:three_:786705133261029436> <:four_:786705132498583564> <:five_:786705132934135858> <:six_:786705132997443604>}

{=(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, "image": {"url": "https://media.discordapp.net/attachments/785020280652300318/814768039093862441/unknown.png"}, "title": "SWAT 4 SEF COOP COMING SOON! Which server location fits you best?", "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": 490976,
  "created_at": "2020-12-18T17:34:14.000Z",
  "tag_name": "complexpoll",
  "nsfw": false,
  "owner_id": "272563498251321344",
  "uses": 16,
  "description": null,
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "720527950893678592",
  "sharer": "272563498251321344",
  "content": "{=(COMMENT):***Deletes command invocation.***}\n{delete}\n\n{=(COMMENT):***Limits use to Admins and Moderators.***}\n{require(You do not have permission to run this command):<@&768655746497511434>}\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):<:one_:786705133065076746> <:two_:786705133014089738> <:three_:786705133261029436> <:four_:786705132498583564> <:five_:786705132934135858> <:six_:786705132997443604>}\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, \"image\": {\"url\": \"https://media.discordapp.net/attachments/785020280652300318/814768039093862441/unknown.png\"}, \"title\": \"SWAT 4 SEF COOP COMING SOON! Which server location fits you best?\", \"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:32:43.089Z"
}