Remove nsfw property in some channels
Some guild channels can't be a nsfw channel
This commit is contained in:
parent
b0da81f308
commit
837f045bdd
1 changed files with 2 additions and 1 deletions
|
@ -18,13 +18,13 @@ export interface GuildChannelPayload extends ChannelPayload {
|
||||||
name: string
|
name: string
|
||||||
position: number
|
position: number
|
||||||
permission_overwrites: Overwrite[]
|
permission_overwrites: Overwrite[]
|
||||||
nsfw: boolean
|
|
||||||
parent_id?: string
|
parent_id?: string
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GuildTextChannelPayload
|
export interface GuildTextChannelPayload
|
||||||
extends TextChannelPayload,
|
extends TextChannelPayload,
|
||||||
GuildChannelPayload {
|
GuildChannelPayload {
|
||||||
|
nsfw: boolean
|
||||||
rate_limit_per_user: number
|
rate_limit_per_user: number
|
||||||
topic?: string
|
topic?: string
|
||||||
}
|
}
|
||||||
|
@ -33,6 +33,7 @@ export interface GuildNewsChannelPayload
|
||||||
extends TextChannelPayload,
|
extends TextChannelPayload,
|
||||||
GuildChannelPayload {
|
GuildChannelPayload {
|
||||||
topic?: string
|
topic?: string
|
||||||
|
nsfw: boolean
|
||||||
}
|
}
|
||||||
|
|
||||||
export interface GuildVoiceChannelPayload extends GuildChannelPayload {
|
export interface GuildVoiceChannelPayload extends GuildChannelPayload {
|
||||||
|
|
Loading…
Reference in a new issue