Tutorials_for_BDFD

BDFD Bugs 2.0 en

Jan 14th, 2023
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.45 KB | None | 0 0
  1. bug 3
  2.  
  3. if you can run a command without the proper permissions, you can do so with
  4.  
  5. Prevent "$onlyPerms" use them for this
  6.  
  7. $onlyPerms[permission;error message]
  8. under "Permission" you must specify the permissions that are required here is a list of all permissions
  9.  
  10. https://nilpointer-software.github.io/bdfd-wiki/resources/permissions.html
  11.  
  12. bow 4
  13.  
  14. For example, if your bot has a ban command but doesn't have the ban permissions, you can set one here
  15. insert any error message
  16.  
  17. $onlyNotPerms[permission;errormessage]
  18. under "Permission" you must specify the permissions that are required here is a list of all permissions
  19.  
  20. https://nilpointer-software.github.io/bdfd-wiki/resources/permissions.html
  21.  
  22. bug 5
  23.  
  24. For example, if your bot is running a slowmode command, it needs the "Manage Channel" permissions,
  25. for this we recommend the use of
  26.  
  27. $onlyBotChannelPerms[channelid;permission;errormessage]
  28.  
  29. A better code is :
  30.  
  31. $onlyBotChannelPerms[$channelID;permission;errormessage]
  32.  
  33. the $channelID ensures that the bot checks the channel in which the command is executed
  34.  
  35.  
  36. bug 6
  37.  
  38. If you have a clear command but want to specify a number of messages use them
  39.  
  40. $argsChek[>1;error message]
  41.  
  42. If you change the >1 to >2, you have to execute the command like this:" !clear 10 10" so 2 different entries.
  43.  
  44. You can also use " $argsChek[1;errormessage] to force the user to use exactly one of the commands
  45. would then look like this: "!clear 10"
Advertisement
Add Comment
Please, Sign In to add comment