mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-08 04:38:42 +00:00
[commands] Fix indentation error in commands.bot_has_role docstring.
This commit is contained in:
parent
6c7a493fd9
commit
d1508bc739
@ -788,9 +788,10 @@ def has_permissions(**perms):
|
|||||||
return check(predicate)
|
return check(predicate)
|
||||||
|
|
||||||
def bot_has_role(name):
|
def bot_has_role(name):
|
||||||
"""Similar to :func:`has_role` except checks if the bot itself has the
|
"""Similar to :func:`has_role` except checks if the bot itself has the
|
||||||
role.
|
role.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
def predicate(ctx):
|
def predicate(ctx):
|
||||||
ch = ctx.message.channel
|
ch = ctx.message.channel
|
||||||
if ch.is_private:
|
if ch.is_private:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user