fix readyguild properties
This commit is contained in:
parent
324250a966
commit
f4b5c69ef0
@ -65,7 +65,6 @@ export interface IReadyGuildDTO {
|
||||
member_count: number | undefined;
|
||||
members: PublicMember[];
|
||||
premium_subscription_count: number | undefined;
|
||||
properties: {
|
||||
name: string;
|
||||
description?: string | null;
|
||||
icon?: string | null;
|
||||
@ -92,15 +91,12 @@ export interface IReadyGuildDTO {
|
||||
max_video_channel_users: number | undefined;
|
||||
max_members: number | undefined;
|
||||
nsfw_level: number | undefined;
|
||||
hub_type?: unknown | null; // ????
|
||||
|
||||
hub_type?: unknown | null; // ????s
|
||||
home_header: null; // TODO
|
||||
latest_onboarding_question_id: null; // TODO
|
||||
safety_alerts_channel_id: null; // TODO
|
||||
max_stage_video_channel_users: 50; // TODO
|
||||
nsfw: boolean;
|
||||
id: string;
|
||||
};
|
||||
roles: Role[];
|
||||
stage_instances: unknown[];
|
||||
stickers: Sticker[];
|
||||
@ -122,7 +118,6 @@ export class ReadyGuildDTO implements IReadyGuildDTO {
|
||||
member_count: number | undefined;
|
||||
members: PublicMember[];
|
||||
premium_subscription_count: number | undefined;
|
||||
properties: {
|
||||
name: string;
|
||||
description?: string | null;
|
||||
icon?: string | null;
|
||||
@ -150,14 +145,11 @@ export class ReadyGuildDTO implements IReadyGuildDTO {
|
||||
max_members: number | undefined;
|
||||
nsfw_level: number | undefined;
|
||||
hub_type?: unknown | null; // ????
|
||||
|
||||
home_header: null; // TODO
|
||||
latest_onboarding_question_id: null; // TODO
|
||||
safety_alerts_channel_id: null; // TODO
|
||||
max_stage_video_channel_users: 50; // TODO
|
||||
nsfw: boolean;
|
||||
id: string;
|
||||
};
|
||||
roles: Role[];
|
||||
stage_instances: unknown[];
|
||||
stickers: Sticker[];
|
||||
@ -189,7 +181,9 @@ export class ReadyGuildDTO implements IReadyGuildDTO {
|
||||
this.member_count = guild.member_count;
|
||||
this.members = guild.members?.map((x) => x.toPublicMember());
|
||||
this.premium_subscription_count = guild.premium_subscription_count;
|
||||
this.properties = {
|
||||
|
||||
Object.assign(this, {
|
||||
...this,
|
||||
name: guild.name,
|
||||
description: guild.description,
|
||||
icon: guild.icon,
|
||||
@ -224,7 +218,8 @@ export class ReadyGuildDTO implements IReadyGuildDTO {
|
||||
max_stage_video_channel_users: 50, // TODO
|
||||
nsfw: guild.nsfw,
|
||||
safety_alerts_channel_id: null,
|
||||
};
|
||||
});
|
||||
|
||||
this.roles = guild.roles.map((x) => x.toJSON());
|
||||
this.stage_instances = [];
|
||||
this.stickers = guild.stickers;
|
||||
|
||||
Reference in New Issue
Block a user