Skip to content

Commit a72a457

Browse files
authored
docs: guild.owner_id type mismatch between docs and code (#1273)
1 parent ce88413 commit a72a457

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

disnake/guild.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -177,8 +177,9 @@ class Guild(Hashable):
177177
The channel that denotes the AFK channel. ``None`` if it doesn't exist.
178178
id: :class:`int`
179179
The guild's ID.
180-
owner_id: :class:`int`
180+
owner_id: Optional[:class:`int`]
181181
The guild owner's ID. Use :attr:`Guild.owner` if you need a :class:`Member` object instead.
182+
This may be ``None`` if the guild is :attr:`~Guild.unavailable`.
182183
unavailable: :class:`bool`
183184
Whether the guild is unavailable. If this is ``True`` then the
184185
reliability of other attributes outside of :attr:`Guild.id` is slim and they might

0 commit comments

Comments
 (0)