From eb537b6f4896d84cc660e95be8685223e8f9c785 Mon Sep 17 00:00:00 2001 From: Vlad Frangu Date: Mon, 15 Apr 2019 21:17:27 +0300 Subject: [PATCH] docs(WebSocketShard): mark non-nullable parameters as non-nullable (#3209) * docs: Imagine having an optional nullable param * docs: Another one --- src/client/websocket/WebSocketShard.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/client/websocket/WebSocketShard.js b/src/client/websocket/WebSocketShard.js index 19cb11e4b..c927c1561 100644 --- a/src/client/websocket/WebSocketShard.js +++ b/src/client/websocket/WebSocketShard.js @@ -526,7 +526,7 @@ class WebSocketShard extends EventEmitter { * a full [Payload](https://discordapp.com/developers/docs/topics/gateway#commands-and-events-gateway-commands). * Do not use this method if you don't know what you're doing. * @param {Object} data The full packet to send - * @param {?boolean} [important=false] If this packet should be added first in queue + * @param {boolean} [important=false] If this packet should be added first in queue */ send(data, important = false) { this.ratelimit.queue[important ? 'unshift' : 'push'](data); @@ -574,7 +574,7 @@ class WebSocketShard extends EventEmitter { /** * Destroys this shard and closes its WebSocket connection. - * @param {?number} [closeCode=1000] The close code to use + * @param {number} [closeCode=1000] The close code to use * @private */ destroy(closeCode = 1000) {