Skip to content
Merged
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions interactions/models/discord/guild.py
Original file line number Diff line number Diff line change
Expand Up @@ -521,7 +521,7 @@ def get_owner(self) -> "models.Member":
"""
return self._client.cache.get_member(self.id, self._owner_id)

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

Expand Down Expand Up @@ -2263,7 +2263,7 @@ def get_channels(self) -> List["models.TYPE_VOICE_CHANNEL"]:
"""
return [self._client.get_channel(channel_id) for channel_id in self._channel_ids]

async def fetch_channels(self, *, force: bool = False) -> List["models.TYPE_VOICE_CHANNEL"]:
async def fetch_channels(self, *, force: bool = False) -> List["models.TYPE_GUILD_CHANNEL"]:
"""
Gets voice and stage channels which are accessible by @everyone. Fetches the channels from API if they are not cached.

Expand Down