Update EditServers.plugin.js

This commit is contained in:
Mirco Wittrien 2019-12-02 20:09:59 +01:00
parent 483801de2a
commit 79f801bda0
1 changed files with 2 additions and 2 deletions

View File

@ -3,7 +3,7 @@
class EditServers {
getName () {return "EditServers";}
getVersion () {return "2.1.4";}
getVersion () {return "2.1.5";}
getAuthor () {return "DevilBro";}
@ -317,7 +317,7 @@ class EditServers {
getGuildData (guildId, change = true) {
let guild = BDFDB.LibraryModules.GuildStore.getGuild(guildId);
if (!guild) return {};
if (!guild) return new BDFDB.DiscordObjects.Guild({});
let data = change && BDFDB.DataUtils.load(this, "servers", guild.id);
if (data) {
let newGuildObject = {}, nativeObject = new BDFDB.DiscordObjects.Guild(guild);