From ac325ead992680a2efd2be84d47183d784554f53 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Wed, 17 Jun 2020 22:16:21 -0500 Subject: [PATCH] Get user discriminator correctly --- src/user.nim | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/user.nim b/src/user.nim index a70b040..2378437 100644 --- a/src/user.nim +++ b/src/user.nim @@ -25,7 +25,7 @@ proc newUser*(user: JsonNode): User {.inline.} = return User( id: getIDFromJson(user["id"].getStr()), username: user["username"].getStr(), - discriminator: cushort(user["discriminator"].getInt()), + discriminator: cushort(parseIntEasy(user["discriminator"].getStr())), avatar: user["avatar"].getStr(), bot: user{"bot"}.getBool(), system: user{"system"}.getBool(),