diff --git a/docs/docs_client.rst b/docs/docs_client.rst index f32219f8d..5b2148d6c 100644 --- a/docs/docs_client.rst +++ b/docs/docs_client.rst @@ -496,4 +496,37 @@ Overwrites the permissions of a role or a user in a channel { "sendMessages" : false, "attachFiles" : true - } \ No newline at end of file + } + +Events +------ + +`Discord.Client` is an EventEmitter, so you can use `.on()` and `.off()` to add and remove events. + +ready +~~~~~ + +Emitted when the client is ready to use + +debug +~~~~~ + +Emitted when the client debugs or wants to log something internally + +message +~~~~~~~ + +Emitted when the client receives a message, supplies a Message_ object. + +warn +~~~~ + +Emitted when the client has encountered a small error that can be avoided. + +messageDeleted +~~~~~~~~~~~~~~ + +Emitted when a message has been deleted and the Client finds out, supplies a Message_ object IF available. + +messageUpdated +~~~~~~~~~~~~~~ \ No newline at end of file