diff --git a/src/client/websocket/WebSocketConnection.js b/src/client/websocket/WebSocketConnection.js index 2937f62c1..4ea078b12 100644 --- a/src/client/websocket/WebSocketConnection.js +++ b/src/client/websocket/WebSocketConnection.js @@ -16,7 +16,10 @@ const erlpack = (function findErlpack() { const WebSocket = (function findWebSocket() { if (browser) return window.WebSocket; // eslint-disable-line no-undef try { - return require('@discordjs/uws'); + const uws = require('@discordjs/uws'); + process.emitWarning('uws support is being removed in the next version of discord.js', + 'DeprecationWarning', findWebSocket); + return uws; } catch (e) { return require('ws'); }