Skip to content

Commit 9c397f2

Browse files
committed
📝 Fix duplicate Guild.invites_disabled documentation
1 parent 6ac322a commit 9c397f2

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

discord/guild.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -175,8 +175,6 @@ class Guild(Hashable):
175175
The channel that denotes the AFK channel. ``None`` if it doesn't exist.
176176
id: :class:`int`
177177
The guild's ID.
178-
invites_disabled: :class:`bool`
179-
Indicates if the guild invites are disabled.
180178
owner_id: :class:`int`
181179
The guild owner's ID. Use :attr:`Guild.owner` instead.
182180
unavailable: :class:`bool`
@@ -1190,7 +1188,7 @@ def created_at(self) -> datetime.datetime:
11901188

11911189
@property
11921190
def invites_disabled(self) -> bool:
1193-
"""Returns a boolean indicating if the guild invites are disabled."""
1191+
"""A boolean indicating if the guild invites are disabled."""
11941192
return "INVITES_DISABLED" in self.features
11951193

11961194
def get_member_named(self, name: str, /) -> Member | None:

0 commit comments

Comments
 (0)