From fabf634f170f6b39f560a74ab6d986d9c765c533 Mon Sep 17 00:00:00 2001 From: Nerd Bear Date: Thu, 16 Jan 2025 15:54:54 +0000 Subject: [PATCH 1/3] Update guild.py Signed-off-by: Nerd Bear --- disnake/guild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disnake/guild.py b/disnake/guild.py index 1b436e4625..6804d472d9 100644 --- a/disnake/guild.py +++ b/disnake/guild.py @@ -177,7 +177,7 @@ class Guild(Hashable): The channel that denotes the AFK channel. ``None`` if it doesn't exist. id: :class:`int` The guild's ID. - owner_id: :class:`int` + owner_id: :class:`Optional[int]` The guild owner's ID. Use :attr:`Guild.owner` if you need a :class:`Member` object instead. unavailable: :class:`bool` Whether the guild is unavailable. If this is ``True`` then the From bcc09682e2a9a0f3319415a5ff06b029c5b97e68 Mon Sep 17 00:00:00 2001 From: Nerd Bear Date: Sun, 2 Feb 2025 21:05:46 +0000 Subject: [PATCH 2/3] Update disnake/guild.py Co-authored-by: vi <8530778+shiftinv@users.noreply.github.com> Signed-off-by: Nerd Bear --- disnake/guild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/disnake/guild.py b/disnake/guild.py index 6804d472d9..c5b3870d1c 100644 --- a/disnake/guild.py +++ b/disnake/guild.py @@ -177,7 +177,7 @@ class Guild(Hashable): The channel that denotes the AFK channel. ``None`` if it doesn't exist. id: :class:`int` The guild's ID. - owner_id: :class:`Optional[int]` + owner_id: Optional[:class:`int`] The guild owner's ID. Use :attr:`Guild.owner` if you need a :class:`Member` object instead. unavailable: :class:`bool` Whether the guild is unavailable. If this is ``True`` then the From 041d6766a17c3e50016aa79eef6d7698b517e30a Mon Sep 17 00:00:00 2001 From: Nerd Bear Date: Sun, 2 Feb 2025 21:06:21 +0000 Subject: [PATCH 3/3] Update disnake/guild.py Co-authored-by: vi <8530778+shiftinv@users.noreply.github.com> Signed-off-by: Nerd Bear --- disnake/guild.py | 1 + 1 file changed, 1 insertion(+) diff --git a/disnake/guild.py b/disnake/guild.py index c5b3870d1c..ea092c0025 100644 --- a/disnake/guild.py +++ b/disnake/guild.py @@ -179,6 +179,7 @@ class Guild(Hashable): The guild's ID. owner_id: Optional[:class:`int`] The guild owner's ID. Use :attr:`Guild.owner` if you need a :class:`Member` object instead. + This may be ``None`` if the guild is :attr:`~Guild.unavailable`. unavailable: :class:`bool` Whether the guild is unavailable. If this is ``True`` then the reliability of other attributes outside of :attr:`Guild.id` is slim and they might