tradebl
Privateunrated
Content
52 lines{=():}
{require():enter role ids and/or channel ids you want this tag to be allowed for.}
{=(ROLE_ID):enter the role id of the blacklist role.}
{=(USAGE):`[p]tag_name <user> [options] [reason]`}
{=(INFO):`<>` = required, `[]` = optional}
{=(INFO2):<user> MUST BE A USER MENTION!}
{=(OPTIONS): Options are `L`, `M`, `H`, `U` which stand for 30 mins, 3 hrs, 12 hrs and 3 days respectively. These options will be the resultant time for your temprole. This is an optional parameter in the tag invoke, i.e, if the options are not found in the arguments, the tag will consider the arguments proceeding as reason instead.}
{=(L):30m}
{=(M):3h}
{=(H):12h}
{=(U):3d}
{=(COMMENT):Basic Help}
{=(help):Usage: {USAGE}
` - ` {INFO}
` - ` {INFO2}
` --- ` {OPTIONS}
If you think this help message was not documented properly, yes you are right.}
{break({upper:{args(1)}==HELP}):{help}}
{=(COMMENT):Here we have parsed the ID out of argument 1 and we are checking if the id is our own id. Of course, we would not want to blacklist ourselves.}
{break({args(1)}==):You need to mention somebody!}
{=(RE1):{replace(<@,):{replace(!,):{replace(>,):{args}}}}}
{=(Self):{all({RE1}=={user(id)}|{RE1}=={target(id)}):1|0}}
{break({Self}==1):You can not blacklist yourself!}
{=(COMMENT):Here we are checking if the user is already blacklisted.}
{=(isbl):{if({contains({ROLE_ID}):{target(roleids)}}==true):1}}
{break({isbl}==1):User is already blacklisted.}
{=(COMMENT):Here, we are parsing out the specified options from arguments. If the options are found, we are using variables and their behaviour to parse out the rest of the arguments which will be reason if any.}
{=(isTime):{if({args(2+)}!=):{any({upper:{args(2)}}==L|{upper:{args(2)}}==M|{upper:{args(2)}}==H|{upper:{args(2)}}==U):1}}}
{=(Time):{if({isTime}==1):{{upper:{args(2)}}}|{L}}}
{=(TimeMsg):{if({isTime}==1):{if({upper:{args(2)}}==L):30 minutes|{if({upper:{args(2)}}==M):3 hours|{if({upper:{args(2)}}==H):12 hours|{if({upper:{args(2)}}==U):3 days|30 minutes}}}}|30 minutes}}
{=(RPos):{if({isTime}==1):3+|2+}}
{=(Reason):{if({args({RPos})}==):You were blacklisted from trading in **{server(name)}** for **{TimeMsg}**.
⚠️ Attempting to rejoin the server will make this a permanent blacklist.|You were blacklisted from trading in **{server(name)}** for **{TimeMsg}** with the reason: {args({RPos})}.
⚠️ Attempting to rejoin the server will make this a permanent blacklist.}}
{=(COMMENT):This is the last excecution block. The user recieves a warning and then is given the temprole.}
{{all({upper:{args(1)}}!=HELP|{args(1)}!=|{isbl}!=1|{Self}!=1):c:warn {target(id)} {Reason}}}
{{all({upper:{args(1)}}!=HELP|{args(1)}!=|{isbl}!=1|{Self}!=1):c:temprole {target(id)} {ROLE_ID} {Time}}}
{{all({args(1)}!=|{isbl}!=1|{Self}!=1):reactu:✅}}
{silent}Raw JSON
{
"id": 1307100,
"created_at": "2022-02-28T17:31:36.000Z",
"tag_name": "tradebl",
"nsfw": false,
"owner_id": "688917796943560734",
"uses": 1,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "827436132378738699",
"sharer": "688917796943560734",
"content": "{=():}\n{require():enter role ids and/or channel ids you want this tag to be allowed for.}\n{=(ROLE_ID):enter the role id of the blacklist role.}\n\n{=(USAGE):`[p]tag_name <user> [options] [reason]`}\n{=(INFO):`<>` = required, `[]` = optional}\n{=(INFO2):<user> MUST BE A USER MENTION!}\n\n\n{=(OPTIONS): Options are `L`, `M`, `H`, `U` which stand for 30 mins, 3 hrs, 12 hrs and 3 days respectively. These options will be the resultant time for your temprole. This is an optional parameter in the tag invoke, i.e, if the options are not found in the arguments, the tag will consider the arguments proceeding as reason instead.}\n{=(L):30m}\n{=(M):3h}\n{=(H):12h}\n{=(U):3d}\n\n\n{=(COMMENT):Basic Help}\n{=(help):Usage: {USAGE}\n` - ` {INFO}\n` - ` {INFO2}\n` --- ` {OPTIONS}\nIf you think this help message was not documented properly, yes you are right.}\n{break({upper:{args(1)}==HELP}):{help}}\n\n\n{=(COMMENT):Here we have parsed the ID out of argument 1 and we are checking if the id is our own id. Of course, we would not want to blacklist ourselves.}\n{break({args(1)}==):You need to mention somebody!}\n{=(RE1):{replace(<@,):{replace(!,):{replace(>,):{args}}}}}\n{=(Self):{all({RE1}=={user(id)}|{RE1}=={target(id)}):1|0}}\n{break({Self}==1):You can not blacklist yourself!}\n\n\n{=(COMMENT):Here we are checking if the user is already blacklisted.}\n{=(isbl):{if({contains({ROLE_ID}):{target(roleids)}}==true):1}}\n{break({isbl}==1):User is already blacklisted.}\n\n\n{=(COMMENT):Here, we are parsing out the specified options from arguments. If the options are found, we are using variables and their behaviour to parse out the rest of the arguments which will be reason if any.}\n{=(isTime):{if({args(2+)}!=):{any({upper:{args(2)}}==L|{upper:{args(2)}}==M|{upper:{args(2)}}==H|{upper:{args(2)}}==U):1}}}\n{=(Time):{if({isTime}==1):{{upper:{args(2)}}}|{L}}}\n{=(TimeMsg):{if({isTime}==1):{if({upper:{args(2)}}==L):30 minutes|{if({upper:{args(2)}}==M):3 hours|{if({upper:{args(2)}}==H):12 hours|{if({upper:{args(2)}}==U):3 days|30 minutes}}}}|30 minutes}}\n{=(RPos):{if({isTime}==1):3+|2+}}\n{=(Reason):{if({args({RPos})}==):You were blacklisted from trading in **{server(name)}** for **{TimeMsg}**.\n⚠️ Attempting to rejoin the server will make this a permanent blacklist.|You were blacklisted from trading in **{server(name)}** for **{TimeMsg}** with the reason: {args({RPos})}.\n⚠️ Attempting to rejoin the server will make this a permanent blacklist.}}\n\n\n{=(COMMENT):This is the last excecution block. The user recieves a warning and then is given the temprole.}\n{{all({upper:{args(1)}}!=HELP|{args(1)}!=|{isbl}!=1|{Self}!=1):c:warn {target(id)} {Reason}}}\n{{all({upper:{args(1)}}!=HELP|{args(1)}!=|{isbl}!=1|{Self}!=1):c:temprole {target(id)} {ROLE_ID} {Time}}}\n{{all({args(1)}!=|{isbl}!=1|{Self}!=1):reactu:✅}}\n{silent}",
"embed": "{}",
"last_fetched": "2026-10-20T18:34:32.967Z"
}