diff options
| -rw-r--r-- | bot/decorators.py | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/decorators.py b/bot/decorators.py index 58f67a15..d0371df4 100644 --- a/bot/decorators.py +++ b/bot/decorators.py @@ -20,7 +20,7 @@ class InChannelCheckFailure(CheckFailure):      pass -def with_role(*role_ids: int) -> bool: +def with_role(*role_ids: int) -> typing.Callable:      """Check to see whether the invoking user has any of the roles specified in role_ids."""      async def predicate(ctx: Context) -> bool:          if not ctx.guild:  # Return False in a DM @@ -43,7 +43,7 @@ def with_role(*role_ids: int) -> bool:      return commands.check(predicate) -def without_role(*role_ids: int) -> bool: +def without_role(*role_ids: int) -> typing.Callable:      """Check whether the invoking user does not have all of the roles specified in role_ids."""      async def predicate(ctx: Context) -> bool:          if not ctx.guild:  # Return False in a DM  |