mirror of
https://github.com/Mayuri-Chan/pyrofork.git
synced 2026-01-09 08:14:50 +00:00
Update set_event_handler docstring
This commit is contained in:
parent
9a912192f0
commit
b1064015f6
1 changed files with 2 additions and 1 deletions
|
|
@ -351,7 +351,8 @@ class Client:
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
callback (:obj:`callable`):
|
callback (:obj:`callable`):
|
||||||
A callback function that accepts two arguments: the Client itself and the event (update) object.
|
A function that takes ``client, event`` as positional arguments.
|
||||||
|
It will be called when a new event is generated on your account.
|
||||||
"""
|
"""
|
||||||
self.event_handler = callback
|
self.event_handler = callback
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue