mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-06-07 12:18:59 +00:00
Fix documentation for RoleConverter
This commit is contained in:
parent
157801bc90
commit
a55e817ffe
@ -592,8 +592,8 @@ ColorConverter = ColourConverter
|
|||||||
class RoleConverter(IDConverter[discord.Role]):
|
class RoleConverter(IDConverter[discord.Role]):
|
||||||
"""Converts to a :class:`~discord.Role`.
|
"""Converts to a :class:`~discord.Role`.
|
||||||
|
|
||||||
All lookups are via the local guild. If in a DM context, then the lookup
|
All lookups are via the local guild. If in a DM context, the converter raises
|
||||||
is done by the global cache.
|
:exc:`.NoPrivateMessage` exception.
|
||||||
|
|
||||||
The lookup strategy is as follows (in order):
|
The lookup strategy is as follows (in order):
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user