goal
Privateunrated
Content
147 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.}
{require( ):337040974415003649}
{=(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. Do not put the threshold higher than the gap below. It is useful and cool because it allows you to "notice" the goal milestone by not switching to the next goal instantly but only after N amount of members more than the current goal. Set it to 1 if it should immediatly switch to the next goal upon reaching it.}
{=(num.Threshold):15}
{=(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):200}
{=(COMMENT):Number of bots in your server to *manually* substract from the amount of total members in your server, to get the actual number of humans in the server. The "server humans" block has been deprecated, so we now have to do it manually for it to be exact.
Make sure that you only put a number here. I'm guessing it should at least be "1" since you have Carl-bot.}
{=(bot.Count):3}
{=(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 in the footer, and sets the embed's side color to the user's current color. If you want to change it to a static hex code, make sure to include the "#" character before it. Example: #AA11CC}
{=(COMMENT):embed(timestamp):now}
{embed(color):{user(color)}}
{embed(color):#2f3136}
{=(COMMENT):Calculation of the amount of human members in your server.}
{=(totalMember.Count):{server(members)}}
{=(totalMember.Count):148}
{=(member.Count):{m:trunc(abs({totalMember.Count}-{bot.Count}))}}
{=(COMMENT):Number of times the goal has been reached, given the nextTier value.
It can be considered as a reached "Tier" as Marketing or whatever.}
{=(tierNumber):{m:trunc({member.Count}/{num.NextTier})}}
{=(reachedGoalToDisplay):{m:trunc({num.NextTier}*{tierNumber})}}
{=(num.PreviousGoal):{member.Count}/{reachedGoalToDisplay}}
{=(memberMinusReached):{m:trunc({member.Count}-{reachedGoalToDisplay})}}
{=(diffMinusThreshold):{m:trunc(abs({memberMinusReached}-{num.Threshold}))}}
{=(check.Reached2):{if({m:trunc({diffMinusThreshold})}<={num.Threshold}):true|false}}
{=(COMMENT):ALL ALONG IT WAS AS EASY AS THIS, AAAAAAAAAAAA}
{=(dynamicGoal):{m:trunc(({num.NextTier}*{tierNumber})+{num.NextTier})}}
{=(COMMENT):Absolute difference between the member count and the current goal before passing onto the next tier. In other words, it returns how many more or less members there are than the goal.}
{=(num.Remaining):{m:trunc(abs({reachedGoalToDisplay}-{member.Count}))}}
{=(thresholdCount):{m:trunc(abs({member.Count}-{num.NextTier}))}}
{=(COMMENT):Checks if the "exceed" of members is lower or higher than the threshold set at the top of the command. Returns true if the goal has been achieved and false if not.}
{=(check.Reached):{if({thresholdCount}<={num.Threshold}):true|false}}
{=(COMMENT):Actual number of members remaining before reaching the dynamic goal. This will be displayed in the "Not Achieved" message output.}
{=(num.MRemaining):{m:trunc(abs({dynamicGoal}-{member.Count}))}}
{=(COMMENT):Output Messages.}
{=(COMMENT):Members/Goal Message to display and call.}
{=(msg.Goal):{member.Count}/{dynamicGoal}}
{=(COMMENT):Message to display conditionally when the goal has been reached or not.}
{=(msg.NotReached):*Only {num.MRemaining} more members to reach our goal!*}
{=(msg.Reached):{num.PreviousGoal} Achieved! 🎉}
{=(msg.ServerIcon):{server(icon)}}
{=(hasBeenReached):{all({check.Reached}==true|{check.Reached2}==true):true|false}}
{=(COMMENT):Embed's Footer to call. Currently contains the previous reached to display.}
{=(msg.Footer):Let's keep going!}
{=(msg.Title):Member Goal: {msg.Goal}}
{=(msg.Title):Member Goal}
{=(msg.Name):{if({hasBeenReached}==false):{msg.Goal}}}
{=(COMMENT):Actual Outputs to call in the Embed's description field. Should be "msg.Goal" and "msg.Output".}
{=(msg.Output):{if({hasBeenReached}==true):{msg.Reached}|{msg.NotReached}}}
{=(msg.Banner):{if({hasBeenReached}==true):{msg.Image}}}
{=(COMMENT):Image generation and overlay part with Cloudinary}
{=(r):replace}
{=(cloudinary):https://res.cloudinary.com/demo/image/fetch/c_scale,w_0.51/c_fill,r_max/h_203,w_277,c_lpad,b_auto:predominant,g_north_west,x_18,y_17,r_10/l_fetch:aHR0cHM6Ly9pLmltZ3VyLmNvbS9MVUo5QUxwLnBuZw==/fl_layer_apply,g_north/l_text:Futura_24:Carl-bot%20Help,co_white,c_lfill,w_160/fl_layer_apply,g_north_west,x_100,y_20/l_text:Futura_21:149%252C341%20%252F%20150%252C000,co_white/e_shadow:40,y_1,co_rgb:000000/fl_layer_apply,g_south,y_65/l_one_pixel/e_colorize,co_rgb:312E66/h_20,w_205/fl_layer_apply,g_north_west,x_30,y_143,r_5/l_text:Futura_14_medium:91%25,co_white/fl_layer_apply,g_south,y_44,x_3/l_text:Futura_18:Goal%20Reached%21,co_white/e_shadow:40,y_1,co_rgb:000000/fl_layer_apply,g_south,y_8,x_3/l_text:Futura_15_light:Tier%20%233,co_white,a_-7/fl_layer_apply,g_north_east,x_7,y_65/u_one_pixel/h_203,w_277/e_colorize,co_rgb:556CBD/fl_layer_apply,c_fill,r_10/https://cdn.discordapp.com/icons/186980582863929345/a_553d7d9f750e57825694b3cc8c504cb5.png}
{=(clPrefix):https://res.cloudinary.com/demo/image/fetch}
{=(sIcon):https://cdn.discordapp.com/icons/186980582863929345/a_553d7d9f750e57825694b3cc8c504cb5.png}
{=(sIcon):{server(icon)}}
{=(sIcon):{sIcon(+-1):.}.png}
{=(comma):%252C}
{=(slash):%252F}
{=(preServ):{server}}
{=(preServ):Discord Cloud}
{=(COMMENT):Reads the server up until an emoji, as otherwise it breaks Cloudinary. Please avoid emojis in your server name for the image to generate.}
{=(preServ):{preServ(1):%F0}}
{=(serverName):{{r}(%2C,{comma}):{{r}(/,{slash}):{urlencode:{preServ}}}}}
{=(init):c_scale,w_0.51/c_fill,r_max/h_203,w_277,c_lpad,b_auto:predominant,g_north_west,x_18,y_17,r_10}
{=(mask):l_fetch:aHR0cHM6Ly9pLmltZ3VyLmNvbS9MVUo5QUxwLnBuZw==/fl_layer_apply,g_north}
{=(sName):l_text:Futura_24:{serverName},co_white,c_lfill,w_160/fl_layer_apply,g_north_west,x_100,y_20}
{=(COMMENT):Management of the Goal on the image}
{=(COMMENT):Adds a comma every 3 digits in the various goal elements to display. it makes sure to urlencode the comma and then to replace them with their double-encoded version, for Cloudinary to not break, again.}
{=(ordMemberCount):{{r}(%2C,{comma}):{urlencode:{{r}(st,):{{r}(nd,):{{r}(rd,):{{r}(th,):{ord:{member.Count}}}}}}}}}
{=(ordReachedGoal):{{r}(%2C,{comma}):{urlencode:{{r}(st,):{{r}(nd,):{{r}(rd,):{{r}(th,):{ord:{reachedGoalToDisplay}}}}}}}}}
{=(ordDynamicGoal):{{r}(%2C,{comma}):{urlencode:{{r}(st,):{{r}(nd,):{{r}(rd,):{{r}(th,):{ord:{dynamicGoal}}}}}}}}}
{=(goalToDisplay):{{r}( ,%20):{{r}(/,{slash}):{if({hasBeenReached}==true):{ordMemberCount} / {ordReachedGoal}|{ordMemberCount} / {ordDynamicGoal}}}}}
{=(goalImg):l_text:Futura_21:{goalToDisplay},co_white/e_shadow:40,y_1,co_rgb:000000/fl_layer_apply,g_south,y_65}
{=(condGoal):{if({hasBeenReached}==true):{reachedGoalToDisplay}|{dynamicGoal}}}
{=(percentGoal):{m:trunc({member.Count}*100/{condGoal})}}
{=(percentBarWidth):{m:trunc(218*{percentGoal}/100)}}
{=(COMMENT):Percentage Bar Management}
{=(percentBarOverlay):l_one_pixel/e_colorize,co_rgb:312E66/h_20,w_{percentBarWidth}/fl_layer_apply,g_north_west,x_30,y_143,r_5}
{=(percentageTxt):l_text:Futura_14_medium:{percentGoal}%25,co_white/fl_layer_apply,g_south,y_44,x_3}
{=(sentenceReached):Goal Reached!~Started from the bottom now we're here!~Rising to the top!~Another Milestone!~Wow, we did it!~Look at us go!}
{=(sentenceOngoing):Let's keep going!~We're on our way to greatness!~Ready to reach the goal?~We need more beautiful faces!~Those numbers need to go higher!~{num.MRemaining} Members Remaining!}
{=(sentenceBottom):{{r}(%2C,{comma}):{urlencode:{#:{if({hasBeenReached}==true):{sentenceReached}|{sentenceOngoing}}}}}}
{=(sentenceBottomOverlay):l_text:Futura_17:{sentenceBottom},co_white/e_shadow:40,y_1,co_rgb:000000/fl_layer_apply,g_south,y_6,x_3,c_lfill,w_260}
{=(tierOverlay):l_text:Futura_15_light:Tier%20%23{tierNumber},co_white,a_-7/fl_layer_apply,g_north_east,x_7,y_65}
{=(fallbackBackground):u_one_pixel/h_203,w_277/e_colorize,co_rgb:556CBD/fl_layer_apply,c_fill,r_10}
{=(goalBanner):{clPrefix}/{init}/{mask}/{sName}/{goalImg}/{percentBarOverlay}/{percentageTxt}/{sentenceBottomOverlay}/{tierOverlay}/{fallbackBackground}/{sIcon}}
{=(debugImg):__Debug img:__
```{sIcon}```
members: {member.Count}
goalToDisplay: {goalToDisplay}
condGoal: {condGoal}
sentenceBottom: {sentenceBottom}
```css
{goalBanner}
```
}Embed
1 line{"color": 5198940, "image": {"url": "{goalBanner}"}}Raw JSON
{
"id": 923668,
"created_at": "2021-07-01T11:10:00.000Z",
"tag_name": "goal",
"nsfw": false,
"owner_id": "149926720114262016",
"uses": 59,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "314660900302749696",
"sharer": "149926720114262016",
"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{require( ):337040974415003649}\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. Do not put the threshold higher than the gap below. It is useful and cool because it allows you to \"notice\" the goal milestone by not switching to the next goal instantly but only after N amount of members more than the current goal. Set it to 1 if it should immediatly switch to the next goal upon reaching it.}\n{=(num.Threshold):15}\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):200}\n\n{=(COMMENT):Number of bots in your server to *manually* substract from the amount of total members in your server, to get the actual number of humans in the server. The \"server humans\" block has been deprecated, so we now have to do it manually for it to be exact.\nMake sure that you only put a number here. I'm guessing it should at least be \"1\" since you have Carl-bot.}\n{=(bot.Count):3}\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 in the footer, and sets the embed's side color to the user's current color. If you want to change it to a static hex code, make sure to include the \"#\" character before it. Example: #AA11CC}\n{=(COMMENT):embed(timestamp):now}\n{embed(color):{user(color)}}\n{embed(color):#2f3136}\n\n{=(COMMENT):Calculation of the amount of human members in your server.}\n{=(totalMember.Count):{server(members)}}\n{=(totalMember.Count):148}\n{=(member.Count):{m:trunc(abs({totalMember.Count}-{bot.Count}))}}\n\n{=(COMMENT):Number of times the goal has been reached, given the nextTier value.\nIt can be considered as a reached \"Tier\" as Marketing or whatever.}\n{=(tierNumber):{m:trunc({member.Count}/{num.NextTier})}}\n{=(reachedGoalToDisplay):{m:trunc({num.NextTier}*{tierNumber})}}\n\n{=(num.PreviousGoal):{member.Count}/{reachedGoalToDisplay}}\n\n{=(memberMinusReached):{m:trunc({member.Count}-{reachedGoalToDisplay})}}\n\n{=(diffMinusThreshold):{m:trunc(abs({memberMinusReached}-{num.Threshold}))}}\n{=(check.Reached2):{if({m:trunc({diffMinusThreshold})}<={num.Threshold}):true|false}}\n\n{=(COMMENT):ALL ALONG IT WAS AS EASY AS THIS, AAAAAAAAAAAA}\n{=(dynamicGoal):{m:trunc(({num.NextTier}*{tierNumber})+{num.NextTier})}}\n\n{=(COMMENT):Absolute difference between the member count and the current goal before passing onto the next tier. In other words, it returns how many more or less members there are than the goal.}\n{=(num.Remaining):{m:trunc(abs({reachedGoalToDisplay}-{member.Count}))}}\n\n{=(thresholdCount):{m:trunc(abs({member.Count}-{num.NextTier}))}}\n{=(COMMENT):Checks if the \"exceed\" of members is lower or higher than the threshold set at the top of the command. Returns true if the goal has been achieved and false if not.}\n{=(check.Reached):{if({thresholdCount}<={num.Threshold}):true|false}}\n\n\n{=(COMMENT):Actual number of members remaining before reaching the dynamic goal. This will be displayed in the \"Not Achieved\" message output.}\n{=(num.MRemaining):{m:trunc(abs({dynamicGoal}-{member.Count}))}}\n\n{=(COMMENT):Output Messages.}\n{=(COMMENT):Members/Goal Message to display and call.}\n{=(msg.Goal):{member.Count}/{dynamicGoal}}\n\n{=(COMMENT):Message to display conditionally when the goal has been reached or not.}\n{=(msg.NotReached):*Only {num.MRemaining} more members to reach our goal!*}\n{=(msg.Reached):{num.PreviousGoal} Achieved! 🎉}\n\n{=(msg.ServerIcon):{server(icon)}}\n\n{=(hasBeenReached):{all({check.Reached}==true|{check.Reached2}==true):true|false}}\n\n\n{=(COMMENT):Embed's Footer to call. Currently contains the previous reached to display.}\n{=(msg.Footer):Let's keep going!}\n\n{=(msg.Title):Member Goal: {msg.Goal}}\n{=(msg.Title):Member Goal}\n{=(msg.Name):{if({hasBeenReached}==false):{msg.Goal}}}\n\n{=(COMMENT):Actual Outputs to call in the Embed's description field. Should be \"msg.Goal\" and \"msg.Output\".}\n{=(msg.Output):{if({hasBeenReached}==true):{msg.Reached}|{msg.NotReached}}}\n\n{=(msg.Banner):{if({hasBeenReached}==true):{msg.Image}}}\n\n{=(COMMENT):Image generation and overlay part with Cloudinary}\n{=(r):replace}\n\n{=(cloudinary):https://res.cloudinary.com/demo/image/fetch/c_scale,w_0.51/c_fill,r_max/h_203,w_277,c_lpad,b_auto:predominant,g_north_west,x_18,y_17,r_10/l_fetch:aHR0cHM6Ly9pLmltZ3VyLmNvbS9MVUo5QUxwLnBuZw==/fl_layer_apply,g_north/l_text:Futura_24:Carl-bot%20Help,co_white,c_lfill,w_160/fl_layer_apply,g_north_west,x_100,y_20/l_text:Futura_21:149%252C341%20%252F%20150%252C000,co_white/e_shadow:40,y_1,co_rgb:000000/fl_layer_apply,g_south,y_65/l_one_pixel/e_colorize,co_rgb:312E66/h_20,w_205/fl_layer_apply,g_north_west,x_30,y_143,r_5/l_text:Futura_14_medium:91%25,co_white/fl_layer_apply,g_south,y_44,x_3/l_text:Futura_18:Goal%20Reached%21,co_white/e_shadow:40,y_1,co_rgb:000000/fl_layer_apply,g_south,y_8,x_3/l_text:Futura_15_light:Tier%20%233,co_white,a_-7/fl_layer_apply,g_north_east,x_7,y_65/u_one_pixel/h_203,w_277/e_colorize,co_rgb:556CBD/fl_layer_apply,c_fill,r_10/https://cdn.discordapp.com/icons/186980582863929345/a_553d7d9f750e57825694b3cc8c504cb5.png}\n\n{=(clPrefix):https://res.cloudinary.com/demo/image/fetch}\n\n{=(sIcon):https://cdn.discordapp.com/icons/186980582863929345/a_553d7d9f750e57825694b3cc8c504cb5.png}\n{=(sIcon):{server(icon)}}\n{=(sIcon):{sIcon(+-1):.}.png}\n\n{=(comma):%252C}\n{=(slash):%252F}\n\n{=(preServ):{server}}\n{=(preServ):Discord Cloud}\n{=(COMMENT):Reads the server up until an emoji, as otherwise it breaks Cloudinary. Please avoid emojis in your server name for the image to generate.}\n{=(preServ):{preServ(1):%F0}}\n{=(serverName):{{r}(%2C,{comma}):{{r}(/,{slash}):{urlencode:{preServ}}}}}\n\n{=(init):c_scale,w_0.51/c_fill,r_max/h_203,w_277,c_lpad,b_auto:predominant,g_north_west,x_18,y_17,r_10}\n{=(mask):l_fetch:aHR0cHM6Ly9pLmltZ3VyLmNvbS9MVUo5QUxwLnBuZw==/fl_layer_apply,g_north}\n{=(sName):l_text:Futura_24:{serverName},co_white,c_lfill,w_160/fl_layer_apply,g_north_west,x_100,y_20}\n\n{=(COMMENT):Management of the Goal on the image}\n{=(COMMENT):Adds a comma every 3 digits in the various goal elements to display. it makes sure to urlencode the comma and then to replace them with their double-encoded version, for Cloudinary to not break, again.}\n{=(ordMemberCount):{{r}(%2C,{comma}):{urlencode:{{r}(st,):{{r}(nd,):{{r}(rd,):{{r}(th,):{ord:{member.Count}}}}}}}}}\n{=(ordReachedGoal):{{r}(%2C,{comma}):{urlencode:{{r}(st,):{{r}(nd,):{{r}(rd,):{{r}(th,):{ord:{reachedGoalToDisplay}}}}}}}}}\n{=(ordDynamicGoal):{{r}(%2C,{comma}):{urlencode:{{r}(st,):{{r}(nd,):{{r}(rd,):{{r}(th,):{ord:{dynamicGoal}}}}}}}}}\n\n{=(goalToDisplay):{{r}( ,%20):{{r}(/,{slash}):{if({hasBeenReached}==true):{ordMemberCount} / {ordReachedGoal}|{ordMemberCount} / {ordDynamicGoal}}}}}\n\n{=(goalImg):l_text:Futura_21:{goalToDisplay},co_white/e_shadow:40,y_1,co_rgb:000000/fl_layer_apply,g_south,y_65}\n\n\n{=(condGoal):{if({hasBeenReached}==true):{reachedGoalToDisplay}|{dynamicGoal}}}\n{=(percentGoal):{m:trunc({member.Count}*100/{condGoal})}}\n\n{=(percentBarWidth):{m:trunc(218*{percentGoal}/100)}}\n\n{=(COMMENT):Percentage Bar Management}\n{=(percentBarOverlay):l_one_pixel/e_colorize,co_rgb:312E66/h_20,w_{percentBarWidth}/fl_layer_apply,g_north_west,x_30,y_143,r_5}\n\n{=(percentageTxt):l_text:Futura_14_medium:{percentGoal}%25,co_white/fl_layer_apply,g_south,y_44,x_3}\n\n{=(sentenceReached):Goal Reached!~Started from the bottom now we're here!~Rising to the top!~Another Milestone!~Wow, we did it!~Look at us go!}\n{=(sentenceOngoing):Let's keep going!~We're on our way to greatness!~Ready to reach the goal?~We need more beautiful faces!~Those numbers need to go higher!~{num.MRemaining} Members Remaining!}\n{=(sentenceBottom):{{r}(%2C,{comma}):{urlencode:{#:{if({hasBeenReached}==true):{sentenceReached}|{sentenceOngoing}}}}}}\n{=(sentenceBottomOverlay):l_text:Futura_17:{sentenceBottom},co_white/e_shadow:40,y_1,co_rgb:000000/fl_layer_apply,g_south,y_6,x_3,c_lfill,w_260}\n\n{=(tierOverlay):l_text:Futura_15_light:Tier%20%23{tierNumber},co_white,a_-7/fl_layer_apply,g_north_east,x_7,y_65}\n\n{=(fallbackBackground):u_one_pixel/h_203,w_277/e_colorize,co_rgb:556CBD/fl_layer_apply,c_fill,r_10}\n\n{=(goalBanner):{clPrefix}/{init}/{mask}/{sName}/{goalImg}/{percentBarOverlay}/{percentageTxt}/{sentenceBottomOverlay}/{tierOverlay}/{fallbackBackground}/{sIcon}}\n\n\n{=(debugImg):__Debug img:__\n```{sIcon}```\n\nmembers: {member.Count}\ngoalToDisplay: {goalToDisplay}\ncondGoal: {condGoal}\n\nsentenceBottom: {sentenceBottom}\n\n```css\n{goalBanner}\n```\n}",
"embed": "{\"color\": 5198940, \"image\": {\"url\": \"{goalBanner}\"}}",
"last_fetched": "2026-10-20T16:58:26.840Z"
}