Skip to content

Commit a6dff69

Browse files
authored
Merge pull request #281 from BobDotCom/master
Update documentation for #254
2 parents bd89ae0 + b14823f commit a6dff69

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

discord/role.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,8 @@ class Role(Hashable):
175175
unicode_emoji: Optional[:class:`str`]
176176
The role's unicode emoji.
177177
Only available to guilds that contain ``ROLE_ICONS`` in :attr:`Guild.features`.
178+
179+
.. versionadded:: 2.0
178180
"""
179181

180182
__slots__ = (
@@ -328,7 +330,10 @@ def members(self) -> List[Member]:
328330

329331
@property
330332
def icon(self) -> Optional[Asset]:
331-
"""Optional[:class:`Asset`]: Returns the role's icon asset, if available."""
333+
"""Optional[:class:`Asset`]: Returns the role's icon asset, if available.
334+
335+
.. versionadded:: 2.0
336+
"""
332337
if self._icon is None:
333338
return None
334339

@@ -384,7 +389,7 @@ async def edit(
384389
Can now pass ``int`` to ``colour`` keyword-only parameter.
385390
386391
.. versionchanged:: 2.0
387-
Edits are no longer in-place, the newly edited role is returned instead.
392+
Edits are no longer in-place, the newly edited role is returned instead. Added ``icon`` and ``unicode_emoji``.
388393
389394
Parameters
390395
-----------

0 commit comments

Comments
 (0)