summary refs log tree commit diff
path: root/src/util/schemas
diff options
context:
space:
mode:
authorPuyodead1 <puyodead@protonmail.com>2022-08-29 11:11:40 -0400
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-19 20:37:59 +1100
commit2f70be7f83df836e7616eb0e1fec6b75cb12631c (patch)
tree9fb6304ec85992f59deb8fcac974b081c2f22717 /src/util/schemas
parentConfigurable MFA backup token length (diff)
downloadserver-2f70be7f83df836e7616eb0e1fec6b75cb12631c.tar.xz
implement guild profiles and fix user profiles
Diffstat (limited to 'src/util/schemas')
-rw-r--r--src/util/schemas/MemberChangeProfileSchema.ts5
-rw-r--r--src/util/schemas/MemberChangeSchema.ts2
-rw-r--r--src/util/schemas/UserProfileModifySchema.ts5
-rw-r--r--src/util/schemas/index.ts10
4 files changed, 22 insertions, 0 deletions
diff --git a/src/util/schemas/MemberChangeProfileSchema.ts b/src/util/schemas/MemberChangeProfileSchema.ts
new file mode 100644
index 00000000..3e85174d
--- /dev/null
+++ b/src/util/schemas/MemberChangeProfileSchema.ts
@@ -0,0 +1,5 @@
+export interface MemberChangeProfileSchema {
+	banner?: string | null;
+	nick?: string;
+	bio?: string;
+}
diff --git a/src/util/schemas/MemberChangeSchema.ts b/src/util/schemas/MemberChangeSchema.ts
index 2367bef3..4156c8c1 100644
--- a/src/util/schemas/MemberChangeSchema.ts
+++ b/src/util/schemas/MemberChangeSchema.ts
@@ -1,4 +1,6 @@
 export interface MemberChangeSchema {
 	roles?: string[];
 	nick?: string;
+	avatar?: string | null;
+	bio?: string;
 }
diff --git a/src/util/schemas/UserProfileModifySchema.ts b/src/util/schemas/UserProfileModifySchema.ts
new file mode 100644
index 00000000..33a372c9
--- /dev/null
+++ b/src/util/schemas/UserProfileModifySchema.ts
@@ -0,0 +1,5 @@
+export interface UserProfileModifySchema {
+	bio?: string;
+	accent_color?: number | null;
+	banner?: string | null;
+}
diff --git a/src/util/schemas/index.ts b/src/util/schemas/index.ts
index 58565496..a03cebe2 100644
--- a/src/util/schemas/index.ts
+++ b/src/util/schemas/index.ts
@@ -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";