mirror of
https://github.com/Rapptz/discord.py.git
synced 2025-04-18 23:15:48 +00:00
Update extensions primer in line with async breaking changes
This commit is contained in:
parent
482bd11ac7
commit
6e6d16093c
@ -10,7 +10,7 @@ There comes a time in the bot development when you want to extend the bot functi
|
||||
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:
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user