Skip to content

Commit cf0ebf3

Browse files
authored
Apply suggestions from code review
Co-authored-by: plun1331 <plun1331@gmail.com> Signed-off-by: plun1331 <plun1331@gmail.com>
1 parent 9e98160 commit cf0ebf3

2 files changed

Lines changed: 2 additions & 6 deletions

File tree

discord/guild.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3955,7 +3955,7 @@ async def chunk(self, *, cache: bool = True) -> None:
39553955
if not self._state.is_guild_evicted(self):
39563956
return await self._state.chunk_guild(self, cache=cache)
39573957

3958-
async def channel_info(self, *, cache: bool = True) -> None | list[ChannelInfo]:
3958+
async def request_channel_info(self, *, cache: bool = True) -> None | list[ChannelInfo]:
39593959
"""|coro|
39603960
39613961
Requests all channel statuses for this guild over the websocket.
@@ -3967,10 +3967,6 @@ async def channel_info(self, *, cache: bool = True) -> None | list[ChannelInfo]:
39673967
cache: :class:`bool`
39683968
Whether to cache the channel statuses as well.
39693969
3970-
Raises
3971-
------
3972-
ClientException
3973-
The members intent is not enabled.
39743970
"""
39753971

39763972
if not self._state.is_guild_evicted(self):

discord/state.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,7 @@ async def request_guild_channel_info(
15701570
self._get_guild,
15711571
cache=cache,
15721572
)
1573-
ws = self._get_websocket(guild.id) # This is ignored upstream
1573+
ws = self._get_websocket(guild.id)
15741574
await ws.request_channel_info(
15751575
guild.id, fields=["status", "voice_start_time"]
15761576
)

0 commit comments

Comments
 (0)