Skip to content

Commit 402b78d

Browse files
NeloBlivionDA-344
andauthored
TIL thank you
Co-authored-by: DA344 <[email protected]> Signed-off-by: UK <[email protected]>
1 parent a08da47 commit 402b78d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

discord/iterators.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1274,5 +1274,5 @@ async def retrieve_inner(self) -> list[Message]:
12741274
pins = await self.flatten()
12751275
return [p.message for p in pins]
12761276

1277-
def __await__(self) -> asyncio.Task:
1278-
return asyncio.create_task(self.retrieve_inner())
1277+
def __await__(self) -> Generator[Any, Any, MessagePin]:
1278+
return self.retrieve_inner().__await__()

0 commit comments

Comments
 (0)