From a8ded7fe5402b734a833964075ab80d6231c84e3 Mon Sep 17 00:00:00 2001 From: TZer0 Date: Mon, 16 Nov 2020 14:57:51 +0100 Subject: [PATCH] Add error message to Permissible's get_permissions --- disco/types/permissions.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disco/types/permissions.py b/disco/types/permissions.py index 37f7e2a..f005d3a 100644 --- a/disco/types/permissions.py +++ b/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)