diff options
author | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2022-07-02 19:28:35 +1000 |
---|---|---|
committer | Erkin Alp Güney <erkinalp9035@gmail.com> | 2022-07-07 21:53:30 +0300 |
commit | 19515a832a91938415d4d60f30dd98e0611988dc (patch) | |
tree | d159b6df377ba3c9814fadb7ea46349168d935b1 /api/src/routes/channels/#channel_id/permissions.ts | |
parent | Format changed files (diff) | |
download | server-19515a832a91938415d4d60f30dd98e0611988dc.tar.xz |
Typescript-json-schema does not crawl extends
Diffstat (limited to '')
-rw-r--r-- | api/src/routes/channels/#channel_id/permissions.ts | 9 |
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", |