Add interfaces for channel edit

This commit is contained in:
Helloyunho 2020-12-20 17:14:57 +09:00
parent dd70d96d50
commit dced786e60
1 changed files with 55 additions and 0 deletions

View File

@ -55,6 +55,61 @@ export interface GuildCategoryChannelPayload
extends ChannelPayload,
GuildChannelPayload {}
export interface ModifyChannelPayload {
name?: string
position?: number | null
permission_overwrites?: Overwrite[] | null
parent_id?: string
}
export interface ModifyGuildCategoryChannelPayload
extends ModifyChannelPayload {}
export interface ModifyGuildTextChannelPayload extends ModifyChannelPayload {
type?: number
topic?: string | null
nsfw?: boolean | null
rate_limit_per_user?: number | null
}
export interface ModifyGuildNewsChannelPayload extends ModifyChannelPayload {
type?: number
topic?: string | null
nsfw?: boolean | null
}
export interface ModifyVoiceChannelPayload extends ModifyChannelPayload {
bitrate?: number | null
user_limit?: number | null
}
export interface ModifyChannelOption {
name?: string
position?: number | null
permissionOverwrites?: Overwrite[] | null
parentID?: string
}
export interface ModifyGuildCategoryChannelOption extends ModifyChannelOption {}
export interface ModifyGuildTextChannelOption extends ModifyChannelOption {
type?: number
topic?: string | null
nsfw?: boolean | null
rateLimitPerUser?: number | null
}
export interface ModifyGuildNewsChannelOption extends ModifyChannelOption {
type?: number
topic?: string | null
nsfw?: boolean | null
}
export interface ModifyVoiceChannelOption extends ModifyChannelOption {
bitrate?: number | null
userLimit?: number | null
}
export interface Overwrite {
id: string
type: number