Skip to content

Commit 6c12971

Browse files
fix: Correct the return type of Guild.fetch_channels (#1622)
* fix: Correct the return type of fetch_channels Signed-off-by: retr0-init <[email protected]> * fix: Revert return type of fetch_channels for GuildWidget This is meant to be TYPE_VOICE_CHANNEL due to it being a GuildWidget, so this should be reverted. #1622 (review) Signed-off-by: retr0-init <[email protected]> --------- Signed-off-by: retr0-init <[email protected]> Co-authored-by: LordOfPolls <[email protected]>
1 parent e7403ff commit 6c12971

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

interactions/models/discord/guild.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ def get_owner(self) -> "models.Member":
528528
"""
529529
return self._client.cache.get_member(self.id, self._owner_id)
530530

531-
async def fetch_channels(self) -> List["models.TYPE_VOICE_CHANNEL"]:
531+
async def fetch_channels(self) -> List["models.TYPE_GUILD_CHANNEL"]:
532532
"""
533533
Fetch this guild's channels.
534534

0 commit comments

Comments
 (0)