From 1e7ada16e14969d20f07fd0381dd7ff2a157bac4 Mon Sep 17 00:00:00 2001 From: intexisty <30681593+intexisty@users.noreply.github.com> Date: Sat, 30 May 2020 13:48:22 -0500 Subject: [PATCH 1/2] Create README.md --- README.md | 2 ++ 1 file changed, 2 insertions(+) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..b2d9881 --- /dev/null +++ b/README.md @@ -0,0 +1,2 @@ +# nimcord +A Discord API wrapper written in Nim! From 16c3fdadc68bc6c7b8928399d2abd485df4f44e2 Mon Sep 17 00:00:00 2001 From: Intexisty Date: Sat, 30 May 2020 14:13:58 -0500 Subject: [PATCH 2/2] added user & GuildMember --- src/user.nim | 15 +++++++++++++++ 1 file changed, 15 insertions(+) create mode 100644 src/user.nim diff --git a/src/user.nim b/src/user.nim new file mode 100644 index 0000000..5f41469 --- /dev/null +++ b/src/user.nim @@ -0,0 +1,15 @@ +import discordobject + +type + User = ref object of DiscordObject + username*: string # username of the current user object + avatar_hash*: string # avatar hash of the current object + discriminator*: uint16 # discriminator of the current user object + flags: int # flags of the current user object + method GetDiscriminator(this: User): string = $(this.discriminator) +type + GuildMember = ref object of User + guild_id*: snowflake # id of the guild of the current member object + nickname*: string # nickname of the current member object + joined_at*: string # date the current member object joined at + hierarchy*: int # role hierarchy for the current member object