diff options
| author | Skyweb <[email protected]> | 2019-02-05 17:00:44 +0100 |
|---|---|---|
| committer | Rapptz <[email protected]> | 2019-02-06 01:52:57 -0500 |
| commit | e53c85110f756c1bbf6f26a446ea1268dba83480 (patch) | |
| tree | 1f4a58cf1c349f48eb38badb5ea4212bc0dd37be /discord/ext/commands/bot.py | |
| parent | Use non-deprecated method of acquiring lock (diff) | |
| download | discord.py-e53c85110f756c1bbf6f26a446ea1268dba83480.tar.xz discord.py-e53c85110f756c1bbf6f26a446ea1268dba83480.zip | |
Clarified add_listener documentation
Diffstat (limited to 'discord/ext/commands/bot.py')
| -rw-r--r-- | discord/ext/commands/bot.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/discord/ext/commands/bot.py b/discord/ext/commands/bot.py index 61112139..929e33cd 100644 --- a/discord/ext/commands/bot.py +++ b/discord/ext/commands/bot.py @@ -435,9 +435,9 @@ class BotBase(GroupMixin): Parameters ----------- func : :ref:`coroutine <coroutine>` - The extra event to listen to. + The function to call. name : Optional[str] - The name of the command to use. Defaults to ``func.__name__``. + The name of the event to listen for. Defaults to ``func.__name__``. Example -------- |