Tutorials_for_BDFD

onlyPerms en

Dec 4th, 2022
249
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.69 KB | None | 0 0
  1. With $onlyPerms you can lock commands similar to $onlyAdmin for certain permissions,
  2. this is useful if, for example, a command is not bad (such as a clear command) you don't use $onlyAdmin but $onlyperms.
  3.  
  4. If you want it very easy and you only have the bot for a certain server you can also use $onlyForRoleID[RollenID;Errormessage].
  5.  
  6. anyway as an example here we take the clear command
  7.  
  8. triggers : !clear
  9.  
  10. $onlyperms[managemessages;You must have "Manage Messages" permissions to do this]
  11. $clear[$nomentionMessage]
  12.  
  13.  
  14.  
  15. _______________________________________________
  16.  
  17. You can also here (https://nilpointer-software.github.io/bdfd-wiki/resources/permissions.html)
  18.  
  19. View all permissions.
Advertisement
Add Comment
Please, Sign In to add comment