File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -374,7 +374,7 @@ async def edit(
374
374
position : int = MISSING ,
375
375
reason : Optional [str ] = MISSING ,
376
376
icon : Optional [bytes ] = MISSING ,
377
- unicode_emoji : str = MISSING
377
+ unicode_emoji : Optional [ str ] = MISSING
378
378
) -> Optional [Role ]:
379
379
"""|coro|
380
380
@@ -409,7 +409,7 @@ async def edit(
409
409
reason: Optional[:class:`str`]
410
410
The reason for editing this role. Shows up on the audit log.
411
411
icon: Optional[:class:`bytes`]
412
- A :term:`py:bytes-like object` representing the icon. Only PNG/JPEG/WebP is supported.
412
+ A :term:`py:bytes-like object` representing the icon. Only PNG/JPEG/WebP is supported. If this argument is passed, ``unicode_emoji`` is set to None.
413
413
Only available to guilds that contain ``ROLE_ICONS`` in :attr:`Guild.features`.
414
414
Could be ``None`` to denote removal of the icon.
415
415
unicode_emoji: Optional[:class:`str`]
@@ -461,6 +461,7 @@ async def edit(
461
461
payload ['icon' ] = None
462
462
else :
463
463
payload ['icon' ] = _bytes_to_base64_data (icon )
464
+ payload ['unicode_emoji' ] = None
464
465
465
466
if unicode_emoji is not MISSING :
466
467
payload ['unicode_emoji' ] = unicode_emoji
You can’t perform that action at this time.
0 commit comments