[ADD] Disconnected event

This commit is contained in:
Pedro Lopez
2019-02-17 22:32:37 -04:00
parent 812e3dc7a7
commit 9032025920
4 changed files with 17 additions and 6 deletions

View File

@@ -20,7 +20,8 @@ exports.Events = {
AUTHENTICATED: 'authenticated',
READY: 'ready',
MESSAGE_CREATE: 'message',
QR_RECEIVED: 'qr'
QR_RECEIVED: 'qr',
DISCONNECTED: 'disconnected'
}
exports.MessageTypes = {

View File

@@ -53,7 +53,6 @@ exports.ExposeStore = () => {
* Adds extra props to the serialization of a model
*/
exports.LoadExtraProps = (model, props) => {
console.log(model, props);
Store[model].models[0].__props = Store[model].models[0].__props.concat(props);
}