mirror of
https://github.com/spacebarchat/server.git
synced 2026-05-27 00:55:07 +00:00
Filter out schemas that block generation instead, and also include util in files
This commit is contained in:
committed by
Erkin Alp Güney
parent
0095318a25
commit
7d98ef9727
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user