Merge remote-tracking branch 'origin/master'

This commit is contained in:
SeanOMik 2020-05-30 21:49:50 -05:00
commit 858ccf33c7
No known key found for this signature in database
GPG Key ID: FA4D55AC05268A88
2 changed files with 17 additions and 0 deletions

2
README.md Normal file
View File

@ -0,0 +1,2 @@
# nimcord
A Discord API wrapper written in Nim!

15
src/user.nim Normal file
View File

@ -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