diff --git a/src/gateway/opcodes/Identify.ts b/src/gateway/opcodes/Identify.ts index 357b59de2..89c902e0b 100644 --- a/src/gateway/opcodes/Identify.ts +++ b/src/gateway/opcodes/Identify.ts @@ -66,16 +66,6 @@ function logAuth(message: string) { console.log(`[Gateway/Auth] ${message}`); } -const tryGetUserFromToken = async (...args: Parameters) => { - logAuth("Checking token"); - try { - return (await checkToken(...args)).user; - } catch (e) { - console.log("[Gateway] Error when identifying: ", e); - return null; - } -}; - export async function onIdentify(this: WebSocket, data: Payload) { const totalSw = Stopwatch.startNew(); const taskSw = Stopwatch.startNew();