summary refs log tree commit diff
path: root/src/util/schemas
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/util/schemas/ActivitySchema.ts16
-rw-r--r--src/util/schemas/BanCreateSchema.ts1
-rw-r--r--src/util/schemas/BanModeratorSchema.ts1
-rw-r--r--src/util/schemas/BanRegistrySchema.ts1
-rw-r--r--src/util/schemas/BulkDeleteSchema.ts1
-rw-r--r--src/util/schemas/ChannelModifySchema.ts3
-rw-r--r--src/util/schemas/ChannelPermissionOverwriteSchema.ts2
-rw-r--r--src/util/schemas/ChannelReorderSchema.ts2
-rw-r--r--src/util/schemas/DmChannelCreateSchema.ts1
-rw-r--r--src/util/schemas/EmojiCreateSchema.ts1
-rw-r--r--src/util/schemas/EmojiModifySchema.ts1
-rw-r--r--src/util/schemas/GuildTemplateCreateSchema.ts1
-rw-r--r--src/util/schemas/GuildUpdateWelcomeScreenSchema.ts1
-rw-r--r--src/util/schemas/IdentifySchema.ts4
-rw-r--r--src/util/schemas/InviteCreateSchema.ts1
-rw-r--r--src/util/schemas/LazyRequestSchema.ts2
-rw-r--r--src/util/schemas/LoginSchema.ts1
-rw-r--r--src/util/schemas/MemberChangeSchema.ts1
-rw-r--r--src/util/schemas/MemberNickChangeSchema.ts1
-rw-r--r--src/util/schemas/MessageCreateSchema.ts1
-rw-r--r--src/util/schemas/MfaCodesSchema.ts1
-rw-r--r--src/util/schemas/ModifyGuildStickerSchema.ts1
-rw-r--r--src/util/schemas/PruneSchema.ts1
-rw-r--r--src/util/schemas/PurgeSchema.ts1
-rw-r--r--src/util/schemas/RegisterSchema.ts1
-rw-r--r--src/util/schemas/RelationshipPostSchema.ts1
-rw-r--r--src/util/schemas/RelationshipPutSchema.ts1
-rw-r--r--src/util/schemas/RoleModifySchema.ts1
-rw-r--r--src/util/schemas/RolePositionUpdateSchema.ts2
-rw-r--r--src/util/schemas/TemplateCreateSchema.ts1
-rw-r--r--src/util/schemas/TemplateModifySchema.ts1
-rw-r--r--src/util/schemas/TotpDisableSchema.ts1
-rw-r--r--src/util/schemas/TotpEnableSchema.ts1
-rw-r--r--src/util/schemas/TotpSchema.ts1
-rw-r--r--src/util/schemas/UserModifySchema.ts1
-rw-r--r--src/util/schemas/UserSettingsSchema.ts3
-rw-r--r--src/util/schemas/VanityUrlSchema.ts1
-rw-r--r--src/util/schemas/VoiceStateUpdateSchema.ts4
-rw-r--r--src/util/schemas/WidgetModifySchema.ts1
39 files changed, 18 insertions, 50 deletions
diff --git a/src/util/schemas/ActivitySchema.ts b/src/util/schemas/ActivitySchema.ts
index e18f66c8..d94557ea 100644
--- a/src/util/schemas/ActivitySchema.ts
+++ b/src/util/schemas/ActivitySchema.ts
@@ -11,7 +11,7 @@ export const ActivitySchema = {
 			$created_at: Date,
 			$timestamps: {
 				$start: Number,
-				$end: Number,
+				$end: Number
 			},
 			$application_id: String,
 			$details: String,
@@ -19,28 +19,28 @@ export const ActivitySchema = {
 			$emoji: {
 				$name: String,
 				$id: String,
-				$animated: Boolean,
+				$animated: Boolean
 			},
 			$party: {
 				$id: String,
-				$size: [Number, Number],
+				$size: [Number, Number]
 			},
 			$assets: {
 				$large_image: String,
 				$large_text: String,
 				$small_image: String,
-				$small_text: String,
+				$small_text: String
 			},
 			$secrets: {
 				$join: String,
 				$spectate: String,
-				$match: String,
+				$match: String
 			},
 			$instance: Boolean,
-			$flags: String,
-		},
+			$flags: String
+		}
 	],
-	$since: Number, // unix time (in milliseconds) of when the client went idle, or null if the client is not idle
+	$since: Number // unix time (in milliseconds) of when the client went idle, or null if the client is not idle
 };
 
 export interface ActivitySchema {
diff --git a/src/util/schemas/BanCreateSchema.ts b/src/util/schemas/BanCreateSchema.ts
index 64b02943..834577dc 100644
--- a/src/util/schemas/BanCreateSchema.ts
+++ b/src/util/schemas/BanCreateSchema.ts
@@ -1,4 +1,3 @@
-
 export interface BanCreateSchema {
 	delete_message_days?: string;
 	reason?: string;
diff --git a/src/util/schemas/BanModeratorSchema.ts b/src/util/schemas/BanModeratorSchema.ts
index b497d319..afb76433 100644
--- a/src/util/schemas/BanModeratorSchema.ts
+++ b/src/util/schemas/BanModeratorSchema.ts
@@ -1,4 +1,3 @@
-
 export interface BanModeratorSchema {
 	id: string;
 	user_id: string;
diff --git a/src/util/schemas/BanRegistrySchema.ts b/src/util/schemas/BanRegistrySchema.ts
index 661f934f..501f94dc 100644
--- a/src/util/schemas/BanRegistrySchema.ts
+++ b/src/util/schemas/BanRegistrySchema.ts
@@ -1,4 +1,3 @@
-
 export interface BanRegistrySchema {
 	id: string;
 	user_id: string;
diff --git a/src/util/schemas/BulkDeleteSchema.ts b/src/util/schemas/BulkDeleteSchema.ts
index 26f88374..bfc4df65 100644
--- a/src/util/schemas/BulkDeleteSchema.ts
+++ b/src/util/schemas/BulkDeleteSchema.ts
@@ -1,4 +1,3 @@
-
 export interface BulkDeleteSchema {
 	messages: string[];
 }
diff --git a/src/util/schemas/ChannelModifySchema.ts b/src/util/schemas/ChannelModifySchema.ts
index 3cfcf7d2..f5babef0 100644
--- a/src/util/schemas/ChannelModifySchema.ts
+++ b/src/util/schemas/ChannelModifySchema.ts
@@ -1,6 +1,5 @@
 import { ChannelPermissionOverwriteType, ChannelType } from "..";
 
-
 export interface ChannelModifySchema {
 	/**
 	 * @maxLength 100
@@ -26,4 +25,4 @@ export interface ChannelModifySchema {
 	default_auto_archive_duration?: number;
 	flags?: number;
 	default_thread_rate_limit_per_user?: number;
-}
\ No newline at end of file
+}
diff --git a/src/util/schemas/ChannelPermissionOverwriteSchema.ts b/src/util/schemas/ChannelPermissionOverwriteSchema.ts
index fe9ba860..e8bc13bb 100644
--- a/src/util/schemas/ChannelPermissionOverwriteSchema.ts
+++ b/src/util/schemas/ChannelPermissionOverwriteSchema.ts
@@ -2,4 +2,4 @@ import { ChannelPermissionOverwrite } from "@fosscord/util";
 
 // TODO: Only permissions your bot has in the guild or channel can be allowed/denied (unless your bot has a MANAGE_ROLES overwrite in the channel)
 
-export interface ChannelPermissionOverwriteSchema extends ChannelPermissionOverwrite { }
+export interface ChannelPermissionOverwriteSchema extends ChannelPermissionOverwrite {}
diff --git a/src/util/schemas/ChannelReorderSchema.ts b/src/util/schemas/ChannelReorderSchema.ts
index 3715f59e..95c2eba9 100644
--- a/src/util/schemas/ChannelReorderSchema.ts
+++ b/src/util/schemas/ChannelReorderSchema.ts
@@ -1 +1 @@
-export type ChannelReorderSchema = { id: string; position?: number; lock_permissions?: boolean; parent_id?: string }[];
\ No newline at end of file
+export type ChannelReorderSchema = { id: string; position?: number; lock_permissions?: boolean; parent_id?: string }[];
diff --git a/src/util/schemas/DmChannelCreateSchema.ts b/src/util/schemas/DmChannelCreateSchema.ts
index d5afc6d7..1b0fe86d 100644
--- a/src/util/schemas/DmChannelCreateSchema.ts
+++ b/src/util/schemas/DmChannelCreateSchema.ts
@@ -1,4 +1,3 @@
-
 export interface DmChannelCreateSchema {
 	name?: string;
 	recipients: string[];
diff --git a/src/util/schemas/EmojiCreateSchema.ts b/src/util/schemas/EmojiCreateSchema.ts
index d50c419c..34084713 100644
--- a/src/util/schemas/EmojiCreateSchema.ts
+++ b/src/util/schemas/EmojiCreateSchema.ts
@@ -1,4 +1,3 @@
-
 export interface EmojiCreateSchema {
 	name?: string;
 	image: string;
diff --git a/src/util/schemas/EmojiModifySchema.ts b/src/util/schemas/EmojiModifySchema.ts
index 5529dbd5..05d2d395 100644
--- a/src/util/schemas/EmojiModifySchema.ts
+++ b/src/util/schemas/EmojiModifySchema.ts
@@ -1,4 +1,3 @@
-
 export interface EmojiModifySchema {
 	name?: string;
 	roles?: string[];
diff --git a/src/util/schemas/GuildTemplateCreateSchema.ts b/src/util/schemas/GuildTemplateCreateSchema.ts
index 1579001e..59db8428 100644
--- a/src/util/schemas/GuildTemplateCreateSchema.ts
+++ b/src/util/schemas/GuildTemplateCreateSchema.ts
@@ -1,4 +1,3 @@
-
 export interface GuildTemplateCreateSchema {
 	name: string;
 	avatar?: string | null;
diff --git a/src/util/schemas/GuildUpdateWelcomeScreenSchema.ts b/src/util/schemas/GuildUpdateWelcomeScreenSchema.ts
index b1e36920..c8b8ba4e 100644
--- a/src/util/schemas/GuildUpdateWelcomeScreenSchema.ts
+++ b/src/util/schemas/GuildUpdateWelcomeScreenSchema.ts
@@ -1,4 +1,3 @@
-
 export interface GuildUpdateWelcomeScreenSchema {
 	welcome_channels?: {
 		channel_id: string;
diff --git a/src/util/schemas/IdentifySchema.ts b/src/util/schemas/IdentifySchema.ts
index f3d60fb3..bb5ae0c8 100644
--- a/src/util/schemas/IdentifySchema.ts
+++ b/src/util/schemas/IdentifySchema.ts
@@ -41,10 +41,10 @@ export const IdentifySchema = {
 		$highest_last_message_id: String,
 		$read_state_version: Number,
 		$user_guild_settings_version: Number,
-		$user_settings_version: undefined,
+		$user_settings_version: undefined
 	},
 	$v: Number,
-	$version: Number,
+	$version: Number
 };
 
 export interface IdentifySchema {
diff --git a/src/util/schemas/InviteCreateSchema.ts b/src/util/schemas/InviteCreateSchema.ts
index 7f6af338..cac11147 100644
--- a/src/util/schemas/InviteCreateSchema.ts
+++ b/src/util/schemas/InviteCreateSchema.ts
@@ -1,4 +1,3 @@
-
 export interface InviteCreateSchema {
 	target_user_id?: string;
 	target_type?: string;
diff --git a/src/util/schemas/LazyRequestSchema.ts b/src/util/schemas/LazyRequestSchema.ts
index 1fe658bb..fbed5c5b 100644
--- a/src/util/schemas/LazyRequestSchema.ts
+++ b/src/util/schemas/LazyRequestSchema.ts
@@ -15,5 +15,5 @@ export const LazyRequest = {
 	$typing: Boolean,
 	$threads: Boolean,
 	$members: [] as any[],
-	$thread_member_lists: [] as any[],
+	$thread_member_lists: [] as any[]
 };
diff --git a/src/util/schemas/LoginSchema.ts b/src/util/schemas/LoginSchema.ts
index 358019a8..dc889d94 100644
--- a/src/util/schemas/LoginSchema.ts
+++ b/src/util/schemas/LoginSchema.ts
@@ -1,4 +1,3 @@
-
 export interface LoginSchema {
 	login: string;
 	password: string;
diff --git a/src/util/schemas/MemberChangeSchema.ts b/src/util/schemas/MemberChangeSchema.ts
index a75c0ea0..db434538 100644
--- a/src/util/schemas/MemberChangeSchema.ts
+++ b/src/util/schemas/MemberChangeSchema.ts
@@ -1,4 +1,3 @@
-
 export interface MemberChangeSchema {
 	roles?: string[];
 }
diff --git a/src/util/schemas/MemberNickChangeSchema.ts b/src/util/schemas/MemberNickChangeSchema.ts
index e6a6a007..d863038c 100644
--- a/src/util/schemas/MemberNickChangeSchema.ts
+++ b/src/util/schemas/MemberNickChangeSchema.ts
@@ -1,4 +1,3 @@
-
 export interface MemberNickChangeSchema {
 	nick: string;
 }
diff --git a/src/util/schemas/MessageCreateSchema.ts b/src/util/schemas/MessageCreateSchema.ts
index 7b1cc7b9..bf3470bb 100644
--- a/src/util/schemas/MessageCreateSchema.ts
+++ b/src/util/schemas/MessageCreateSchema.ts
@@ -1,6 +1,5 @@
 import { Embed } from "@fosscord/util";
 
-
 export interface MessageCreateSchema {
 	type?: number;
 	content?: string;
diff --git a/src/util/schemas/MfaCodesSchema.ts b/src/util/schemas/MfaCodesSchema.ts
index 53230841..ac05b9a4 100644
--- a/src/util/schemas/MfaCodesSchema.ts
+++ b/src/util/schemas/MfaCodesSchema.ts
@@ -1,4 +1,3 @@
-
 export interface MfaCodesSchema {
 	password: string;
 	regenerate?: boolean;
diff --git a/src/util/schemas/ModifyGuildStickerSchema.ts b/src/util/schemas/ModifyGuildStickerSchema.ts
index 6f24e4ce..159cc44f 100644
--- a/src/util/schemas/ModifyGuildStickerSchema.ts
+++ b/src/util/schemas/ModifyGuildStickerSchema.ts
@@ -1,4 +1,3 @@
-
 export interface ModifyGuildStickerSchema {
 	/**
 	 * @minLength 2
diff --git a/src/util/schemas/PruneSchema.ts b/src/util/schemas/PruneSchema.ts
index eebac763..bea5e2b4 100644
--- a/src/util/schemas/PruneSchema.ts
+++ b/src/util/schemas/PruneSchema.ts
@@ -1,4 +1,3 @@
-
 export interface PruneSchema {
 	/**
 	 * @min 0
diff --git a/src/util/schemas/PurgeSchema.ts b/src/util/schemas/PurgeSchema.ts
index 0eeef6f2..f5ab0a20 100644
--- a/src/util/schemas/PurgeSchema.ts
+++ b/src/util/schemas/PurgeSchema.ts
@@ -1,4 +1,3 @@
-
 export interface PurgeSchema {
 	before: string;
 	after: string;
diff --git a/src/util/schemas/RegisterSchema.ts b/src/util/schemas/RegisterSchema.ts
index e53330d2..9bbd9db5 100644
--- a/src/util/schemas/RegisterSchema.ts
+++ b/src/util/schemas/RegisterSchema.ts
@@ -1,4 +1,3 @@
-
 export interface RegisterSchema {
 	/**
 	 * @minLength 2
diff --git a/src/util/schemas/RelationshipPostSchema.ts b/src/util/schemas/RelationshipPostSchema.ts
index 40093700..774c67f6 100644
--- a/src/util/schemas/RelationshipPostSchema.ts
+++ b/src/util/schemas/RelationshipPostSchema.ts
@@ -1,4 +1,3 @@
-
 export interface RelationshipPostSchema {
 	discriminator: string;
 	username: string;
diff --git a/src/util/schemas/RelationshipPutSchema.ts b/src/util/schemas/RelationshipPutSchema.ts
index f46966e0..0a7f9720 100644
--- a/src/util/schemas/RelationshipPutSchema.ts
+++ b/src/util/schemas/RelationshipPutSchema.ts
@@ -1,6 +1,5 @@
 import { RelationshipType } from "@fosscord/util";
 
-
 export interface RelationshipPutSchema {
 	type?: RelationshipType;
 }
diff --git a/src/util/schemas/RoleModifySchema.ts b/src/util/schemas/RoleModifySchema.ts
index d08a5022..f3f4a20e 100644
--- a/src/util/schemas/RoleModifySchema.ts
+++ b/src/util/schemas/RoleModifySchema.ts
@@ -1,4 +1,3 @@
-
 export interface RoleModifySchema {
 	name?: string;
 	permissions?: string;
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/TemplateCreateSchema.ts b/src/util/schemas/TemplateCreateSchema.ts
index 72c19f68..160934f5 100644
--- a/src/util/schemas/TemplateCreateSchema.ts
+++ b/src/util/schemas/TemplateCreateSchema.ts
@@ -1,4 +1,3 @@
-
 export interface TemplateCreateSchema {
 	name: string;
 	description?: string;
diff --git a/src/util/schemas/TemplateModifySchema.ts b/src/util/schemas/TemplateModifySchema.ts
index 2231a1d2..f9c9d14b 100644
--- a/src/util/schemas/TemplateModifySchema.ts
+++ b/src/util/schemas/TemplateModifySchema.ts
@@ -1,4 +1,3 @@
-
 export interface TemplateModifySchema {
 	name: string;
 	description?: string;
diff --git a/src/util/schemas/TotpDisableSchema.ts b/src/util/schemas/TotpDisableSchema.ts
index b73db64e..51446e1c 100644
--- a/src/util/schemas/TotpDisableSchema.ts
+++ b/src/util/schemas/TotpDisableSchema.ts
@@ -1,4 +1,3 @@
-
 export interface TotpDisableSchema {
 	code: string;
 }
diff --git a/src/util/schemas/TotpEnableSchema.ts b/src/util/schemas/TotpEnableSchema.ts
index 44d9ebac..4e3551d9 100644
--- a/src/util/schemas/TotpEnableSchema.ts
+++ b/src/util/schemas/TotpEnableSchema.ts
@@ -1,4 +1,3 @@
-
 export interface TotpEnableSchema {
 	password: string;
 	code?: string;
diff --git a/src/util/schemas/TotpSchema.ts b/src/util/schemas/TotpSchema.ts
index fe54735e..941a92ec 100644
--- a/src/util/schemas/TotpSchema.ts
+++ b/src/util/schemas/TotpSchema.ts
@@ -1,4 +1,3 @@
-
 export interface TotpSchema {
 	code: string;
 	ticket: string;
diff --git a/src/util/schemas/UserModifySchema.ts b/src/util/schemas/UserModifySchema.ts
index 659f5841..d69f83f4 100644
--- a/src/util/schemas/UserModifySchema.ts
+++ b/src/util/schemas/UserModifySchema.ts
@@ -1,4 +1,3 @@
-
 export interface UserModifySchema {
 	/**
 	 * @minLength 1
diff --git a/src/util/schemas/UserSettingsSchema.ts b/src/util/schemas/UserSettingsSchema.ts
index b497dff2..eb9b316d 100644
--- a/src/util/schemas/UserSettingsSchema.ts
+++ b/src/util/schemas/UserSettingsSchema.ts
@@ -1,4 +1,3 @@
 import { UserSettings } from "@fosscord/util";
 
-
-export interface UserSettingsSchema extends Partial<UserSettings> { }
+export interface UserSettingsSchema extends Partial<UserSettings> {}
diff --git a/src/util/schemas/VanityUrlSchema.ts b/src/util/schemas/VanityUrlSchema.ts
index de32695a..4dd9b9da 100644
--- a/src/util/schemas/VanityUrlSchema.ts
+++ b/src/util/schemas/VanityUrlSchema.ts
@@ -1,4 +1,3 @@
-
 export interface VanityUrlSchema {
 	/**
 	 * @minLength 1
diff --git a/src/util/schemas/VoiceStateUpdateSchema.ts b/src/util/schemas/VoiceStateUpdateSchema.ts
index 02bb141b..ea286b1a 100644
--- a/src/util/schemas/VoiceStateUpdateSchema.ts
+++ b/src/util/schemas/VoiceStateUpdateSchema.ts
@@ -3,7 +3,7 @@ export const VoiceStateUpdateSchema = {
 	$channel_id: String,
 	self_mute: Boolean,
 	self_deaf: Boolean,
-	self_video: Boolean,
+	self_video: Boolean
 };
 
 //TODO need more testing when community guild and voice stage channel are working
@@ -15,4 +15,4 @@ export interface VoiceStateUpdateSchema {
 	self_mute?: boolean;
 	self_deaf?: boolean;
 	self_video?: boolean;
-}
\ No newline at end of file
+}
diff --git a/src/util/schemas/WidgetModifySchema.ts b/src/util/schemas/WidgetModifySchema.ts
index 390efc30..26d4504f 100644
--- a/src/util/schemas/WidgetModifySchema.ts
+++ b/src/util/schemas/WidgetModifySchema.ts
@@ -1,4 +1,3 @@
-
 export interface WidgetModifySchema {
 	enabled: boolean; // whether the widget is enabled
 	channel_id: string; // the widget channel id