lol i forgot to save

This commit is contained in:
DjDeveloperr 2021-03-29 10:15:09 +05:30
parent 4dc18f7266
commit 004bf22126

View file

@ -274,9 +274,9 @@ export class GuildChannel extends Channel {
if (
overwrite.allow !== undefined &&
overriteAllow !== OverrideType.REPLACE
overwriteAllow !== OverrideType.REPLACE
) {
switch (overriteAllow) {
switch (overwriteAllow) {
case OverrideType.ADD: {
const originalAllow = new Permissions(overwrites[index].allow)
const newAllow = new Permissions(overwrite.allow)
@ -299,8 +299,8 @@ export class GuildChannel extends Channel {
: overwrite.allow?.toJSON() ?? overwrites[index].allow
}
if (overwrite.deny !== undefined && overriteDeny !== OverrideType.REPLACE) {
switch (overriteDeny) {
if (overwrite.deny !== undefined && overwriteDeny !== OverrideType.REPLACE) {
switch (overwriteDeny) {
case OverrideType.ADD: {
const originalDeny = new Permissions(overwrites[index].deny)
const newDeny = new Permissions(overwrite.deny)