This commit is contained in:
DjDeveloperr 2021-03-29 10:10:26 +05:30
parent 37de39daa7
commit 4dc18f7266
3 changed files with 26 additions and 26 deletions

View file

@ -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

View file

@ -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!`)