[V3 permissions] more docs + minor addition. (#1737)

* more info

* docstring
This commit is contained in:
Michael H
2018-05-28 16:02:42 -04:00
committed by palmtree5
parent de96f8b9f9
commit 9eb6bb7738
2 changed files with 33 additions and 3 deletions

View File

@@ -12,7 +12,7 @@ from .resolvers import val_if_check_is_valid, resolve_models
from .yaml_handler import yamlset_acl, yamlget_acl
from .converters import CogOrCommand, RuleType
_models = ["owner", "guildowner", "admin", "mod"]
_models = ["owner", "guildowner", "admin", "mod", "all"]
_ = Translator("Permissions", __file__)
@@ -94,7 +94,7 @@ class Permissions:
defering to check logic
This works since all checks must be True to run
"""
v = await self.check_overrides(ctx, "mod")
v = await self.check_overrides(ctx, "all")
if v is False:
return False
@@ -109,7 +109,7 @@ class Permissions:
ctx: `redbot.core.context.commands.Context`
The context of the command
level: `str`
One of 'owner', 'guildowner', 'admin', 'mod'
One of 'owner', 'guildowner', 'admin', 'mod', 'all'
Returns
-------