From c96d2e9bd885f927c12b6bb711301091e51e5477 Mon Sep 17 00:00:00 2001 From: Madeline <46743919+MaddyUnderStars@users.noreply.github.com> Date: Mon, 24 Oct 2022 19:46:33 +1100 Subject: Forgot some schemas + only generate schemas in util/schemas + add setup script --- src/util/schemas/ChannelReorderSchema.ts | 6 ++++++ src/util/schemas/RolePositionUpdateSchema.ts | 4 ++++ src/util/schemas/index.ts | 4 +++- 3 files changed, 13 insertions(+), 1 deletion(-) create mode 100644 src/util/schemas/ChannelReorderSchema.ts create mode 100644 src/util/schemas/RolePositionUpdateSchema.ts (limited to 'src/util') diff --git a/src/util/schemas/ChannelReorderSchema.ts b/src/util/schemas/ChannelReorderSchema.ts new file mode 100644 index 00000000..6eb4cdd5 --- /dev/null +++ b/src/util/schemas/ChannelReorderSchema.ts @@ -0,0 +1,6 @@ +export type ChannelReorderSchema = { + id: string; + position?: number; + lock_permissions?: boolean; + parent_id?: string; +}[]; \ No newline at end of file diff --git a/src/util/schemas/RolePositionUpdateSchema.ts b/src/util/schemas/RolePositionUpdateSchema.ts new file mode 100644 index 00000000..1019d504 --- /dev/null +++ b/src/util/schemas/RolePositionUpdateSchema.ts @@ -0,0 +1,4 @@ +export type RolePositionUpdateSchema = { + id: string; + position: number; +}[]; \ No newline at end of file diff --git a/src/util/schemas/index.ts b/src/util/schemas/index.ts index ba9e71e4..8881b247 100644 --- a/src/util/schemas/index.ts +++ b/src/util/schemas/index.ts @@ -42,4 +42,6 @@ export * from "./LazyRequestSchema"; export * from "./GuildUpdateSchema"; export * from "./ChannelPermissionOverwriteSchema"; export * from "./UserGuildSettingsSchema"; -export * from "./GatewayPayloadSchema" \ No newline at end of file +export * from "./GatewayPayloadSchema"; +export * from "./RolePositionUpdateSchema"; +export * from "./ChannelReorderSchema"; \ No newline at end of file -- cgit 1.5.1