This repository has been archived on 2023-04-26. You can view files and clone it, but cannot push or open issues or pull requests.
nimcord/src/user.nim

16 lines
725 B
Nim
Raw Normal View History

2020-05-30 19:13:58 +00:00
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