hikari
hikari copied to clipboard
Allow async iterators in `delete_messages`
Summary
rest.delete_messages should allow the use of both sync and async/lazy iterators.
Why is this needed?
Users should not be forced to chunk iterators themselves if they want to delete and fetch the history at the same time.
Ideal implementation
Instead of having a list of pending messages, it would be better to cast the iterable into a LazyIterator and use iterator.chunk(). While this may reduce the performance by a few nanoseconds it will improve user experience.