async def METHOD_NAME(self):
    """Waits until all requests have been sent and clears the queue."""
    to_wait = set()
    to_cancel = set()
    for task in asyncio.all_tasks():
        # note: we compare to repr(task) instead of the task's name since this contains information
        # about the function that created the task
        # if a bunch of tests are suddenly failing, this is often the culprit because of task names changing
        if "disnake" in repr(task):  # tasks started by disnake in reply to an event
            to_wait.add(task)
        elif "Message.delete" in repr(task):  # Messagable.send(..., delete_after=x)
            to_cancel.add(task)
    for task in to_cancel:
        task.cancel()
    try:
        await asyncio.wait_for(asyncio.gather(*to_wait), timeout=10)
    except asyncio.TimeoutError:
        log.info(f"Tasks we were waiting on when we timed out: {to_wait!r}")
        raise
    self.clear()