Add AuditLogChanges.rules_channel/public_updates_channel
This commit is contained in:
parent
b705173676
commit
51df7496db
@ -174,6 +174,8 @@ class AuditLogChanges:
|
||||
'afk_channel_id': ('afk_channel', _transform_channel),
|
||||
'system_channel_id': ('system_channel', _transform_channel),
|
||||
'widget_channel_id': ('widget_channel', _transform_channel),
|
||||
'rules_channel_id': ('rules_channel', _transform_channel),
|
||||
'public_updates_channel_id': ('public_updates_channel', _transform_channel),
|
||||
'permission_overwrites': ('overwrites', _transform_overwrites),
|
||||
'splash_hash': ('splash', _guild_hash_transformer('splashes')),
|
||||
'banner_hash': ('banner', _guild_hash_transformer('banners')),
|
||||
|
24
docs/api.rst
24
docs/api.rst
@ -2260,6 +2260,30 @@ AuditLogDiff
|
||||
|
||||
:type: Union[:class:`TextChannel`, :class:`Object`]
|
||||
|
||||
|
||||
.. attribute:: rules_channel
|
||||
|
||||
The guild's rules channel.
|
||||
|
||||
If this could not be found then it falls back to a :class:`Object`
|
||||
with the ID being set.
|
||||
|
||||
See :attr:`Guild.rules_channel`.
|
||||
|
||||
:type: Union[:class:`TextChannel`, :class:`Object`]
|
||||
|
||||
|
||||
.. attribute:: public_updates_channel
|
||||
|
||||
The guild's public updates channel.
|
||||
|
||||
If this could not be found then it falls back to a :class:`Object`
|
||||
with the ID being set.
|
||||
|
||||
See :attr:`Guild.public_updates_channel`.
|
||||
|
||||
:type: Union[:class:`TextChannel`, :class:`Object`]
|
||||
|
||||
.. attribute:: afk_timeout
|
||||
|
||||
The guild's AFK timeout. See :attr:`Guild.afk_timeout`.
|
||||
|
Loading…
x
Reference in New Issue
Block a user