Update EditRoles.plugin.js

This commit is contained in:
Mirco Wittrien 2023-07-25 12:40:13 +02:00
parent 76810b989b
commit aa7d5cab65
1 changed files with 0 additions and 1 deletions

View File

@ -107,7 +107,6 @@ module.exports = (_ => {
}
}});
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;
}});