Browse Source

Clarified add_listener documentation

pull/1887/head
Skyweb 6 years ago
committed by Rapptz
parent
commit
e53c85110f
  1. 4
      discord/ext/commands/bot.py

4
discord/ext/commands/bot.py

@ -435,9 +435,9 @@ class BotBase(GroupMixin):
Parameters Parameters
----------- -----------
func : :ref:`coroutine <coroutine>` func : :ref:`coroutine <coroutine>`
The extra event to listen to. The function to call.
name : Optional[str] 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 Example
-------- --------

Loading…
Cancel
Save