File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -175,6 +175,8 @@ class Role(Hashable):
175
175
unicode_emoji: Optional[:class:`str`]
176
176
The role's unicode emoji.
177
177
Only available to guilds that contain ``ROLE_ICONS`` in :attr:`Guild.features`.
178
+
179
+ .. versionadded:: 2.0
178
180
"""
179
181
180
182
__slots__ = (
@@ -328,7 +330,10 @@ def members(self) -> List[Member]:
328
330
329
331
@property
330
332
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
+ """
332
337
if self ._icon is None :
333
338
return None
334
339
@@ -384,7 +389,7 @@ async def edit(
384
389
Can now pass ``int`` to ``colour`` keyword-only parameter.
385
390
386
391
.. 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``.
388
393
389
394
Parameters
390
395
-----------
You can’t perform that action at this time.
0 commit comments