diff --git a/bfrontend/src/API/Gateway/GatewayConnection.js b/bfrontend/src/API/Gateway/GatewayConnection.js index c3ccdf8..81ac6a1 100644 --- a/bfrontend/src/API/Gateway/GatewayConnection.js +++ b/bfrontend/src/API/Gateway/GatewayConnection.js @@ -60,7 +60,7 @@ class GatewayConnection { } } -GatewayConnection.prototype.connect = function(token, roles=["PRESENCE_UPDATES"]) { +GatewayConnection.prototype.connect = function(token, attributes=["PRESENCE_UPDATES"]) { if (token) this.token = token; if (this.token) token = this.token; @@ -90,7 +90,7 @@ GatewayConnection.prototype.connect = function(token, roles=["PRESENCE_UPDATES"] logGateway("Got HELLO", packet.data); this.helloData = packet.data; logGateway("Sending YOO"); - this.ws.send(this.packet("YOO", { token, roles })); + this.ws.send(this.packet("YOO", { token, attributes })); break; } case "EVENT_CHANNEL_MEMBERS": {