mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-09 16:13:31 +01:00
docs(WebSocketShard): mark non-nullable parameters as non-nullable (#3209)
* docs: Imagine having an optional nullable param * docs: Another one
This commit is contained in:
@@ -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.</warn>
|
||||
* @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) {
|
||||
|
||||
Reference in New Issue
Block a user