From 6c7555c26c91b59a39b3e15bf886dc63032ced38 Mon Sep 17 00:00:00 2001 From: Gnome Date: Sun, 3 Oct 2021 17:00:16 +0100 Subject: [PATCH] Fix some docs --- discord/role.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/discord/role.py b/discord/role.py index c948e348..56627a14 100644 --- a/discord/role.py +++ b/discord/role.py @@ -161,11 +161,11 @@ class Role(Hashable): hoist: :class:`bool` Indicates if the role will be displayed separately from other members. icon: Optional[:class:`Asset`] - The icon for the role. + A custom image that is shown next to users with the role. .. versionadded:: 2.0 emoji: Optional[:class:`str`] - The unicode emoji shown for the role. + The unicode emoji that is shown next to users with the role. .. versionadded:: 2.0 position: :class:`int` @@ -333,6 +333,7 @@ class Role(Hashable): @property def icon(self) -> Optional[Asset]: + """Optional[:class:`Asset`]: Returns the custom icon shown next to users with the role, if it exists.""" if self._icon is None: return return Asset._from_role_icon(self._state, self.id, self._icon)