implement guild profiles and fix user profiles
This commit is contained in:
@@ -114,7 +114,19 @@ export class Member extends BaseClassWithoutId {
|
||||
// do not auto-kick force-joined members just because their joiners left the server
|
||||
}) **/
|
||||
@Column({ nullable: true })
|
||||
joined_by?: string;
|
||||
joined_by: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
avatar: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
banner: string;
|
||||
|
||||
@Column()
|
||||
bio: string;
|
||||
|
||||
@Column({ nullable: true })
|
||||
communication_disabled_until: Date;
|
||||
|
||||
// TODO: add this when we have proper read receipts
|
||||
// @Column({ type: "simple-json" })
|
||||
@@ -313,6 +325,7 @@ export class Member extends BaseClassWithoutId {
|
||||
deaf: false,
|
||||
mute: false,
|
||||
pending: false,
|
||||
bio: "",
|
||||
};
|
||||
|
||||
await Promise.all([
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
export interface MemberChangeProfileSchema {
|
||||
banner?: string | null;
|
||||
nick?: string;
|
||||
bio?: string;
|
||||
}
|
||||
@@ -1,4 +1,6 @@
|
||||
export interface MemberChangeSchema {
|
||||
roles?: string[];
|
||||
nick?: string;
|
||||
avatar?: string | null;
|
||||
bio?: string;
|
||||
}
|
||||
|
||||
@@ -0,0 +1,5 @@
|
||||
export interface UserProfileModifySchema {
|
||||
bio?: string;
|
||||
accent_color?: number | null;
|
||||
banner?: string | null;
|
||||
}
|
||||
@@ -22,6 +22,11 @@ export * from "./TemplateModifySchema";
|
||||
export * from "./VanityUrlSchema";
|
||||
export * from "./GuildUpdateWelcomeScreenSchema";
|
||||
export * from "./WidgetModifySchema";
|
||||
export * from "./IdentifySchema";
|
||||
export * from "./InviteCreateSchema";
|
||||
export * from "./LazyRequestSchema";
|
||||
export * from "./LoginSchema";
|
||||
export * from "./MemberChangeProfileSchema";
|
||||
export * from "./MemberChangeSchema";
|
||||
export * from "./RoleModifySchema";
|
||||
export * from "./GuildTemplateCreateSchema";
|
||||
@@ -34,6 +39,11 @@ export * from "./MfaCodesSchema";
|
||||
export * from "./TotpDisableSchema";
|
||||
export * from "./TotpEnableSchema";
|
||||
export * from "./VoiceIdentifySchema";
|
||||
export * from "./TotpSchema";
|
||||
export * from "./UserModifySchema";
|
||||
export * from "./UserProfileModifySchema";
|
||||
export * from "./UserSettingsSchema";
|
||||
export * from "./VanityUrlSchema";
|
||||
export * from "./VoiceStateUpdateSchema";
|
||||
export * from "./VoiceVideoSchema";
|
||||
export * from "./IdentifySchema";
|
||||
|
||||
Reference in New Issue
Block a user