Make member and user `ref object of DiscordObject`

This commit is contained in:
SeanOMik 2020-06-18 15:58:10 -05:00
parent 4af2f4f711
commit 6917535954
No known key found for this signature in database
GPG Key ID: FA4D55AC05268A88
2 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import discordobject, user, json import discordobject, user, json
type GuildMember* = object of DiscordObject type GuildMember* = ref object of DiscordObject
## This type is a guild member. ## This type is a guild member.
user*: User ## The user this guild member represents. user*: User ## The user this guild member represents.
nick*: string ## This users guild nickname. nick*: string ## This users guild nickname.

View File

@ -6,7 +6,7 @@ type
nitroClassic = 1, nitroClassic = 1,
nitro = 2 nitro = 2
User* = object of DiscordObject User* = ref object of DiscordObject
## This type is a discord user. ## This type is a discord user.
username*: string ## The user's username, not unique across the platform. username*: string ## The user's username, not unique across the platform.
discriminator*: cushort ## The user's 4-digit discord-tag. discriminator*: cushort ## The user's 4-digit discord-tag.