Advertisement
otfr

ModPanelTrigger/Slash

Dec 31st, 2024
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. $var[er;F04947] $c[Error embed color]
  2. $var[nm;2b2d31] $c[Normal embed color]
  3. $var[trigger;(prefix)modpanel] $c[Trigger command]
  4. $nomention
  5. $onlyIf[$guildID!=;]
  6. $if[$checkUserPerms[$botID;moderatemembers;kick;ban]==false]    
  7. $addField[Failed;$username[$botID] needs permission to Timeout/Kick/Ban members]
  8. $color[$var[er]]
  9. $elseif[$checkUserPerms[$botID;moderatemembers;kick;ban]==true]
  10.  $var[unban;yes]
  11. $if[$isSlash==false]
  12.  $if[$userExists[$message[1]]==true]
  13.  $var[userID;$message[1]]
  14.   $if[$isBanned[$var[userID]]==true]
  15.   $var[unban;no]
  16.   $endif
  17.  $endif
  18. $endif
  19. $if[$findUser[$message;no]!=]
  20. $var[userID;$findUser[$message;no]]
  21. $endif
  22. $var[untimeout;yes]
  23. $try
  24. $if[$isTimedOut[$findUser[$message;no]]==true]
  25.  $var[untimeout;no]
  26. $endif
  27. $endtry
  28. $var[up;yes]
  29. $if[$userExists[$findUser[$var[userID];no]]==true]
  30.  $var[up;no]
  31. $endif
  32.  
  33. $if[$isSlash==true]
  34. $var[userID;$findUser[$message[user];no]]
  35. $endif
  36. $if[$userExists[$var[userID]]==false]
  37. $addField[Invalid usage;Try ``$var[trigger] {UserID/@mention}``]
  38.  $color[$var[er]]
  39. $elseif[$userExists[$var[userID]]==true]
  40. $author[Mod Panel]
  41. $authorIcon[$authorAvatar]
  42. $thumbnail[$userAvatar[$var[userID]]]
  43. $addField[User;<@$var[userID]> / $username[$var[userID]]]
  44. $addField[UserID;$var[userID]]
  45. $addField[Joined Discord;$creationDate[$var[userID];Mon Jan 02, 2006 at 3:04PM]]
  46. $try
  47. $addField[Joined Server;$userJoined[$var[userID];Mon Jan 02, 2006 at 3:04PM]]
  48. $endtry
  49. $footer[Moderator - $username[$authorID]]
  50. $color[$var[nm]]
  51. $addTimestamp
  52. $addButton[yes;$var[userID]~RolesList-$authorID;Roles;primary;$var[up];]
  53. $addButton[no;$var[userID]~PermsList-$authorID;Permissions;primary;$var[up];]
  54. $addButton[no;CloseMP-$authorID;;secondary;no;🚫]
  55. $addButton[yes;$var[userID]~Timeout-$authorID;Timeout;danger;$var[up];]
  56. $addButton[no;$var[userID]~Kick-$authorID;Kick;danger;$var[up];]
  57. $addButton[no;$var[userID]~Ban-$authorID;Ban;danger;$var[up];]
  58. $addButton[yes;$var[userID]~UnTO-$authorID;Remove Timeout;success;$var[untimeout];]
  59. $addButton[no;$var[userID]~UnBn-$authorID;UnBan;success;$var[unban];]
  60.  
  61. $endif
  62. $endif
  63. $endif
Tags: BDFD
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement