mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-10 08:33:30 +01:00
Actually add GUILD_SYNC
This commit is contained in:
@@ -71,7 +71,10 @@ class WebSocketManager {
|
||||
* @param {Object} packet An object that can be JSON stringified
|
||||
* @returns {void}
|
||||
*/
|
||||
send(data) {
|
||||
send(data, force = false) {
|
||||
if (force) {
|
||||
return this.ws.send(JSON.stringify(data));
|
||||
}
|
||||
this._queue.push(JSON.stringify(data));
|
||||
this.doQueue();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user