warning
Privateunrated
Content
98 lines{=(COMMENT): list of mod role ids separated by comma, only roles in this list can use the command}
{=(modroles):686749740679168030,439542497199390722,595729132684443660,440194022963806218,439535838053793813}
{=(immunerole):871474016660107324}
{=(COMMENT): replace the id below with the id of your warn log channel, it is suggested this chat be public but it does not have to be}
{=(warnchannel):816662455651926027}
{=(COMMENT): replace the image below with the link to the icon you want to be displayed or delete the link and leave it blank, image links can be obtained by uploading to imgur and selecting the "copy BBCode" option under get sharable links then deleting the two [img]}
{=(thumbnailurl):https://i.imgur.com/SFKTfcL.png}
{=(COMMENT): list of warning role ids and cooldowns for each their warn, Replace the role ids with the ids of your warn roles, you can also change the cooldown of each warn which is how long it will last until the role is removed}
{=(role1):816662221110509590}
{=(cooldown1):1w}
{=(role2):816377038171930625}
{=(cooldown2):1w}
{=(role3):816663627409915954}
{=(cooldown3):1w}
{=(role4):816663928086986782}
{=(cooldown4):2w}
{=(role5):816664238364950558}
{=(cooldown5):3w}
{=(COMMENT): IT IS NOT RECOMMENDED TO EDIT ANYTHING BELOW UNLESS YOU KNOW WHAT YOU'RE DOING}
{=(COMMENT): list of messages that the command can output for warns or errors}
{=(msg.warn1):{target(mention)} has received their **1st Warning** for **{cooldown1}** (weeks).
**Moderator:**{user(mention)}
**Reason:** {args(2+)}}
{=(msg.warn2):{target(mention)} has received their **2nd Warning** for **{cooldown2}** (weeks).
**Moderator:**{user(mention)}
**Reason:** {args(2+)}}
{=(msg.warn3):{target(mention)} has received their **3rd Warning** for **{cooldown3}** (weeks).
**Moderator:**{user(mention)}
**Reason:** {args(2+)}}
{=(msg.warn4):{target(mention)} has received their **4th Warning** for **{cooldown4}** (weeks).
**Moderator:**{user(mention)}
**Reason:** {args(2+)}}
{=(msg.warn5):{target(mention)} has received their **5th Warning** for **{cooldown5}** (weeks).
**Moderator:**{user(mention)}
**Reason:** {args(2+)}}
{=(msg.nomention): {user(mention)}You cannot warn yourself silly!
**Usage:**?warning <@user> <reason>}
{=(msg.maxwarn):{target(mention)} has reached the maximum number of warns allowed!
**Further moderation action is suggested**.}
{=(msg.noreason): A reason for the warn must be given for the command to work!
**Usage:**?warning <@user> <reason>}
{=(msg.modwarn):{user(mention)} You cannot warn a moderator or admin using this command!}
{=(COMMENT): checklist to determine which warn or error should be given(defines variables)}
{=(isUserTarget):{if({user(id)}=={target(id)}):true|false}}
{=(isReasonPresent):{if({"args(2+)"}==):false|true}}
{=(isTargetMod):{contains({immunerole}):{target(roleids)}}}
{=(iswarn1):{contains({role1}):{target(roleids)}}}
{=(iswarn2):{contains({role2}):{target(roleids)}}}
{=(iswarn3):{contains({role3}):{target(roleids)}}}
{=(iswarn4):{contains({role4}):{target(roleids)}}}
{=(iswarn5):{contains({role5}):{target(roleids)}}}
{=(warn1):{all({isUserTarget}==false|{isTargetMod}==false|{iswarn1}==false|{iswarn2}==false|{iswarn3}==false|{iswarn4}==false|{iswarn5}==false|{isReasonPresent}==true):true|false}}
{=(warn2):{all({isUserTarget}==false|{isTargetMod}==false|{iswarn1}==true|{iswarn2}==false|{isReasonPresent}==true):true|false}}
{=(warn3):{all({isUserTarget}==false|{isTargetMod}==false|{iswarn2}==true|{iswarn3}==false|{isReasonPresent}==true):true|false}}
{=(warn4):{all({isUserTarget}==false|{isTargetMod}==false|{iswarn3}==true|{iswarn4}==false|{isReasonPresent}==true):true|false}}
{=(warn5):{all({isUserTarget}==false|{isTargetMod}==false|{iswarn4}==true|{iswarn5}==false|{isReasonPresent}==true):true|false}}
{=(fail):{any({isUserTarget==true|{isTargetMod}==true|{isReasonPresent}==false):true|false}}}
{=(COMMENT): executes commands to give warning role, feel free to add more commands here if your server has premium enabled or change commands to, for instance, temp ban a user after the 5th warning.}
{=():}
{{if({warn1}==true):c:temprole {target(id)} {role1} {cooldown1}}}
{{if({warn2}==true):c:temprole {target(id)} {role2} {cooldown2}}}
{{if({warn3}==true):c:temprole {target(id)} {role3} {cooldown3}}}
{{if({warn4}==true):c:temprole {target(id)} {role4} {cooldown4}}}
{{if({warn5}==true):c:temprole {target(id)} {role5} {cooldown5}}}
{=(COMMENT): Decides if the command was successful and will redirect it to the warn channel if it was}
{=():}
{{if({fail}==true):|redirect:{warnchannel}}}
{=(COMMENT):Displays the warn or error message}
{=(embed.title):Warning}
{=(embed.description):**Case: #{uses}** {if({isUserTarget}==true):{msg.nomention}|{if({isTargetMod}==true):{msg.modwarn}|{if({isReasonPresent}==false):{msg.noreason}|{if({warn1}==true):{msg.warn1}|{if({warn2}==true):{msg.warn2}|{if({warn3}==true):{msg.warn3}|{if({warn4}==true):{msg.warn4}|{if({warn5}==true):{msg.warn5}|{if({iswarn5}==true):{msg.maxwarn}}}}}}}}}}
**Reminder: You can only have up to 5 warnings before further action is taken!**}
{=(embed.footer):Contact a Moderator if you wish to appeal a warn.}
{embed(color):{if({isUserTarget}==true):#2364CC|{if({isReasonPresent}==false):#2364CC|{if({iswarn5}==true):#2C0C03|{if({warn5}==true):#B825FF|{if({warn4}==true):#F5065C|{if({warn3}==true):#900817|{if({warn2}==true):#E75129|{if({warn1}==true):#D4D422}}}}}}}}}
{embed(timestamp):now}
{=(COMMENT): Additional outputs and action/limit blocks}
{and({iswarn5}==true|{isReasonPresent}==true):{user(mention)}}
{and({isReasonPresent}==true|{isTargetMod}==false):{target(mention)}}
{any({isReasonPresent}==false|{isTargetMod}==true):{user(mention)} Critical error, warn was not given!}
{require(you do not have the required permissions!):{modroles}}
{silent}
{override}Embed
1 line{"color": 5198940, "author": {"name": "{embed.title}", "icon_url": "{thumbnailurl}"}, "footer": {"text": "{embed.footer}"}, "description": "{embed.description}"}Raw JSON
{
"id": 649291,
"created_at": "2021-03-03T13:23:47.000Z",
"tag_name": "warning",
"nsfw": false,
"owner_id": "420710779688321035",
"uses": 779,
"description": null,
"restricted": false,
"shared": false,
"deleted": false,
"safe": "unrated",
"hidden": false,
"guild_id": "439535386927300610",
"sharer": "420710779688321035",
"content": "{=(COMMENT): list of mod role ids separated by comma, only roles in this list can use the command}\n{=(modroles):686749740679168030,439542497199390722,595729132684443660,440194022963806218,439535838053793813}\n{=(immunerole):871474016660107324}\n\n{=(COMMENT): replace the id below with the id of your warn log channel, it is suggested this chat be public but it does not have to be}\n{=(warnchannel):816662455651926027}\n\n{=(COMMENT): replace the image below with the link to the icon you want to be displayed or delete the link and leave it blank, image links can be obtained by uploading to imgur and selecting the \"copy BBCode\" option under get sharable links then deleting the two [img]}\n{=(thumbnailurl):https://i.imgur.com/SFKTfcL.png}\n\n{=(COMMENT): list of warning role ids and cooldowns for each their warn, Replace the role ids with the ids of your warn roles, you can also change the cooldown of each warn which is how long it will last until the role is removed}\n{=(role1):816662221110509590}\n{=(cooldown1):1w}\n{=(role2):816377038171930625}\n{=(cooldown2):1w}\n{=(role3):816663627409915954}\n{=(cooldown3):1w}\n{=(role4):816663928086986782}\n{=(cooldown4):2w}\n{=(role5):816664238364950558}\n{=(cooldown5):3w}\n\n{=(COMMENT): IT IS NOT RECOMMENDED TO EDIT ANYTHING BELOW UNLESS YOU KNOW WHAT YOU'RE DOING}\n\n{=(COMMENT): list of messages that the command can output for warns or errors}\n{=(msg.warn1):{target(mention)} has received their **1st Warning** for **{cooldown1}** (weeks).\n**Moderator:**{user(mention)}\n**Reason:** {args(2+)}}\n{=(msg.warn2):{target(mention)} has received their **2nd Warning** for **{cooldown2}** (weeks).\n**Moderator:**{user(mention)}\n**Reason:** {args(2+)}}\n{=(msg.warn3):{target(mention)} has received their **3rd Warning** for **{cooldown3}** (weeks).\n**Moderator:**{user(mention)}\n**Reason:** {args(2+)}}\n{=(msg.warn4):{target(mention)} has received their **4th Warning** for **{cooldown4}** (weeks).\n**Moderator:**{user(mention)}\n**Reason:** {args(2+)}}\n{=(msg.warn5):{target(mention)} has received their **5th Warning** for **{cooldown5}** (weeks).\n**Moderator:**{user(mention)}\n**Reason:** {args(2+)}}\n{=(msg.nomention): {user(mention)}You cannot warn yourself silly!\n**Usage:**?warning <@user> <reason>}\n{=(msg.maxwarn):{target(mention)} has reached the maximum number of warns allowed! \n**Further moderation action is suggested**.}\n{=(msg.noreason): A reason for the warn must be given for the command to work!\n**Usage:**?warning <@user> <reason>}\n{=(msg.modwarn):{user(mention)} You cannot warn a moderator or admin using this command!}\n\n{=(COMMENT): checklist to determine which warn or error should be given(defines variables)}\n{=(isUserTarget):{if({user(id)}=={target(id)}):true|false}}\n{=(isReasonPresent):{if({\"args(2+)\"}==):false|true}}\n{=(isTargetMod):{contains({immunerole}):{target(roleids)}}}\n{=(iswarn1):{contains({role1}):{target(roleids)}}}\n{=(iswarn2):{contains({role2}):{target(roleids)}}}\n{=(iswarn3):{contains({role3}):{target(roleids)}}}\n{=(iswarn4):{contains({role4}):{target(roleids)}}}\n{=(iswarn5):{contains({role5}):{target(roleids)}}}\n\n{=(warn1):{all({isUserTarget}==false|{isTargetMod}==false|{iswarn1}==false|{iswarn2}==false|{iswarn3}==false|{iswarn4}==false|{iswarn5}==false|{isReasonPresent}==true):true|false}}\n\n{=(warn2):{all({isUserTarget}==false|{isTargetMod}==false|{iswarn1}==true|{iswarn2}==false|{isReasonPresent}==true):true|false}}\n\n{=(warn3):{all({isUserTarget}==false|{isTargetMod}==false|{iswarn2}==true|{iswarn3}==false|{isReasonPresent}==true):true|false}}\n\n{=(warn4):{all({isUserTarget}==false|{isTargetMod}==false|{iswarn3}==true|{iswarn4}==false|{isReasonPresent}==true):true|false}}\n\n{=(warn5):{all({isUserTarget}==false|{isTargetMod}==false|{iswarn4}==true|{iswarn5}==false|{isReasonPresent}==true):true|false}}\n{=(fail):{any({isUserTarget==true|{isTargetMod}==true|{isReasonPresent}==false):true|false}}}\n\n{=(COMMENT): executes commands to give warning role, feel free to add more commands here if your server has premium enabled or change commands to, for instance, temp ban a user after the 5th warning.}\n{=():}\n{{if({warn1}==true):c:temprole {target(id)} {role1} {cooldown1}}}\n{{if({warn2}==true):c:temprole {target(id)} {role2} {cooldown2}}}\n{{if({warn3}==true):c:temprole {target(id)} {role3} {cooldown3}}}\n{{if({warn4}==true):c:temprole {target(id)} {role4} {cooldown4}}}\n{{if({warn5}==true):c:temprole {target(id)} {role5} {cooldown5}}}\n\n\n{=(COMMENT): Decides if the command was successful and will redirect it to the warn channel if it was}\n{=():}\n{{if({fail}==true):|redirect:{warnchannel}}}\n\n{=(COMMENT):Displays the warn or error message}\n{=(embed.title):Warning}\n{=(embed.description):**Case: #{uses}** {if({isUserTarget}==true):{msg.nomention}|{if({isTargetMod}==true):{msg.modwarn}|{if({isReasonPresent}==false):{msg.noreason}|{if({warn1}==true):{msg.warn1}|{if({warn2}==true):{msg.warn2}|{if({warn3}==true):{msg.warn3}|{if({warn4}==true):{msg.warn4}|{if({warn5}==true):{msg.warn5}|{if({iswarn5}==true):{msg.maxwarn}}}}}}}}}}\n\n**Reminder: You can only have up to 5 warnings before further action is taken!**}\n{=(embed.footer):Contact a Moderator if you wish to appeal a warn.}\n{embed(color):{if({isUserTarget}==true):#2364CC|{if({isReasonPresent}==false):#2364CC|{if({iswarn5}==true):#2C0C03|{if({warn5}==true):#B825FF|{if({warn4}==true):#F5065C|{if({warn3}==true):#900817|{if({warn2}==true):#E75129|{if({warn1}==true):#D4D422}}}}}}}}}\n{embed(timestamp):now}\n\n{=(COMMENT): Additional outputs and action/limit blocks}\n{and({iswarn5}==true|{isReasonPresent}==true):{user(mention)}}\n{and({isReasonPresent}==true|{isTargetMod}==false):{target(mention)}}\n{any({isReasonPresent}==false|{isTargetMod}==true):{user(mention)} Critical error, warn was not given!}\n{require(you do not have the required permissions!):{modroles}}\n{silent}\n{override}",
"embed": "{\"color\": 5198940, \"author\": {\"name\": \"{embed.title}\", \"icon_url\": \"{thumbnailurl}\"}, \"footer\": {\"text\": \"{embed.footer}\"}, \"description\": \"{embed.description}\"}",
"last_fetched": "2026-10-21T00:32:57.429Z"
}