Skip to content

Commit ec808e6

Browse files
authored
Merge pull request #306 from Prince2347X/master
fixed __all__ of discord/commands
2 parents 25b1631 + c91e969 commit ec808e6

File tree

3 files changed

+9
-10
lines changed

3 files changed

+9
-10
lines changed

discord/commands/commands.py

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -58,16 +58,6 @@
5858
"ContextMenuCommand",
5959
"UserCommand",
6060
"MessageCommand",
61-
"command",
62-
"application_command",
63-
"slash_command",
64-
"user_command",
65-
"message_command",
66-
"has_role",
67-
"has_any_role",
68-
"is_user",
69-
"is_owner",
70-
"permission",
7161
)
7262

7363
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)