unwarn

Simple yet very useful moderation command. Allows moderators to easily manage warns without having to type the full command name everytime and get mangled with typos and mobile autocorrect. Accepts case ids for the "removewarn" command and mentions/usernames/user ids for the "clearwarn" command. Depending if your input is a number and if it has a specific length, the specific command will be chosen. May it serve you well like it did with me.

Privateunrated

Content

13 lines
{=(TagName):unwarn}
{=(prefix):!}

{=(l1):{replace(, ):{lower:{1}}}}
{=(len):{index(⁛⁛):{l1} ⁛⁛}}
{=(chosenCmd):{and({len}<=7|{1}=={m:trunc({1}/1)}):removewarn|clearwarn}}
{=():Either follow the command by a case id or by a valid member name/mention/id.

**Example**
```css
{prefix}{TagName} 15  <-Will remove the warn with the case id 15
{prefix}{TagName} {user(id)}  <-Will clear the warns of the user id```}
{{if(!={1}):c:{chosenCmd} {1}}}
Raw JSON
{
  "id": 1014072,
  "created_at": "2021-08-17T13:19:54.000Z",
  "tag_name": "unwarn",
  "nsfw": false,
  "owner_id": "646441336152784954",
  "uses": 25,
  "description": "Simple yet very useful moderation command. Allows moderators to easily manage warns without having to type the full command name everytime and get mangled with typos and mobile autocorrect. Accepts case ids for the \"removewarn\" command and mentions/usernames/user ids for the \"clearwarn\" command. Depending if your input is a number and if it has a specific length, the specific command will be chosen. \n\nMay it serve you well like it did with me.",
  "restricted": false,
  "shared": false,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "776901576086388797",
  "sharer": "646441336152784954",
  "content": "{=(TagName):unwarn}\n{=(prefix):!}\n\n{=(l1):{replace(, ):{lower:{1}}}}\n{=(len):{index(⁛⁛):{l1} ⁛⁛}}\n{=(chosenCmd):{and({len}<=7|{1}=={m:trunc({1}/1)}):removewarn|clearwarn}}\n{=():Either follow the command by a case id or by a valid member name/mention/id.\n\n**Example**\n```css\n{prefix}{TagName} 15  <-Will remove the warn with the case id 15\n{prefix}{TagName} {user(id)}  <-Will clear the warns of the user id```}\n{{if(!={1}):c:{chosenCmd} {1}}}",
  "embed": "{}",
  "last_fetched": "2026-10-20T17:23:41.942Z"
}