Skip to content

Commit 53d345c

Browse files
committed
2 parents c25acbc + 2b77c86 commit 53d345c

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

discord/commands/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,4 +25,5 @@
2525

2626
from .commands import *
2727
from .context import *
28-
from .errors import *
28+
from .errors import *
29+
from .permissions import *

discord/commands/commands.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,11 @@
5858
"ContextMenuCommand",
5959
"UserCommand",
6060
"MessageCommand",
61+
"has_role",
62+
"has_any_role",
63+
"is_user",
64+
"is_owner",
65+
"permission",
6166
)
6267

6368
def wrap_callback(coro):

discord/flags.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -459,15 +459,15 @@ def discord_certified_moderator(self):
459459

460460
@flag_value
461461
def bot_http_interactions(self):
462-
""":class:`bool`: Returns ``True`` if is a bot http interaction.
462+
""":class:`bool`: Returns ``True`` if the bot has set an interactions endpoint url.
463463
464464
.. versionadded:: 2.0
465465
"""
466466
return UserFlags.bot_http_interactions.value
467467

468468
@flag_value
469469
def spammer(self):
470-
""":class:`bool`: Returns ``True`` if the user is flagged as spammer.
470+
""":class:`bool`: Returns ``True`` if the user is disabled for being a spammer.
471471
472472
.. versionadded:: 2.0
473473
"""

0 commit comments

Comments
 (0)