Update EditServers.plugin.js

This commit is contained in:
Mirco Wittrien 2021-09-25 13:45:47 +02:00 committed by GitHub
parent 5c82c991a7
commit d5951a9794
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -403,11 +403,11 @@ module.exports = (_ => {
newGuildObject.acronym = data.shortName && data.shortName.replace(/\s/g, "") || BDFDB.LibraryModules.StringUtils.getAcronym(!data.ignoreCustomName && data.name || nativeObject.name);
if (data.removeIcon) {
newGuildObject.icon = null;
newGuildObject.getIconURL = _ => {return null;};
newGuildObject.getIconURL = _ => null;
}
else if (data.url) {
newGuildObject.icon = data.url;
newGuildObject.getIconURL = _ => {return data.url;};
newGuildObject.getIconURL = _ => data.url;
}
if (data.removeBanner) newGuildObject.banner = null;
else if (data.banner) newGuildObject.banner = data.banner;