summary refs log tree commit diff
path: root/src/util/schemas
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2022-08-31 21:57:36 +0200
committerGitHub <noreply@github.com>2022-08-31 21:57:36 +0200
commit932348cb8813c98c30e44c2ea34459ed5a65490a (patch)
treecb581f1795758530a6826dbcfe46d30a18ce5e52 /src/util/schemas
parentMerge pull request #866 from FSG-Cat/Bug-Report-Template (diff)
parentMerge branch 'staging' into feat/guild-profiles (diff)
downloadserver-932348cb8813c98c30e44c2ea34459ed5a65490a.tar.xz
Merge pull request #872 from Puyodead1/feat/guild-profiles
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.ts2
4 files changed, 14 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 db434538..0cbab4a3 100644 --- a/src/util/schemas/MemberChangeSchema.ts +++ b/src/util/schemas/MemberChangeSchema.ts
@@ -1,3 +1,5 @@ export interface MemberChangeSchema { roles?: string[]; + nick?: string; + avatar?: string | null; } 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 a15ab4b0..3770daf0 100644 --- a/src/util/schemas/index.ts +++ b/src/util/schemas/index.ts
@@ -17,6 +17,7 @@ export * from "./IdentifySchema"; export * from "./InviteCreateSchema"; export * from "./LazyRequestSchema"; export * from "./LoginSchema"; +export * from "./MemberChangeProfileSchema"; export * from "./MemberChangeSchema"; export * from "./MemberNickChangeSchema"; export * from "./MessageAcknowledgeSchema"; @@ -36,6 +37,7 @@ export * from "./TotpDisableSchema"; export * from "./TotpEnableSchema"; export * from "./TotpSchema"; export * from "./UserModifySchema"; +export * from "./UserProfileModifySchema"; export * from "./UserSettingsSchema"; export * from "./VanityUrlSchema"; export * from "./VoiceStateUpdateSchema";