Skip to content

Commit

Permalink
fix(PermissionOverwrites): optional allow/deny OverwriteData (#5810)
Browse files Browse the repository at this point in the history
  • Loading branch information
JKLorenzo committed Jun 11, 2021
1 parent 935f819 commit a7ebb21
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/structures/PermissionOverwrites.js
Expand Up @@ -178,8 +178,8 @@ class PermissionOverwrites {
return {
id: overwrite.id,
type: OverwriteTypes[overwrite.type],
allow: Permissions.resolve(overwrite.allow).toString(),
deny: Permissions.resolve(overwrite.deny).toString(),
allow: Permissions.resolve(overwrite.allow ?? Permissions.defaultBit).toString(),
deny: Permissions.resolve(overwrite.deny ?? Permissions.defaultBit).toString(),
};
}

Expand All @@ -190,8 +190,8 @@ class PermissionOverwrites {
return {
id: userOrRole.id,
type,
allow: Permissions.resolve(overwrite.allow).toString(),
deny: Permissions.resolve(overwrite.deny).toString(),
allow: Permissions.resolve(overwrite.allow ?? Permissions.defaultBit).toString(),
deny: Permissions.resolve(overwrite.deny ?? Permissions.defaultBit).toString(),
};
}
}
Expand Down

0 comments on commit a7ebb21

Please sign in to comment.