fix typo
This commit is contained in:
parent
37de39daa7
commit
4dc18f7266
3 changed files with 26 additions and 26 deletions
|
@ -257,11 +257,11 @@ export class GuildChannel extends Channel {
|
|||
async editOverwrite(
|
||||
overwrite: OverwriteAsArg,
|
||||
{
|
||||
overriteAllow = OverrideType.ADD,
|
||||
overriteDeny = OverrideType.ADD
|
||||
overwriteAllow = OverrideType.ADD,
|
||||
overwriteDeny = OverrideType.ADD
|
||||
}: {
|
||||
overriteAllow?: OverrideType
|
||||
overriteDeny?: OverrideType
|
||||
overwriteAllow?: OverrideType
|
||||
overwriteDeny?: OverrideType
|
||||
}
|
||||
): Promise<GuildChannels> {
|
||||
const id = typeof overwrite.id === 'string' ? overwrite.id : overwrite.id.id
|
||||
|
|
|
@ -246,7 +246,7 @@ client.on('messageCreate', async (msg: Message) => {
|
|||
allow: Permissions.DEFAULT.toString()
|
||||
},
|
||||
{
|
||||
overriteAllow: OverrideType.REMOVE
|
||||
overwriteAllow: OverrideType.REMOVE
|
||||
}
|
||||
)
|
||||
msg.channel.send(`Done!`)
|
||||
|
|
|
@ -36,7 +36,7 @@ export interface GuildTextChannelPayload extends GuildTextBasedChannelPayload {
|
|||
rate_limit_per_user: number
|
||||
}
|
||||
|
||||
export interface GuildNewsChannelPayload extends GuildTextBasedChannelPayload {}
|
||||
export interface GuildNewsChannelPayload extends GuildTextBasedChannelPayload { }
|
||||
|
||||
export interface GuildVoiceChannelPayload extends GuildChannelPayload {
|
||||
bitrate: string
|
||||
|
@ -55,7 +55,7 @@ export interface GroupDMChannelPayload extends DMChannelPayload {
|
|||
|
||||
export interface GuildCategoryChannelPayload
|
||||
extends ChannelPayload,
|
||||
GuildChannelPayload {}
|
||||
GuildChannelPayload { }
|
||||
|
||||
export interface ModifyChannelPayload {
|
||||
name?: string
|
||||
|
@ -66,7 +66,7 @@ export interface ModifyChannelPayload {
|
|||
}
|
||||
|
||||
export interface ModifyGuildCategoryChannelPayload
|
||||
extends ModifyChannelPayload {}
|
||||
extends ModifyChannelPayload { }
|
||||
|
||||
export interface ModifyGuildTextBasedChannelPayload
|
||||
extends ModifyChannelPayload {
|
||||
|
@ -80,7 +80,7 @@ export interface ModifyGuildTextChannelPayload
|
|||
}
|
||||
|
||||
export interface ModifyGuildNewsChannelPayload
|
||||
extends ModifyGuildTextBasedChannelPayload {}
|
||||
extends ModifyGuildTextBasedChannelPayload { }
|
||||
|
||||
export interface ModifyVoiceChannelPayload extends ModifyChannelPayload {
|
||||
bitrate?: number | null
|
||||
|
@ -95,7 +95,7 @@ export interface ModifyChannelOption {
|
|||
nsfw?: boolean | null
|
||||
}
|
||||
|
||||
export interface ModifyGuildCategoryChannelOption extends ModifyChannelOption {}
|
||||
export interface ModifyGuildCategoryChannelOption extends ModifyChannelOption { }
|
||||
|
||||
export interface ModifyGuildTextBasedChannelOption extends ModifyChannelOption {
|
||||
type?: number
|
||||
|
@ -108,7 +108,7 @@ export interface ModifyGuildTextChannelOption
|
|||
}
|
||||
|
||||
export interface ModifyGuildNewsChannelOption
|
||||
extends ModifyGuildTextBasedChannelOption {}
|
||||
extends ModifyGuildTextBasedChannelOption { }
|
||||
|
||||
export interface ModifyVoiceChannelOption extends ModifyChannelOption {
|
||||
bitrate?: number | null
|
||||
|
|
Loading…
Reference in a new issue