goal
Privateunrated
Content
67 lines{=(COMMENT):-----PARAMETERS TO EDIT-----These should be the only things you'd have to edit for the command to be customized to the needs of your server.}
{=(COMMENT):Your commands channel, where the command should be restricted to. Replace the channel ID with yours. If you do not wish your command to be restricted, you can remove the require block below completely.}
{=(COMMENT):The treshold at which the number of members should exceed the current goal, for the goal to pass onto the next "tier". Do not leave empty.}
{=(num.Threshold):1}
{=(COMMENT):The gap between each goal's "tier". So for instance, if 400/400 members has been reached, the next goal will be 400/your number. Do not leave empty.}
{=(num.NextTier):10}
{=(COMMENT):The URL of the Image Banner that will be displayed at the bottom of the command when the goal has been reached. Only allows links that end with an image extension, such as .png, .jpg or .gif.}
{=(msg.Image):https://i.imgur.com/7HBJs03.png}
{=(COMMENT):-----DON'T EDIT-----Nothing to edit anymore here. Only edit the code below if you know what you're doing. You nonetheless can still edit the message outputs at the bottom of the tag if you wish to.}
{=(COMMENT):Embed parameters. Displays the dynamic timestamp of the embed, and sets the embed's side color to the user's current color.}
{embed(timestamp):now}
{embed(color):{user(color)}}
{=(COMMENT):Just an alias of the number of human members on the server. To reuse later.}
{=(member.Count):{server(humans)}}
{=(COMMENT):Dividing the number of members by 100, truncatenating it, to then multiply its integer by 100, that will be used as the dynamic goal later in the code.}
{=(num.Integer):{m:trunc({m:trunc({member.Count}/100)}*100)}}
{=(COMMENT):The code below seems more difficult than what it actually does. It simply divides the Member Count by 100 and then grabs only the decimals, to know how much more members there are than the goal. (I just realized while typing this comment that I could just have used a math block that calculates dynamic.Goal - member.Count but it seems like my brain prefered to think difficult.)}
{=(num.PreDecimal):{m:{member.Count}/100}}
{=(num.Decimal):{num.PreDecimal(2):.}}
{=(COMMENT):"num.Threshold" here is the number of members before the goal gets pushed to its next tier in dynamic.Goal.
That means that if there are currently 111 members, the goal will now be 200 instead of 100.
It is to be able to get the message output that says it's been achieved for at least N members after the goal is reached.}
{=(num.Reached):{if({num.Decimal}>{num.Threshold}):true|false}}
{=(num.Remaining)}
{=(COMMENT):Dynamic Goal to display depending on the current Member Count. Defaults to 100 if the number of members is less than 100.}
{=(dynamic.Goal):{if({num.Integer}<1):100|{if({num.Reached}==true):{m:trunc({num.Integer}+{num.NextTier})}|{num.Integer}}}}
{=(COMMENT):Output Messages.}
{=(COMMENT):Members/Goal Message to display and call.}
{=(msg.Goal):**Goal:** {member.Count}/{dynamic.Goal}}
{=(COMMENT):Message to display conditionally when the goal has been reached or not.}
{=(msg.NotReached):**Not achieved yet!**
We need {m:trunc({dynamic.Goal}-{member.Count})} more members to reach this goal!}
{=(msg.Reached):**Achieved!**}
{=(COMMENT):Embed's Footer to call. Currently contains the server name to display.}
{=(msg.Footer):{server(name)}}
{=(msg.ServerIcon):{server(icon)}}
{=(COMMENT):Actual Outputs to call in the Embed's description field. Should be "msg.Goal" and "msg.Output".}
{=(msg.Output):{if({num.Reached}==false):{msg.Reached}|{msg.NotReached}}}
{=():}{=(msg.Banner):{if({num.Reached}==false):{msg.Image}}}
{=(COMMENT):Debug Outputs, just to troubleshoot the command before releasing it. You prefer not to touch it.}
{=(msg.Debug):__Debug:__
Current Member Count: {member.Count}
Num Integer: {num.Integer}
NumPreDecimal: {num.PreDecimal}
NumDecimal: {num.Decimal}
Is the Member Count superior than the threshold? (true/false) {num.Reached}
Dynamic Goal: {dynamic.Goal}}Embed
1 line{"color": 5198940, "image": {"url": "{msg.Banner}"}, "footer": {"text": "{msg.Footer}", "icon_url": "{msg.ServerIcon}"}, "description": "{msg.Goal}\n{msg.Output}"}Raw JSON
{
"id": 171144,
"created_at": "2022-04-26T10:36:00.432Z",
"tag_name": "goal",
"nsfw": false,
"owner_id": "626125124650663937",
"uses": 6,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "626128743651606529",
"sharer": "626125124650663937",
"content": "{=(COMMENT):-----PARAMETERS TO EDIT-----These should be the only things you'd have to edit for the command to be customized to the needs of your server.}\n\n{=(COMMENT):Your commands channel, where the command should be restricted to. Replace the channel ID with yours. If you do not wish your command to be restricted, you can remove the require block below completely.}\n\n\n{=(COMMENT):The treshold at which the number of members should exceed the current goal, for the goal to pass onto the next \"tier\". Do not leave empty.}\n{=(num.Threshold):1}\n{=(COMMENT):The gap between each goal's \"tier\". So for instance, if 400/400 members has been reached, the next goal will be 400/your number. Do not leave empty.}\n{=(num.NextTier):10}\n\n{=(COMMENT):The URL of the Image Banner that will be displayed at the bottom of the command when the goal has been reached. Only allows links that end with an image extension, such as .png, .jpg or .gif.}\n{=(msg.Image):https://i.imgur.com/7HBJs03.png}\n\n{=(COMMENT):-----DON'T EDIT-----Nothing to edit anymore here. Only edit the code below if you know what you're doing. You nonetheless can still edit the message outputs at the bottom of the tag if you wish to.}\n\n{=(COMMENT):Embed parameters. Displays the dynamic timestamp of the embed, and sets the embed's side color to the user's current color.}\n{embed(timestamp):now}\n{embed(color):{user(color)}}\n\n{=(COMMENT):Just an alias of the number of human members on the server. To reuse later.}\n{=(member.Count):{server(humans)}}\n\n{=(COMMENT):Dividing the number of members by 100, truncatenating it, to then multiply its integer by 100, that will be used as the dynamic goal later in the code.}\n{=(num.Integer):{m:trunc({m:trunc({member.Count}/100)}*100)}}\n\n{=(COMMENT):The code below seems more difficult than what it actually does. It simply divides the Member Count by 100 and then grabs only the decimals, to know how much more members there are than the goal. (I just realized while typing this comment that I could just have used a math block that calculates dynamic.Goal - member.Count but it seems like my brain prefered to think difficult.)}\n{=(num.PreDecimal):{m:{member.Count}/100}}\n{=(num.Decimal):{num.PreDecimal(2):.}}\n{=(COMMENT):\"num.Threshold\" here is the number of members before the goal gets pushed to its next tier in dynamic.Goal.\nThat means that if there are currently 111 members, the goal will now be 200 instead of 100.\nIt is to be able to get the message output that says it's been achieved for at least N members after the goal is reached.}\n{=(num.Reached):{if({num.Decimal}>{num.Threshold}):true|false}}\n\n{=(num.Remaining)}\n\n{=(COMMENT):Dynamic Goal to display depending on the current Member Count. Defaults to 100 if the number of members is less than 100.}\n{=(dynamic.Goal):{if({num.Integer}<1):100|{if({num.Reached}==true):{m:trunc({num.Integer}+{num.NextTier})}|{num.Integer}}}}\n\n{=(COMMENT):Output Messages.}\n{=(COMMENT):Members/Goal Message to display and call.}\n{=(msg.Goal):**Goal:** {member.Count}/{dynamic.Goal}}\n\n{=(COMMENT):Message to display conditionally when the goal has been reached or not.}\n{=(msg.NotReached):**Not achieved yet!**\nWe need {m:trunc({dynamic.Goal}-{member.Count})} more members to reach this goal!}\n{=(msg.Reached):**Achieved!**}\n\n{=(COMMENT):Embed's Footer to call. Currently contains the server name to display.}\n{=(msg.Footer):{server(name)}}\n{=(msg.ServerIcon):{server(icon)}}\n\n{=(COMMENT):Actual Outputs to call in the Embed's description field. Should be \"msg.Goal\" and \"msg.Output\".}\n{=(msg.Output):{if({num.Reached}==false):{msg.Reached}|{msg.NotReached}}}\n{=():}{=(msg.Banner):{if({num.Reached}==false):{msg.Image}}}\n\n\n{=(COMMENT):Debug Outputs, just to troubleshoot the command before releasing it. You prefer not to touch it.}\n{=(msg.Debug):__Debug:__\nCurrent Member Count: {member.Count}\nNum Integer: {num.Integer}\n\nNumPreDecimal: {num.PreDecimal}\nNumDecimal: {num.Decimal}\n\nIs the Member Count superior than the threshold? (true/false) {num.Reached}\n\nDynamic Goal: {dynamic.Goal}}",
"embed": "{\"color\": 5198940, \"image\": {\"url\": \"{msg.Banner}\"}, \"footer\": {\"text\": \"{msg.Footer}\", \"icon_url\": \"{msg.ServerIcon}\"}, \"description\": \"{msg.Goal}\\n{msg.Output}\"}",
"last_fetched": "2026-10-20T21:22:43.418Z"
}