File tree Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Expand file tree Collapse file tree 3 files changed +9
-3
lines changed Original file line number Diff line number Diff line change 25
25
26
26
from .commands import *
27
27
from .context import *
28
- from .errors import *
28
+ from .errors import *
29
+ from .permissions import *
Original file line number Diff line number Diff line change 58
58
"ContextMenuCommand" ,
59
59
"UserCommand" ,
60
60
"MessageCommand" ,
61
+ "has_role" ,
62
+ "has_any_role" ,
63
+ "is_user" ,
64
+ "is_owner" ,
65
+ "permission" ,
61
66
)
62
67
63
68
def wrap_callback (coro ):
Original file line number Diff line number Diff line change @@ -459,15 +459,15 @@ def discord_certified_moderator(self):
459
459
460
460
@flag_value
461
461
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 .
463
463
464
464
.. versionadded:: 2.0
465
465
"""
466
466
return UserFlags .bot_http_interactions .value
467
467
468
468
@flag_value
469
469
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.
471
471
472
472
.. versionadded:: 2.0
473
473
"""
You can’t perform that action at this time.
0 commit comments