Skip to content

Commit 871a359

Browse files
committed
fix: add missing await
1 parent 453c4e1 commit 871a359

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interactions/api/models/guild.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1187,7 +1187,7 @@ async def get_all_channels(self) -> List[Channel]:
11871187
"""
11881188
if not self._client:
11891189
raise AttributeError("HTTPClient not found!")
1190-
res = self._client.get_all_channels(int(self.id))
1190+
res = await self._client.get_all_channels(int(self.id))
11911191
return [Channel(**channel, _client=self._client) for channel in res]
11921192

11931193
async def get_all_roles(self) -> List[Role]:
@@ -1199,7 +1199,7 @@ async def get_all_roles(self) -> List[Role]:
11991199
"""
12001200
if not self._client:
12011201
raise AttributeError("HTTPClient not found!")
1202-
res = self._client.get_all_roles(int(self.id))
1202+
res = await self._client.get_all_roles(int(self.id))
12031203
return [Role(**role, _client=self._client) for role in res]
12041204

12051205
async def get_role(

0 commit comments

Comments
 (0)