mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-15 02:53:31 +01:00
fix(PermissionsOverwrites): only convert type if number (#6092)
This commit is contained in:
committed by
GitHub
parent
a8984bc68c
commit
dee5c83fc0
@@ -36,7 +36,7 @@ class PermissionOverwrites extends Base {
|
|||||||
* The type of this overwrite
|
* The type of this overwrite
|
||||||
* @type {OverwriteType}
|
* @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.
|
* The permissions that are denied for the user or role.
|
||||||
|
|||||||
Reference in New Issue
Block a user