diff options
Diffstat (limited to 'src/util/dtos/ReadyGuildDTO.ts')
-rw-r--r-- | src/util/dtos/ReadyGuildDTO.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/util/dtos/ReadyGuildDTO.ts b/src/util/dtos/ReadyGuildDTO.ts index 1c1482dd..7ca268a0 100644 --- a/src/util/dtos/ReadyGuildDTO.ts +++ b/src/util/dtos/ReadyGuildDTO.ts @@ -22,11 +22,11 @@ import { ChannelType, Emoji, Guild, - Member, PublicUser, Role, Sticker, UserGuildSettings, + PublicMember, } from "../entities"; // TODO: this is not the best place for this type @@ -67,7 +67,7 @@ export interface IReadyGuildDTO { large: boolean | undefined; lazy: boolean; member_count: number | undefined; - members: Member[]; + members: PublicMember[]; premium_subscription_count: number | undefined; properties: { name: string; @@ -124,7 +124,7 @@ export class ReadyGuildDTO implements IReadyGuildDTO { large: boolean | undefined; lazy: boolean; member_count: number | undefined; - members: Member[]; + members: PublicMember[]; premium_subscription_count: number | undefined; properties: { name: string; @@ -191,7 +191,7 @@ export class ReadyGuildDTO implements IReadyGuildDTO { this.large = guild.large; this.lazy = true; // ?????????? this.member_count = guild.member_count; - this.members = guild.members; + this.members = guild.members?.map((x) => x.toPublicMember()); this.premium_subscription_count = guild.premium_subscription_count; this.properties = { name: guild.name, |