diff options
| author | 2022-07-16 23:09:18 +0100 | |
|---|---|---|
| committer | 2022-07-16 23:45:30 +0100 | |
| commit | aca54942212ae2b17bbb83da4631958e71228e14 (patch) | |
| tree | 49e034e03406ea42ec82bced7a3de276f93f4829 /tests/test_base.py | |
| parent | Move snekbox lock error handling to a try/except (diff) | |
Use interaction.defer for snekbox version switch button
This is so that we do not need to spawn the run_job call in a seperate task.
This also wraps interaction.message.delete() in a NotFound suppress to cover the case where a user re-runs code and very quickly clicks the button. The log arg on send_job will stop the actual job from running in this case.
Diffstat (limited to 'tests/test_base.py')
0 files changed, 0 insertions, 0 deletions