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.