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(
|
async editOverwrite(
|
||||||
overwrite: OverwriteAsArg,
|
overwrite: OverwriteAsArg,
|
||||||
{
|
{
|
||||||
overriteAllow = OverrideType.ADD,
|
overwriteAllow = OverrideType.ADD,
|
||||||
overriteDeny = OverrideType.ADD
|
overwriteDeny = OverrideType.ADD
|
||||||
}: {
|
}: {
|
||||||
overriteAllow?: OverrideType
|
overwriteAllow?: OverrideType
|
||||||
overriteDeny?: OverrideType
|
overwriteDeny?: OverrideType
|
||||||
}
|
}
|
||||||
): Promise<GuildChannels> {
|
): Promise<GuildChannels> {
|
||||||
const id = typeof overwrite.id === 'string' ? overwrite.id : overwrite.id.id
|
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()
|
allow: Permissions.DEFAULT.toString()
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
overriteAllow: OverrideType.REMOVE
|
overwriteAllow: OverrideType.REMOVE
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
msg.channel.send(`Done!`)
|
msg.channel.send(`Done!`)
|
||||||
|
|
Loading…
Reference in a new issue