mod
This tag was designed as a challenge to create an all-in-one mod tag. It also acts as a work around for the single warn threshold set by automod, with a completely customise-able progression of punishments. Currently it is set as follows: • Warn • Warn • Mute • Kick • Ban However this can be changed if you have a decent enough understanding of TagScript. Usage: !mod @user <reason>
Sharedunrated
Content
43 lines{=():}
{{if({user(id)}=={target(id)}):blacklist(You need to mention a user):{server(id)}}}
{=(punishment.0):warn}
{=(punishment.1):warn}
{=(punishment.2):mute}
{=(punishment.3):kick}
{=(punishment.4):ban}
{=(mute.time):90m}
{=(role.punishment.0):1045073468393263237}
{=(role.punishment.1):1045074770615611483}
{=(role.punishment.2):1045075094331998219}
{=(role.punishment.3):1045075172178284614}
{=(trids):{target(roleids)}}
{=(comment):checks which punishment needs handed out}
{=(has.role.0):{in({role.punishment.0}):{trids}}}
{=(has.role.1):{in({role.punishment.1}):{trids}}}
{=(has.role.2):{in({role.punishment.2}):{trids}}}
{=(has.role.3):{in({role.punishment.3}):{trids}}}
{=(check.role.0):{if({has.role.0}==true):{role.punishment.0}|}}
{=(check.role.1):{if({has.role.1}==true):{role.punishment.1}|}}
{=(check.role.2):{if({has.role.2}==true):{role.punishment.2}|}}
{=(check.role.3):{if({has.role.3}==true):{role.punishment.3}|}}
{=(comment):checks how many of the punishment roles they have, each one applied after that punishment is given, on the first punishment the target should have no punishment roles and therefore the index will return 0, as $$ is the first element and it will execute the required commands and so on}
{=(num):{index($$):{check.role.0} {check.role.1} {check.role.2} {check.role.3} $$}}
{=(comment):executes designated punishments and applies role to track any previous ones}
{=(is.mention):{if({target(id)}!={user(id)}):true}}
{{and({is.mention}==true|{num}<4):c:role add {target(id)} {role.punishment.{num}}}}
{{if({is.mention}==true):c:{punishment.{num}} {target(id)} {if({num}==2):{mute.time}} {args(2+)}}}
{silence}Embed
1 line{"color": 16384539, "title": "Moderation.", "footer": {"text": "This all in one moderation tag was created by Tegs22#2212", "icon_url": "https://cdn.discordapp.com/avatars/857254633763241984/94d230f6a296fa22084c6d7accdeea80.png"}, "description": "**User**: {target(mention)} ({target(id)})\n**Action**: {punishment.{num}}\n**Punishment Number**: {m:trunc({num}+1)}\n**Reason**: {args(2+)}\n**Responsible Moderator**: {user(mention)} ({user(id)})"}Raw JSON
{
"id": 1601128,
"created_at": "2022-11-23T20:45:49.000Z",
"tag_name": "mod",
"nsfw": false,
"owner_id": "857254633763241984",
"uses": 23,
"description": "This tag was designed as a challenge to create an all-in-one mod tag. It also acts as a work around for the single warn threshold set by automod, with a completely customise-able progression of punishments. Currently it is set as follows:\n\n• Warn\n• Warn\n• Mute \n• Kick\n• Ban\n\nHowever this can be changed if you have a decent enough understanding of TagScript. \n\nUsage: !mod @user <reason>",
"restricted": false,
"shared": true,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "956113815131549726",
"sharer": "857254633763241984",
"content": "{=():}\n\n{{if({user(id)}=={target(id)}):blacklist(You need to mention a user):{server(id)}}}\n\n{=(punishment.0):warn}\n{=(punishment.1):warn}\n{=(punishment.2):mute}\n{=(punishment.3):kick}\n{=(punishment.4):ban}\n\n{=(mute.time):90m}\n\n{=(role.punishment.0):1045073468393263237}\n{=(role.punishment.1):1045074770615611483}\n{=(role.punishment.2):1045075094331998219}\n{=(role.punishment.3):1045075172178284614}\n\n{=(trids):{target(roleids)}}\n\n{=(comment):checks which punishment needs handed out}\n\n{=(has.role.0):{in({role.punishment.0}):{trids}}}\n{=(has.role.1):{in({role.punishment.1}):{trids}}}\n{=(has.role.2):{in({role.punishment.2}):{trids}}}\n{=(has.role.3):{in({role.punishment.3}):{trids}}}\n\n{=(check.role.0):{if({has.role.0}==true):{role.punishment.0}|}}\n{=(check.role.1):{if({has.role.1}==true):{role.punishment.1}|}}\n{=(check.role.2):{if({has.role.2}==true):{role.punishment.2}|}}\n{=(check.role.3):{if({has.role.3}==true):{role.punishment.3}|}}\n\n{=(comment):checks how many of the punishment roles they have, each one applied after that punishment is given, on the first punishment the target should have no punishment roles and therefore the index will return 0, as $$ is the first element and it will execute the required commands and so on}\n\n{=(num):{index($$):{check.role.0} {check.role.1} {check.role.2} {check.role.3} $$}}\n\n{=(comment):executes designated punishments and applies role to track any previous ones}\n\n{=(is.mention):{if({target(id)}!={user(id)}):true}}\n\n{{and({is.mention}==true|{num}<4):c:role add {target(id)} {role.punishment.{num}}}}\n{{if({is.mention}==true):c:{punishment.{num}} {target(id)} {if({num}==2):{mute.time}} {args(2+)}}}\n\n{silence}",
"embed": "{\"color\": 16384539, \"title\": \"Moderation.\", \"footer\": {\"text\": \"This all in one moderation tag was created by Tegs22#2212\", \"icon_url\": \"https://cdn.discordapp.com/avatars/857254633763241984/94d230f6a296fa22084c6d7accdeea80.png\"}, \"description\": \"**User**: {target(mention)} ({target(id)})\\n**Action**: {punishment.{num}}\\n**Punishment Number**: {m:trunc({num}+1)}\\n**Reason**: {args(2+)}\\n**Responsible Moderator**: {user(mention)} ({user(id)})\"}",
"last_fetched": "2026-10-20T19:04:35.779Z"
}