atomicptr / isic

A modular Discord bot.
https://isic.js.org
MIT License
1 stars 0 forks source link

Module level permissions #3

Closed atomicptr closed 7 years ago

atomicptr commented 7 years ago

A module that for instance that requires "MANAGE_MESSAGES" for it's base functionality should be able to specify that in its module.json file and not be available if the server does not have the correct permission.

{
    "name": "My Module",
    "ident": "github.atomicptr.mymodule",
    "main": "main.js",
    "requiresPermissions": ["MANAGE_MESSAGES"]
}