summary refs log tree commit diff
path: root/api/src/routes
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-02 20:41:40 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-02 20:41:40 +1000
commit39f2d99e45a39fdf4888bb1d3bf7aef33d6df246 (patch)
treec5ab943a47c5f4a457ac14e2292ebd718d423162 /api/src/routes
parentTypescript-json-schema does not crawl extends (diff)
downloadserver-39f2d99e45a39fdf4888bb1d3bf7aef33d6df246.tar.xz
Filter out schemas that block generation instead, and also include util in files
Diffstat (limited to 'api/src/routes')
-rw-r--r--api/src/routes/channels/#channel_id/permissions.ts9
1 files changed, 1 insertions, 8 deletions
diff --git a/api/src/routes/channels/#channel_id/permissions.ts b/api/src/routes/channels/#channel_id/permissions.ts
index adf3cc40..2eded853 100644
--- a/api/src/routes/channels/#channel_id/permissions.ts
+++ b/api/src/routes/channels/#channel_id/permissions.ts
@@ -16,14 +16,7 @@ const router: Router = Router();
 
 // 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 {}
-// TODO: typescript-json-schema does not like extending types
-export interface ChannelPermissionOverwriteSchema {
-	allow: string;
-	deny: string;
-	id: string;
-	type: ChannelPermissionOverwriteType;
-}
+export interface ChannelPermissionOverwriteSchema extends ChannelPermissionOverwrite {}
 
 router.put(
 	"/:overwrite_id",