Add documentation

This commit is contained in:
SeanOMik 2020-06-19 23:01:22 -05:00
parent 2c30155764
commit d88e31e3c3
No known key found for this signature in database
GPG Key ID: FA4D55AC05268A88
1 changed files with 1 additions and 0 deletions

View File

@ -11,6 +11,7 @@ type Role* = ref object of DiscordObject
guildID*: snowflake guildID*: snowflake
proc newRole*(json: JsonNode, guild: snowflake): Role = proc newRole*(json: JsonNode, guild: snowflake): Role =
## Parses role from json.
result = Role( result = Role(
id: getIDFromJson(json["id"].getStr()), id: getIDFromJson(json["id"].getStr()),
name: json["name"].getStr(), name: json["name"].getStr(),