summary refs log tree commit diff
path: root/api/src
diff options
context:
space:
mode:
authorMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-02 19:29:15 +1000
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2022-07-02 19:29:15 +1000
commitfc255ca89a8c4682ff38f1546fff3e1efb1085ac (patch)
tree334dea637976782a4d1f329fb4d846bb2648d690 /api/src
parentUpdate oauth url (diff)
parentTypescript-json-schema does not crawl extends (diff)
downloadserver-fc255ca89a8c4682ff38f1546fff3e1efb1085ac.tar.xz
Merge branch 'fix/channelPermissionOverwriteSchema' into slowcord
Diffstat (limited to 'api/src')
-rw-r--r--api/src/routes/channels/#channel_id/permissions.ts9
1 files changed, 8 insertions, 1 deletions
diff --git a/api/src/routes/channels/#channel_id/permissions.ts b/api/src/routes/channels/#channel_id/permissions.ts
index 2eded853..adf3cc40 100644
--- a/api/src/routes/channels/#channel_id/permissions.ts
+++ b/api/src/routes/channels/#channel_id/permissions.ts
@@ -16,7 +16,14 @@ 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 {}
+// 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;
+}
 
 router.put(
 	"/:overwrite_id",