From 72d8671e839daf66cb9905fc0690238b32be5d02 Mon Sep 17 00:00:00 2001 From: Revolt CI Date: Sat, 15 Jun 2024 10:11:54 +0000 Subject: [PATCH] chore: build library from latest spec [skip ci] --- src/schema.ts | 16 +++++++--------- src/types.ts | 2 +- 2 files changed, 8 insertions(+), 10 deletions(-) diff --git a/src/schema.ts b/src/schema.ts index a6cb153..81b10be 100644 --- a/src/schema.ts +++ b/src/schema.ts @@ -765,8 +765,6 @@ export interface components { badges?: number; /** @description User's current status */ status?: components["schemas"]["UserStatus"] | null; - /** @description User's profile page */ - profile?: components["schemas"]["UserProfile"] | null; /** * Format: uint32 * @description Enum of user flags @@ -869,13 +867,6 @@ export interface components { * @enum {string} */ Presence: "Online" | "Idle" | "Focus" | "Busy" | "Invisible"; - /** @description User's profile */ - UserProfile: { - /** @description Text content on user's profile */ - content?: string | null; - /** @description Background visible on user's profile */ - background?: components["schemas"]["File"] | null; - }; /** @description Bot information for if the user is a bot */ BotInformation: { /** @description Id of the owner of this bot */ @@ -941,6 +932,13 @@ export interface components { /** @description Current account password */ password: string; }; + /** @description User's profile */ + UserProfile: { + /** @description Text content on user's profile */ + content?: string | null; + /** @description Background visible on user's profile */ + background?: components["schemas"]["File"] | null; + }; /** @description Channel */ Channel: | { diff --git a/src/types.ts b/src/types.ts index 2b275ca..3591da4 100644 --- a/src/types.ts +++ b/src/types.ts @@ -14,7 +14,6 @@ export type Relationship = components['schemas']['Relationship']; export type RelationshipStatus = components['schemas']['RelationshipStatus']; export type UserStatus = components['schemas']['UserStatus']; export type Presence = components['schemas']['Presence']; -export type UserProfile = components['schemas']['UserProfile']; export type BotInformation = components['schemas']['BotInformation']; export type Id = components['schemas']['Id']; export type FlagResponse = components['schemas']['FlagResponse']; @@ -22,6 +21,7 @@ export type DataEditUser = components['schemas']['DataEditUser']; export type DataUserProfile = components['schemas']['DataUserProfile']; export type FieldsUser = components['schemas']['FieldsUser']; export type DataChangeUsername = components['schemas']['DataChangeUsername']; +export type UserProfile = components['schemas']['UserProfile']; export type Channel = components['schemas']['Channel']; export type OverrideField = components['schemas']['OverrideField']; export type MutualResponse = components['schemas']['MutualResponse'];