lol i forgot to save
This commit is contained in:
parent
4dc18f7266
commit
004bf22126
1 changed files with 4 additions and 4 deletions
|
@ -274,9 +274,9 @@ export class GuildChannel extends Channel {
|
||||||
|
|
||||||
if (
|
if (
|
||||||
overwrite.allow !== undefined &&
|
overwrite.allow !== undefined &&
|
||||||
overriteAllow !== OverrideType.REPLACE
|
overwriteAllow !== OverrideType.REPLACE
|
||||||
) {
|
) {
|
||||||
switch (overriteAllow) {
|
switch (overwriteAllow) {
|
||||||
case OverrideType.ADD: {
|
case OverrideType.ADD: {
|
||||||
const originalAllow = new Permissions(overwrites[index].allow)
|
const originalAllow = new Permissions(overwrites[index].allow)
|
||||||
const newAllow = new Permissions(overwrite.allow)
|
const newAllow = new Permissions(overwrite.allow)
|
||||||
|
@ -299,8 +299,8 @@ export class GuildChannel extends Channel {
|
||||||
: overwrite.allow?.toJSON() ?? overwrites[index].allow
|
: overwrite.allow?.toJSON() ?? overwrites[index].allow
|
||||||
}
|
}
|
||||||
|
|
||||||
if (overwrite.deny !== undefined && overriteDeny !== OverrideType.REPLACE) {
|
if (overwrite.deny !== undefined && overwriteDeny !== OverrideType.REPLACE) {
|
||||||
switch (overriteDeny) {
|
switch (overwriteDeny) {
|
||||||
case OverrideType.ADD: {
|
case OverrideType.ADD: {
|
||||||
const originalDeny = new Permissions(overwrites[index].deny)
|
const originalDeny = new Permissions(overwrites[index].deny)
|
||||||
const newDeny = new Permissions(overwrite.deny)
|
const newDeny = new Permissions(overwrite.deny)
|
||||||
|
|
Loading…
Reference in a new issue