Update extensions primer in line with async breaking changes

This commit is contained in:
Cobalt 2022-04-18 11:26:50 +01:00 committed by GitHub
parent 482bd11ac7
commit 6e6d16093c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -10,7 +10,7 @@ There comes a time in the bot development when you want to extend the bot functi
Primer Primer
-------- --------
An extension at its core is a python file with an entry point called ``setup``. This setup must be a plain Python function (not a coroutine). It takes a single parameter -- the :class:`~.commands.Bot` that loads the extension. An extension at its core is a python file with an entry point called ``setup``. This setup function must be a Python coroutine. It takes a single parameter -- the :class:`~.commands.Bot` that loads the extension.
An example extension looks like this: An example extension looks like this: