From d1508bc739996bd56d9be49b09a61e2b369df2e0 Mon Sep 17 00:00:00 2001 From: Rapptz Date: Sat, 16 Jan 2016 23:35:58 -0500 Subject: [PATCH] [commands] Fix indentation error in commands.bot_has_role docstring. --- discord/ext/commands/core.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index f5bb81aa5..5e5ba7953 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -788,9 +788,10 @@ def has_permissions(**perms): return check(predicate) def bot_has_role(name): - """Similar to :func:`has_role` except checks if the bot itself has the - role. + """Similar to :func:`has_role` except checks if the bot itself has the + role. """ + def predicate(ctx): ch = ctx.message.channel if ch.is_private: