Update EditRoles.plugin.js
This commit is contained in:
parent
76810b989b
commit
aa7d5cab65
|
@ -107,7 +107,6 @@ module.exports = (_ => {
|
||||||
}
|
}
|
||||||
}});
|
}});
|
||||||
BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.RoleIconUtils, "canGuildUseRoleIcons", {after: e => {
|
BDFDB.PatchUtils.patch(this, BDFDB.LibraryModules.RoleIconUtils, "canGuildUseRoleIcons", {after: e => {
|
||||||
if (e.returnValue === false && Object.keys(e.methodArguments[0].roles).some(roleId => changedRoles[roleId] && changedRoles[roleId].icon)) console.log(2, e);
|
|
||||||
if (e.returnValue === false && Object.keys(e.methodArguments[0].roles).some(roleId => changedRoles[roleId] && changedRoles[roleId].icon)) return true;
|
if (e.returnValue === false && Object.keys(e.methodArguments[0].roles).some(roleId => changedRoles[roleId] && changedRoles[roleId].icon)) return true;
|
||||||
}});
|
}});
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue