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