Skip to content

Commit

Permalink
fix(integrations): discord no longer has discriminators 😭
Browse files Browse the repository at this point in the history
  • Loading branch information
ashhhleyyy committed Dec 21, 2024
1 parent ea25ffe commit 99bde9b
Showing 1 changed file with 1 addition and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 99bde9b

Please sign in to comment.