diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-01-05 17:12:21 +1100 |
---|---|---|
committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2023-01-05 17:16:55 +1100 |
commit | df449169bde6c0576757700f68f2d406139cc846 (patch) | |
tree | f8bcbaf30ed3ed007d392a51614a134e543e3c17 /src/util/schemas | |
parent | channel flags whoops (diff) | |
download | server-df449169bde6c0576757700f68f2d406139cc846.tar.xz |
Prettier
Diffstat (limited to 'src/util/schemas')
-rw-r--r-- | src/util/schemas/ApplicationAuthorizeSchema.ts | 4 | ||||
-rw-r--r-- | src/util/schemas/ApplicationCreateSchema.ts | 2 | ||||
-rw-r--r-- | src/util/schemas/ApplicationModifySchema.ts | 2 | ||||
-rw-r--r-- | src/util/schemas/BotModifySchema.ts | 2 | ||||
-rw-r--r-- | src/util/schemas/ChannelPermissionOverwriteSchema.ts | 2 | ||||
-rw-r--r-- | src/util/schemas/ChannelReorderSchema.ts | 2 | ||||
-rw-r--r-- | src/util/schemas/GatewayPayloadSchema.ts | 2 | ||||
-rw-r--r-- | src/util/schemas/GuildUpdateSchema.ts | 3 | ||||
-rw-r--r-- | src/util/schemas/MemberChangeProfileSchema.ts | 4 | ||||
-rw-r--r-- | src/util/schemas/RolePositionUpdateSchema.ts | 2 | ||||
-rw-r--r-- | src/util/schemas/UserGuildSettingsSchema.ts | 2 | ||||
-rw-r--r-- | src/util/schemas/UserProfileModifySchema.ts | 6 | ||||
-rw-r--r-- | src/util/schemas/UserSettingsSchema.ts | 2 | ||||
-rw-r--r-- | src/util/schemas/index.ts | 2 |
14 files changed, 19 insertions, 18 deletions
diff --git a/src/util/schemas/ApplicationAuthorizeSchema.ts b/src/util/schemas/ApplicationAuthorizeSchema.ts index 1a0aae0f..add26c74 100644 --- a/src/util/schemas/ApplicationAuthorizeSchema.ts +++ b/src/util/schemas/ApplicationAuthorizeSchema.ts @@ -3,5 +3,5 @@ export interface ApplicationAuthorizeSchema { guild_id: string; permissions: string; captcha_key?: string; - code?: string; // 2fa code -} \ No newline at end of file + code?: string; // 2fa code +} diff --git a/src/util/schemas/ApplicationCreateSchema.ts b/src/util/schemas/ApplicationCreateSchema.ts index 6a021b46..0801a6c5 100644 --- a/src/util/schemas/ApplicationCreateSchema.ts +++ b/src/util/schemas/ApplicationCreateSchema.ts @@ -1,4 +1,4 @@ export interface ApplicationCreateSchema { name: string; team_id?: string | number; -} \ No newline at end of file +} diff --git a/src/util/schemas/ApplicationModifySchema.ts b/src/util/schemas/ApplicationModifySchema.ts index ab23d57e..5f5bbe1d 100644 --- a/src/util/schemas/ApplicationModifySchema.ts +++ b/src/util/schemas/ApplicationModifySchema.ts @@ -11,4 +11,4 @@ export interface ApplicationModifySchema { bot_public?: boolean; bot_require_code_grant?: boolean; flags?: number; -} \ No newline at end of file +} diff --git a/src/util/schemas/BotModifySchema.ts b/src/util/schemas/BotModifySchema.ts index b801ab27..19a5c54e 100644 --- a/src/util/schemas/BotModifySchema.ts +++ b/src/util/schemas/BotModifySchema.ts @@ -1,4 +1,4 @@ export interface BotModifySchema { avatar?: string; username?: string; -} \ No newline at end of file +} diff --git a/src/util/schemas/ChannelPermissionOverwriteSchema.ts b/src/util/schemas/ChannelPermissionOverwriteSchema.ts index 6d6d6c34..4f5c9712 100644 --- a/src/util/schemas/ChannelPermissionOverwriteSchema.ts +++ b/src/util/schemas/ChannelPermissionOverwriteSchema.ts @@ -1,4 +1,4 @@ import { ChannelPermissionOverwrite } from "@fosscord/util"; export interface ChannelPermissionOverwriteSchema - extends ChannelPermissionOverwrite {} \ No newline at end of file + extends ChannelPermissionOverwrite {} diff --git a/src/util/schemas/ChannelReorderSchema.ts b/src/util/schemas/ChannelReorderSchema.ts index 6eb4cdd5..c6e59ebd 100644 --- a/src/util/schemas/ChannelReorderSchema.ts +++ b/src/util/schemas/ChannelReorderSchema.ts @@ -3,4 +3,4 @@ export type ChannelReorderSchema = { position?: number; lock_permissions?: boolean; parent_id?: string; -}[]; \ No newline at end of file +}[]; diff --git a/src/util/schemas/GatewayPayloadSchema.ts b/src/util/schemas/GatewayPayloadSchema.ts index 324ad1eb..ce27f0dc 100644 --- a/src/util/schemas/GatewayPayloadSchema.ts +++ b/src/util/schemas/GatewayPayloadSchema.ts @@ -5,4 +5,4 @@ export const PayloadSchema = { $d: new Tuple(Object, Number), // or number for heartbeat sequence $s: Number, $t: String, -}; \ No newline at end of file +}; diff --git a/src/util/schemas/GuildUpdateSchema.ts b/src/util/schemas/GuildUpdateSchema.ts index e858a7a2..4e8daacf 100644 --- a/src/util/schemas/GuildUpdateSchema.ts +++ b/src/util/schemas/GuildUpdateSchema.ts @@ -1,6 +1,7 @@ import { GuildCreateSchema } from "@fosscord/util"; -export interface GuildUpdateSchema extends Omit<GuildCreateSchema, "channels" | "name"> { +export interface GuildUpdateSchema + extends Omit<GuildCreateSchema, "channels" | "name"> { name?: string; banner?: string | null; splash?: string | null; diff --git a/src/util/schemas/MemberChangeProfileSchema.ts b/src/util/schemas/MemberChangeProfileSchema.ts index 73c852f3..3c16c359 100644 --- a/src/util/schemas/MemberChangeProfileSchema.ts +++ b/src/util/schemas/MemberChangeProfileSchema.ts @@ -5,7 +5,7 @@ export interface MemberChangeProfileSchema { pronouns?: string; /* - * @items.type integer - */ + * @items.type integer + */ theme_colors?: [number, number]; } diff --git a/src/util/schemas/RolePositionUpdateSchema.ts b/src/util/schemas/RolePositionUpdateSchema.ts index 1019d504..993d1ae0 100644 --- a/src/util/schemas/RolePositionUpdateSchema.ts +++ b/src/util/schemas/RolePositionUpdateSchema.ts @@ -1,4 +1,4 @@ export type RolePositionUpdateSchema = { id: string; position: number; -}[]; \ No newline at end of file +}[]; diff --git a/src/util/schemas/UserGuildSettingsSchema.ts b/src/util/schemas/UserGuildSettingsSchema.ts index e78bbf7c..b9efdbfa 100644 --- a/src/util/schemas/UserGuildSettingsSchema.ts +++ b/src/util/schemas/UserGuildSettingsSchema.ts @@ -6,4 +6,4 @@ export interface UserGuildSettingsSchema channel_overrides?: { [channel_id: string]: Partial<ChannelOverride>; }; -} \ No newline at end of file +} diff --git a/src/util/schemas/UserProfileModifySchema.ts b/src/util/schemas/UserProfileModifySchema.ts index 1e53d9e4..840e9c3e 100644 --- a/src/util/schemas/UserProfileModifySchema.ts +++ b/src/util/schemas/UserProfileModifySchema.ts @@ -5,7 +5,7 @@ export interface UserProfileModifySchema { pronouns?: string; /* - * @items.type integer - */ - theme_colors?: [number, number] + * @items.type integer + */ + theme_colors?: [number, number]; } diff --git a/src/util/schemas/UserSettingsSchema.ts b/src/util/schemas/UserSettingsSchema.ts index db015457..eb9b316d 100644 --- a/src/util/schemas/UserSettingsSchema.ts +++ b/src/util/schemas/UserSettingsSchema.ts @@ -1,3 +1,3 @@ import { UserSettings } from "@fosscord/util"; -export interface UserSettingsSchema extends Partial<UserSettings> {} \ No newline at end of file +export interface UserSettingsSchema extends Partial<UserSettings> {} diff --git a/src/util/schemas/index.ts b/src/util/schemas/index.ts index be4be0c7..e4f565c9 100644 --- a/src/util/schemas/index.ts +++ b/src/util/schemas/index.ts @@ -59,4 +59,4 @@ export * from "./UserSettingsSchema"; export * from "./BotModifySchema"; export * from "./ApplicationModifySchema"; export * from "./ApplicationCreateSchema"; -export * from "./ApplicationAuthorizeSchema"; \ No newline at end of file +export * from "./ApplicationAuthorizeSchema"; |