From c75d90f8f9fac5c563f1622cb5bbc77ecc0ff377 Mon Sep 17 00:00:00 2001 From: Ashhhleyyy Date: Sat, 21 Dec 2024 13:38:05 +0000 Subject: [PATCH] fix(integrations): discord no longer has discriminators :sob: --- .../extras/integrations/relay/ChatRelayIntegration.java | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/main/java/xyz/nucleoid/extras/integrations/relay/ChatRelayIntegration.java b/src/main/java/xyz/nucleoid/extras/integrations/relay/ChatRelayIntegration.java index 9b159e2a..d41b2869 100644 --- a/src/main/java/xyz/nucleoid/extras/integrations/relay/ChatRelayIntegration.java +++ b/src/main/java/xyz/nucleoid/extras/integrations/relay/ChatRelayIntegration.java @@ -78,9 +78,7 @@ private static ChatMessage parseMessage(JsonObject body) { } private static String parseUserId(JsonObject user) { - var name = user.get("name").getAsString(); - int discriminator = user.get("discriminator").getAsInt(); - return name + "#" + String.format("%04d", discriminator); + return user.get("name").getAsString(); } @NotNull