Skip to content

Commit 67fdd6f

Browse files
committed
fixed __all__ of discord/commands
1 parent 2bbf063 commit 67fdd6f

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

discord/commands/commands.py

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,7 @@
6262
"application_command",
6363
"slash_command",
6464
"user_command",
65-
"message_command",
66-
"has_role",
67-
"has_any_role",
68-
"is_user",
69-
"is_owner",
70-
"permission",
65+
"message_command"
7166
)
7267

7368
def wrap_callback(coro):

discord/commands/context.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,9 @@
3838
from ..user import User
3939
from ..utils import cached_property
4040

41+
__all__ = (
42+
"ApplicationContext"
43+
)
4144

4245
class ApplicationContext(discord.abc.Messageable):
4346
"""Represents a Discord interaction context.

discord/commands/errors.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,12 @@
2424

2525
from ..errors import DiscordException
2626

27+
__all__ = (
28+
"ApplicationCommandError",
29+
"CheckFailure",
30+
"ApplicationCommandInvokeError"
31+
)
32+
2733
class ApplicationCommandError(DiscordException):
2834
r"""The base exception type for all application command related errors.
2935

0 commit comments

Comments
 (0)