From 2c301557641bad354db75548535ef7588e661412 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Fri, 19 Jun 2020 22:59:02 -0500 Subject: [PATCH] Remove some debug messages --- src/role.nim | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/src/role.nim b/src/role.nim index dfb3450..7f8a682 100644 --- a/src/role.nim +++ b/src/role.nim @@ -11,17 +11,8 @@ type Role* = ref object of DiscordObject guildID*: snowflake proc newRole*(json: JsonNode, guild: snowflake): Role = - echo "ROLE JSON: ", json - result = Role() - result.id = getIDFromJson(json["id"].getStr()) - result.name = json["name"].getStr() - result.color = uint(json["color"].getInt()) - result.hoist = json["hoist"].getBool() - result.position = uint(json["position"].getInt()) - result.managed = json["managed"].getBool() - result.mentionable = json["mentionable"].getBool() - result.guildID = guild - #[ id: getIDFromJson(json["id"].getStr()), + result = Role( + id: getIDFromJson(json["id"].getStr()), name: json["name"].getStr(), color: uint(json["color"].getInt()), hoist: json["hoist"].getBool(), @@ -29,7 +20,7 @@ proc newRole*(json: JsonNode, guild: snowflake): Role = managed: json["managed"].getBool(), mentionable: json["mentionable"].getBool(), guildID: guild - ) ]# + ) result.permissions = newPermissions(result.id, PermissionType.permTypeRole, uint(json["permissions"].getInt()))