Update EditServers.plugin.js
This commit is contained in:
parent
483801de2a
commit
79f801bda0
|
@ -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);
|
||||||
|
|
Loading…
Reference in New Issue