Skip to content

Commit

Permalink
Update channel.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cop-discord authored Apr 12, 2024
1 parent 0cdbe57 commit 9d1ae7a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion discord/channel.py
Original file line number Diff line number Diff line change
Expand Up @@ -502,7 +502,7 @@ async def fast_purge(self, messages: List[Message], proxy: Optional[str] = None,
lock = Lock()
async def do_purge(messages: List[int]) -> None:
async with lock:
await self._state.http.delete_messages(self.id, messages, proxy, reason)
await self._state.http.delete_messages(channel_id = self.id, message_ids = messages, proxy = proxy, reason = reason)
return
await gather(*[do_purge(_) for _ in chunks])
del chunks
Expand Down

0 comments on commit 9d1ae7a

Please sign in to comment.