aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorGravatar Johannes Christ <[email protected]>2021-09-24 19:53:58 +0200
committerGravatar Johannes Christ <[email protected]>2021-09-24 19:53:58 +0200
commit650e739fbb66eb30502675cc3b8bd257e1ee825d (patch)
treef5f2c1a9a7c1bc7b9bef90db088bc04746a74dd6 /tests
parentMerge pull request #1843 from python-discord/fix-paste-site-inconsistency (diff)
Suppress NotFound for batch deletion.
I will copy my comment from the code, as it explains why we want this: In the rare case where we found messages matching the spam filter across multiple channels, it is possible that a single channel will only contain a single message to delete. If that should be the case, discord.py will use the "delete single message" endpoint instead of the bulk delete endpoint, and the single message deletion endpoint will complain if you give it that does not exist. As this means that we have no other message to delete in this channel (and message deletes work per-channel), we can just log an exception and carry on with business.
Diffstat (limited to 'tests')
0 files changed, 0 insertions, 0 deletions