summary refs log tree commit diff
path: root/src/util/schemas
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-24 18:55:14 +1100
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-12-24 18:55:14 +1100
commit91010235b92ad4bf16f0377a70dc3b862641b8ee (patch)
treed46ac46b7d4762465fe41d642228c411a17a70f9 /src/util/schemas
parentFix creating bot accounts (diff)
downloadserver-91010235b92ad4bf16f0377a70dc3b862641b8ee.tar.xz
OAuth2 authorize bot flow
Diffstat (limited to '')
-rw-r--r--src/util/schemas/ApplicationAuthorizeSchema.ts7
-rw-r--r--src/util/schemas/index.ts3
2 files changed, 9 insertions, 1 deletions
diff --git a/src/util/schemas/ApplicationAuthorizeSchema.ts b/src/util/schemas/ApplicationAuthorizeSchema.ts
new file mode 100644
index 00000000..1a0aae0f
--- /dev/null
+++ b/src/util/schemas/ApplicationAuthorizeSchema.ts
@@ -0,0 +1,7 @@
+export interface ApplicationAuthorizeSchema {
+	authorize: boolean;
+	guild_id: string;
+	permissions: string;
+	captcha_key?: string;
+	code?: string;	// 2fa code
+}
\ No newline at end of file
diff --git a/src/util/schemas/index.ts b/src/util/schemas/index.ts
index a03cebe2..be4be0c7 100644
--- a/src/util/schemas/index.ts
+++ b/src/util/schemas/index.ts
@@ -58,4 +58,5 @@ export * from "./ChannelReorderSchema";
 export * from "./UserSettingsSchema";
 export * from "./BotModifySchema";
 export * from "./ApplicationModifySchema";
-export * from "./ApplicationCreateSchema";
\ No newline at end of file
+export * from "./ApplicationCreateSchema";
+export * from "./ApplicationAuthorizeSchema";
\ No newline at end of file