Typings: include rejectedMessage event

parent 00b484e3
......@@ -115,6 +115,13 @@ declare module "bancho.js" {
*/
on(event: "PM", listener: (message: PrivateMessage) => void): this
/**
* Registers a listener for when Bancho sends us back a PM that couldn't be sent.
* As far as we know, only happens when a PM is rejected because the recipient blocks messages from non-friends.
* @param listener the callback with the concerned PrivateMessage
*/
on(event: "rejectedMessage", listener: (message: PrivateMessage) => void): this
/**
* Registers a listener for client state changes.
* @param listener the callback with a Symbol from ConnectStates and a possible error.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment