Skip to content

Commit

Permalink
fix(PermissionsOverwrites): only convert type if number (#6092)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattIPv4 committed Jul 12, 2021
1 parent a8984bc commit dee5c83
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/structures/PermissionOverwrites.js
Expand Up @@ -36,7 +36,7 @@ class PermissionOverwrites extends Base {
* The type of this overwrite
* @type {OverwriteType}
*/
this.type = OverwriteTypes[data.type];
this.type = typeof data.type === 'number' ? OverwriteTypes[data.type] : data.type;

/**
* The permissions that are denied for the user or role.
Expand Down

0 comments on commit dee5c83

Please sign in to comment.