diff options
| author | Rapptz <[email protected]> | 2021-06-11 05:25:06 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2021-06-11 05:25:06 -0400 |
| commit | f0c76a13d382d472636f4ffae7eddb65238118db (patch) | |
| tree | 3cdef5f4a898ebf39b4145de9341cccd3dd43c24 /discord/guild.py | |
| parent | Fix typing of IntegrationAccount class (diff) | |
| download | discord.py-f0c76a13d382d472636f4ffae7eddb65238118db.tar.xz discord.py-f0c76a13d382d472636f4ffae7eddb65238118db.zip | |
Fix guild documentation not showing up for some methods
Diffstat (limited to 'discord/guild.py')
| -rw-r--r-- | discord/guild.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/discord/guild.py b/discord/guild.py index 89336466..93980a0a 100644 --- a/discord/guild.py +++ b/discord/guild.py @@ -388,7 +388,9 @@ class Guild(Hashable): self.name: str = guild.get('name') self.region: VoiceRegion = try_enum(VoiceRegion, guild.get('region')) self.verification_level: VerificationLevel = try_enum(VerificationLevel, guild.get('verification_level')) - self.default_notifications: NotificationLevel = try_enum(NotificationLevel, guild.get('default_message_notifications')) + self.default_notifications: NotificationLevel = try_enum( + NotificationLevel, guild.get('default_message_notifications') + ) self.explicit_content_filter: ContentFilter = try_enum(ContentFilter, guild.get('explicit_content_filter', 0)) self.afk_timeout: int = guild.get('afk_timeout') self._icon: Optional[str] = guild.get('icon') @@ -1302,7 +1304,6 @@ class Guild(Hashable): rules_channel: Optional[TextChannel] = MISSING, public_updates_channel: Optional[TextChannel] = MISSING, ) -> None: - ... r"""|coro| Edits the guild. @@ -2185,7 +2186,6 @@ class Guild(Hashable): mentionable: str = MISSING, reason: Optional[str] = None, ) -> Role: - ... """|coro| Creates a :class:`Role` for the guild. |