Skip to content

Commit 1412213

Browse files
authored
Merge branch 'Pycord-Development:master' into application-flags
2 parents 054b761 + 6e2cb76 commit 1412213

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
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: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@
4040
from ..utils import find, get_or_fetch, async_all
4141
from ..errors import ValidationError, ClientException
4242
from .errors import ApplicationCommandError, CheckFailure, ApplicationCommandInvokeError
43-
from .permissions import Permission, has_role, has_any_role, is_user, is_owner, permission
43+
from .permissions import Permission
4444

4545
__all__ = (
4646
"_BaseCommand",

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)