mirror of
https://github.com/danbulant/discord.js
synced 2026-06-24 17:21:59 +00:00
Events
This commit is contained in:
parent
e69df5bb65
commit
fdd336f698
1 changed files with 34 additions and 1 deletions
|
|
@ -497,3 +497,36 @@ Overwrites the permissions of a role or a user in a channel
|
||||||
"sendMessages" : false,
|
"sendMessages" : false,
|
||||||
"attachFiles" : true
|
"attachFiles" : true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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
|
||||||
|
~~~~~~~~~~~~~~
|
||||||
Loading…
Reference in a new issue