aboutsummaryrefslogtreecommitdiffstats
path: root/tests/_autospec.py
diff options
context:
space:
mode:
authorGravatar kosayoda <[email protected]>2020-10-01 16:48:47 +0800
committerGravatar kosayoda <[email protected]>2020-10-01 16:54:26 +0800
commit7d9cb7a7d7b42d1abb9cf42e8066994c9f979eb9 (patch)
tree4ca3cfc7ad5c9c37209cfab3d39e2707764639eb /tests/_autospec.py
parentMerge pull request #1200 from python-discord/bug/mod/1182/deleted-msg-null-char (diff)
Modify `!superstar` to use `apply_infraction`.
Using `apply_infraction` from `InfractionScheduler` rather than doing it manually allows us to handle HTTP errors while reducing code duplication. Specifically, discord.Forbidden is handled when the bot tries to superstar someone they do not have permissions to. Resolves BOT-5Q.
Diffstat (limited to 'tests/_autospec.py')
0 files changed, 0 insertions, 0 deletions