Remove some debug messages

This commit is contained in:
SeanOMik 2020-06-19 22:59:02 -05:00
parent 97e785de9b
commit 2c30155764
No known key found for this signature in database
GPG Key ID: FA4D55AC05268A88
1 changed files with 3 additions and 12 deletions

View File

@ -11,17 +11,8 @@ type Role* = ref object of DiscordObject
guildID*: snowflake guildID*: snowflake
proc newRole*(json: JsonNode, guild: snowflake): Role = proc newRole*(json: JsonNode, guild: snowflake): Role =
echo "ROLE JSON: ", json result = Role(
result = Role() id: getIDFromJson(json["id"].getStr()),
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()),
name: json["name"].getStr(), name: json["name"].getStr(),
color: uint(json["color"].getInt()), color: uint(json["color"].getInt()),
hoist: json["hoist"].getBool(), hoist: json["hoist"].getBool(),
@ -29,7 +20,7 @@ proc newRole*(json: JsonNode, guild: snowflake): Role =
managed: json["managed"].getBool(), managed: json["managed"].getBool(),
mentionable: json["mentionable"].getBool(), mentionable: json["mentionable"].getBool(),
guildID: guild guildID: guild
) ]# )
result.permissions = newPermissions(result.id, PermissionType.permTypeRole, result.permissions = newPermissions(result.id, PermissionType.permTypeRole,
uint(json["permissions"].getInt())) uint(json["permissions"].getInt()))