From 6917535954c07ca56df9b314f124b1acb0dd1536 Mon Sep 17 00:00:00 2001 From: SeanOMik Date: Thu, 18 Jun 2020 15:58:10 -0500 Subject: [PATCH] Make member and user `ref object of DiscordObject` --- src/member.nim | 2 +- src/user.nim | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/member.nim b/src/member.nim index a30686c..1629fc3 100644 --- a/src/member.nim +++ b/src/member.nim @@ -1,6 +1,6 @@ import discordobject, user, json -type GuildMember* = object of DiscordObject +type GuildMember* = ref object of DiscordObject ## This type is a guild member. user*: User ## The user this guild member represents. nick*: string ## This users guild nickname. diff --git a/src/user.nim b/src/user.nim index 2378437..3ff3268 100644 --- a/src/user.nim +++ b/src/user.nim @@ -6,7 +6,7 @@ type nitroClassic = 1, nitro = 2 - User* = object of DiscordObject + User* = ref object of DiscordObject ## This type is a discord user. username*: string ## The user's username, not unique across the platform. discriminator*: cushort ## The user's 4-digit discord-tag.