diff options
| author | Rapptz <[email protected]> | 2017-05-17 00:57:21 -0400 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2017-05-17 00:57:21 -0400 |
| commit | 3cb680159ed23c611312dcfce6567d58eed8193f (patch) | |
| tree | 4b8631ba3cb113b7fc9f1e459868649dabcaf5ad /docs/migrating.rst | |
| parent | Rename internal ConnectionState attribute to have an underscore. (diff) | |
| download | discord.py-3cb680159ed23c611312dcfce6567d58eed8193f.tar.xz discord.py-3cb680159ed23c611312dcfce6567d58eed8193f.zip | |
Add __unload to the special cog method list.
Diffstat (limited to 'docs/migrating.rst')
| -rw-r--r-- | docs/migrating.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/migrating.rst b/docs/migrating.rst index 1c742e9e..89309a4c 100644 --- a/docs/migrating.rst +++ b/docs/migrating.rst @@ -887,6 +887,9 @@ The final addition is cog-local error handler, ``__error``, that is run on every An example cog with every special method registered is as follows: :: class Cog: + def __unload(self): + print('cleanup goes here') + def __global_check(self, ctx): print('cog global check') return True |