From e5bd9dc022342c8bc62b4a5cd56f9402140787d6 Mon Sep 17 00:00:00 2001 From: KillerBossOriginal Date: Tue, 5 Dec 2023 19:20:43 +0100 Subject: [PATCH] change event name --- src/index.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/index.ts b/src/index.ts index f605b8b..96fe2bc 100644 --- a/src/index.ts +++ b/src/index.ts @@ -40,9 +40,9 @@ export default class TNC extends EventEmitter { socket.on("ready", (data) => { this.emit("ready", data); }); - socket.on("DISCORD_VERIFICATION", (data) => { + socket.on("discord_verification", (data) => { let d = JSON.parse(JSON.stringify(data)); - this.emit("DISCORD_VERIFICATION", d.id); + this.emit("discord_verification", d.id); }); } } \ No newline at end of file