From ccf7e65c50ceee0ccee06d7f4169bc3b338b2a01 Mon Sep 17 00:00:00 2001 From: jack1142 <6032823+jack1142@users.noreply.github.com> Date: Thu, 22 Apr 2021 05:24:04 +0200 Subject: [PATCH] Fix documentation for RoleConverter --- discord/ext/commands/converter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/ext/commands/converter.py b/discord/ext/commands/converter.py index 730b34417..fdc7649bf 100644 --- a/discord/ext/commands/converter.py +++ b/discord/ext/commands/converter.py @@ -608,8 +608,8 @@ ColorConverter = ColourConverter class RoleConverter(IDConverter): """Converts to a :class:`~discord.Role`. - All lookups are via the local guild. If in a DM context, then the lookup - is done by the global cache. + All lookups are via the local guild. If in a DM context, the converter raises + :exc:`.NoPrivateMessage` exception. The lookup strategy is as follows (in order):