fix readyguild properties
This commit is contained in:
parent
324250a966
commit
f4b5c69ef0
@ -65,42 +65,38 @@ export interface IReadyGuildDTO {
|
||||
member_count: number | undefined;
|
||||
members: PublicMember[];
|
||||
premium_subscription_count: number | undefined;
|
||||
properties: {
|
||||
name: string;
|
||||
description?: string | null;
|
||||
icon?: string | null;
|
||||
splash?: string | null;
|
||||
banner?: string | null;
|
||||
features: string[];
|
||||
preferred_locale?: string | null;
|
||||
owner_id?: string | null;
|
||||
application_id?: string | null;
|
||||
afk_channel_id?: string | null;
|
||||
afk_timeout: number | undefined;
|
||||
system_channel_id?: string | null;
|
||||
verification_level: number | undefined;
|
||||
explicit_content_filter: number | undefined;
|
||||
default_message_notifications: number | undefined;
|
||||
mfa_level: number | undefined;
|
||||
vanity_url_code?: string | null;
|
||||
premium_tier: number | undefined;
|
||||
premium_progress_bar_enabled: boolean;
|
||||
system_channel_flags: number | undefined;
|
||||
discovery_splash?: string | null;
|
||||
rules_channel_id?: string | null;
|
||||
public_updates_channel_id?: string | null;
|
||||
max_video_channel_users: number | undefined;
|
||||
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;
|
||||
};
|
||||
name: string;
|
||||
description?: string | null;
|
||||
icon?: string | null;
|
||||
splash?: string | null;
|
||||
banner?: string | null;
|
||||
features: string[];
|
||||
preferred_locale?: string | null;
|
||||
owner_id?: string | null;
|
||||
application_id?: string | null;
|
||||
afk_channel_id?: string | null;
|
||||
afk_timeout: number | undefined;
|
||||
system_channel_id?: string | null;
|
||||
verification_level: number | undefined;
|
||||
explicit_content_filter: number | undefined;
|
||||
default_message_notifications: number | undefined;
|
||||
mfa_level: number | undefined;
|
||||
vanity_url_code?: string | null;
|
||||
premium_tier: number | undefined;
|
||||
premium_progress_bar_enabled: boolean;
|
||||
system_channel_flags: number | undefined;
|
||||
discovery_splash?: string | null;
|
||||
rules_channel_id?: string | null;
|
||||
public_updates_channel_id?: string | null;
|
||||
max_video_channel_users: number | undefined;
|
||||
max_members: number | undefined;
|
||||
nsfw_level: number | undefined;
|
||||
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;
|
||||
roles: Role[];
|
||||
stage_instances: unknown[];
|
||||
stickers: Sticker[];
|
||||
@ -122,42 +118,38 @@ 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;
|
||||
splash?: string | null;
|
||||
banner?: string | null;
|
||||
features: string[];
|
||||
preferred_locale?: string | null;
|
||||
owner_id?: string | null;
|
||||
application_id?: string | null;
|
||||
afk_channel_id?: string | null;
|
||||
afk_timeout: number | undefined;
|
||||
system_channel_id?: string | null;
|
||||
verification_level: number | undefined;
|
||||
explicit_content_filter: number | undefined;
|
||||
default_message_notifications: number | undefined;
|
||||
mfa_level: number | undefined;
|
||||
vanity_url_code?: string | null;
|
||||
premium_tier: number | undefined;
|
||||
premium_progress_bar_enabled: boolean;
|
||||
system_channel_flags: number | undefined;
|
||||
discovery_splash?: string | null;
|
||||
rules_channel_id?: string | null;
|
||||
public_updates_channel_id?: string | null;
|
||||
max_video_channel_users: number | undefined;
|
||||
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;
|
||||
};
|
||||
name: string;
|
||||
description?: string | null;
|
||||
icon?: string | null;
|
||||
splash?: string | null;
|
||||
banner?: string | null;
|
||||
features: string[];
|
||||
preferred_locale?: string | null;
|
||||
owner_id?: string | null;
|
||||
application_id?: string | null;
|
||||
afk_channel_id?: string | null;
|
||||
afk_timeout: number | undefined;
|
||||
system_channel_id?: string | null;
|
||||
verification_level: number | undefined;
|
||||
explicit_content_filter: number | undefined;
|
||||
default_message_notifications: number | undefined;
|
||||
mfa_level: number | undefined;
|
||||
vanity_url_code?: string | null;
|
||||
premium_tier: number | undefined;
|
||||
premium_progress_bar_enabled: boolean;
|
||||
system_channel_flags: number | undefined;
|
||||
discovery_splash?: string | null;
|
||||
rules_channel_id?: string | null;
|
||||
public_updates_channel_id?: string | null;
|
||||
max_video_channel_users: number | undefined;
|
||||
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;
|
||||
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