ks

Custom Channel Lock - The tag allow to give certain role perform channel lock/unlock without granting manage channel perms. - please read the comment inside the code, and do update the necessary.

Sharedunrated

Content

41 lines
{=(AUTHOR):fsociety#1200}

{=(comment):update your bot prefix below}
{=(pre):-}

{=(emoji):{if({args(1)}==lock):πŸ”’|{if({args(1)}==unlock):πŸ”“|❌}}}

{reactu:{emoji}}

{=(comment):update this tag name below}
{=(tag.name):KS}

{=(comment):add authorize role id below and separate by comma}
{=(perms.roleids):790183405445840906}

{=(comment):this is error message for none authorize use}
{=(perms.error):No permission}
{require({perms.error}):{perms.roleids}}

{=(comment):channels list and syntax usage option}
{=(syntax.error):Hi, please use command as below
`{pre}{tag.name} unlock number` OR `{pre}{tag.name} lock number`
```V
Channel Number
1 - #🐸-dank-memer
2 - #🐸-trading-ads
3 - #🐸-trading-chat
4 - #🐸-middleman-requests
```}

{=(comment):validate if second input is valid option}
{=():}{{if({contains({args(2)}):1 2 3 4}==false):blacklist({syntax.error}):{server(id)}}}

{=(comment):channel id list which allow to lock/unlock}
{=(channel.1):778192171488116736}
{=(channel.2):789158035732824164}
{=(channel.3):789152382339645463}
{=(channel.4):785678007758225449}

{=(comment):main command is here}
{override}{cmd:{args(1)} {channel.{args(2)}}}
Raw JSON
{
  "id": 593746,
  "created_at": "2021-02-09T07:07:43.000Z",
  "tag_name": "ks",
  "nsfw": false,
  "owner_id": "737906389132771329",
  "uses": 150,
  "description": "Custom Channel Lock\n\n- The tag allow to give certain role perform channel lock/unlock without granting manage channel perms.\n\n- please read the comment inside the code, and do update the necessary. ",
  "restricted": false,
  "shared": true,
  "deleted": false,
  "safe": "unrated",
  "hidden": false,
  "guild_id": "740805195298242602",
  "sharer": "737906389132771329",
  "content": "{=(AUTHOR):fsociety#1200}\n\n{=(comment):update your bot prefix below}\n{=(pre):-}\n\n{=(emoji):{if({args(1)}==lock):πŸ”’|{if({args(1)}==unlock):πŸ”“|❌}}}\n\n{reactu:{emoji}}\n\n{=(comment):update this tag name below}\n{=(tag.name):KS}\n\n{=(comment):add authorize role id below and separate by comma}\n{=(perms.roleids):790183405445840906}\n\n{=(comment):this is error message for none authorize use}\n{=(perms.error):No permission}\n{require({perms.error}):{perms.roleids}}\n\n{=(comment):channels list and syntax usage option}\n{=(syntax.error):Hi, please use command as below\n`{pre}{tag.name} unlock number` OR `{pre}{tag.name} lock number`\n```V\nChannel Number\n1 - #🐸-dank-memer\n2 - #🐸-trading-ads\n3 - #🐸-trading-chat\n4 - #🐸-middleman-requests\n```}\n\n{=(comment):validate if second input is valid option}\n{=():}{{if({contains({args(2)}):1 2 3 4}==false):blacklist({syntax.error}):{server(id)}}}\n\n{=(comment):channel id list which allow to lock/unlock}\n{=(channel.1):778192171488116736}\n{=(channel.2):789158035732824164}\n{=(channel.3):789152382339645463}\n{=(channel.4):785678007758225449}\n\n{=(comment):main command is here}\n{override}{cmd:{args(1)} {channel.{args(2)}}}",
  "embed": "{}",
  "last_fetched": "2026-10-21T00:12:00.293Z"
}