Skip to content

Commit

Permalink
Fixed __all__ in tanjun and checks.py.
Browse files Browse the repository at this point in the history
Updated docs to clarify check locks commands to guilds.
  • Loading branch information
Patchwork Collective committed Oct 20, 2021
1 parent 9443359 commit d607d84
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions tanjun/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ async def main() -> None:
"with_owner_check",
"with_author_permission_check",
"with_own_permission_check",
"with_any_role_check",
# clients.py
"clients",
"as_loader",
Expand Down
4 changes: 3 additions & 1 deletion tanjun/checks.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
"GuildCheck",
"AuthorPermissionCheck",
"OwnPermissionCheck",
"HasAnyRoleCheck",
"with_check",
"with_dm_check",
"with_guild_check",
Expand All @@ -51,6 +52,7 @@
"with_owner_check",
"with_author_permission_check",
"with_own_permission_check",
"with_any_role_check",
]

import typing
Expand Down Expand Up @@ -687,7 +689,7 @@ def with_any_role_check(
error_message: typing.Optional[str] = "You do not have the required roles to use this command!",
halt_execution: bool = False,
) -> collections.Callable[[CommandT], CommandT]:
"""Only let a command run if the author has a specific role.
"""Only let a command run if the author has a specific role and the command is called in a guild.
Parameters
----------
Expand Down

0 comments on commit d607d84

Please sign in to comment.