Add support for role icons

* Document ROLE_ICONS guild feature
https://github.com/discord/discord-api-docs/pull/3847

* Add support for role icons
https://github.com/discord/discord-api-docs/pull/3847

* Add support for role icon/emoji changes in audit log
https://github.com/discord/discord-api-docs/pull/3847
This commit is contained in:
jack1142
2022-02-17 17:28:03 +01:00
committed by GitHub
parent 9a6b2fa402
commit 783513726f
8 changed files with 112 additions and 6 deletions

View File

@@ -1994,6 +1994,8 @@ of :class:`enum.Enum`.
- :attr:`~AuditLogDiff.colour`
- :attr:`~AuditLogDiff.mentionable`
- :attr:`~AuditLogDiff.hoist`
- :attr:`~AuditLogDiff.icon`
- :attr:`~AuditLogDiff.unicode_emoji`
- :attr:`~AuditLogDiff.name`
- :attr:`~AuditLogDiff.permissions`
@@ -2004,6 +2006,7 @@ of :class:`enum.Enum`.
- The name has changed
- The permissions have changed
- The colour has changed
- The role icon (or unicode emoji) has changed
- Its hoist/mentionable state has changed
When this is the action, the type of :attr:`~AuditLogEntry.target` is
@@ -2014,6 +2017,8 @@ of :class:`enum.Enum`.
- :attr:`~AuditLogDiff.colour`
- :attr:`~AuditLogDiff.mentionable`
- :attr:`~AuditLogDiff.hoist`
- :attr:`~AuditLogDiff.icon`
- :attr:`~AuditLogDiff.unicode_emoji`
- :attr:`~AuditLogDiff.name`
- :attr:`~AuditLogDiff.permissions`
@@ -2828,7 +2833,7 @@ AuditLogDiff
.. attribute:: icon
A guild's icon. See also :attr:`Guild.icon`.
A guild's or role's icon. See also :attr:`Guild.icon` or :attr:`Role.icon`.
:type: :class:`Asset`
@@ -3202,7 +3207,15 @@ AuditLogDiff
The name of the emoji that represents a sticker being changed.
See also :attr:`GuildSticker.emoji`
See also :attr:`GuildSticker.emoji`.
:type: :class:`str`
.. attribute:: unicode_emoji
The unicode emoji that is used as an icon for the role being changed.
See also :attr:`Role.unicode_emoji`.
:type: :class:`str`