Skip to content

Add overload for bulk delete to use just ids

Mateusz Brawański requested to merge github/fork/F1restar4/0 into master

Created by: F1restar4

Make sure you familiarize yourself with our contributing guidelines.

Summary

Add functionality to run bulk delete using only a collection of ids

Details

Instead of having a large collection where you need to actually go through and find the messages themselves just run it with the id's and make discord handle that crap

Changes proposed

Add an admittedly simple overload for DiscordChannel#DeleteMessagesAsync that takes a collection of ulong instead of DiscordMessage

Notes

Whether the filtering in the original method is there to fail-fast or just avoid sending invalid ids to discord I dunno but I think it would be a little silly if it grabbed all of the message objects itself and then just ran like the original method so figured it'd be fine to just drop it.

Merge request reports

Loading