aboutsummaryrefslogtreecommitdiffstats
path: root/tests/helpers.py
diff options
context:
space:
mode:
authorGravatar Leon Sandøy <[email protected]>2020-05-31 18:37:56 +0200
committerGravatar Leon Sandøy <[email protected]>2020-05-31 18:37:56 +0200
commitf344dd8a72024e05577a5aeba25e2f98501417af (patch)
tree1089764d52fd71373727be8b0061a316e737af92 /tests/helpers.py
parentAdd a mod_log.ignore_all context manager. (diff)
Fix a bug with invocation deletion.
This command was written to support only a single channel, and with the move to multi-channel purges, we need to rethink the way the invocation deletion happens. We may be invoking this command from a completely different channel, so we can't necessarily look inside the channels we're targeting for the invocation. So, we're solving this by just deleting the invocation by using ctx.message. We do this before we start iterating message history, and then we only need to iterate the number of messages that was passed into the command. A much cleaner approach, which solves the bug reported and identified by @MarkKoz.
Diffstat (limited to 'tests/helpers.py')
0 files changed, 0 insertions, 0 deletions