Browse Source

Update documentation for rules/updates channels

pull/6128/head
RocketRace 4 years ago
committed by GitHub
parent
commit
a39c957ba5
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 6
      discord/guild.py

6
discord/guild.py

@ -470,7 +470,7 @@ class Guild(Hashable):
@property @property
def rules_channel(self): def rules_channel(self):
"""Optional[:class:`TextChannel`]: Return's the guild's channel used for the rules. """Optional[:class:`TextChannel`]: Return's the guild's channel used for the rules.
Must be a discoverable guild. The guild must be a Community guild.
If no channel is set, then this returns ``None``. If no channel is set, then this returns ``None``.
@ -482,8 +482,8 @@ class Guild(Hashable):
@property @property
def public_updates_channel(self): def public_updates_channel(self):
"""Optional[:class:`TextChannel`]: Return's the guild's channel where admins and """Optional[:class:`TextChannel`]: Return's the guild's channel where admins and
moderators of the guilds receive notices from Discord. This is only available to moderators of the guilds receive notices from Discord. The guild must be a
guilds that contain ``PUBLIC`` in :attr:`Guild.features`. Community guild.
If no channel is set, then this returns ``None``. If no channel is set, then this returns ``None``.

Loading…
Cancel
Save