diff options
| author | Rapptz <[email protected]> | 2016-12-17 14:13:05 -0500 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2016-12-17 14:15:11 -0500 |
| commit | 6d88024f0f7bb8e0f4d0549ed312676f575629b0 (patch) | |
| tree | e62aa88baee23e3ce07d3eb5340ed639d212a016 /examples/basic_bot.py | |
| parent | [commands] Unload all extensions when gracefully closing bot. (diff) | |
| download | discord.py-6d88024f0f7bb8e0f4d0549ed312676f575629b0.tar.xz discord.py-6d88024f0f7bb8e0f4d0549ed312676f575629b0.zip | |
[commands] Add special extension function 'teardown' for clean-up.
This is to support people who want to clean up some external resource
that the extension is maintaining outside of a cog, where __unload
should be used instead.
The callable is the antipode of 'setup' and takes the same sole
parameter, the bot, after all commands, events, and cogs have been
unloaded.
Fixes #405.
Diffstat (limited to 'examples/basic_bot.py')
0 files changed, 0 insertions, 0 deletions