Browse Source

Add error message to Permissible's get_permissions

pull/186/head
TZer0 4 years ago
parent
commit
a8ded7fe54
  1. 2
      disco/types/permissions.py

2
disco/types/permissions.py

@ -118,7 +118,7 @@ class Permissible(object):
__slots__ = []
def get_permissions(self):
raise NotImplementedError
raise NotImplementedError("Permissions can only be checked in Guild or Channel")
def can(self, user, *args):
perms = self.get_permissions(user)

Loading…
Cancel
Save