simplify GetGuild return
This commit is contained in:
1 file changed
+2
-3
@@ -227,7 +227,7 @@ class QuarksBot extends Client {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
let guildData = {
|
return {
|
||||||
serverID: GuildId,
|
serverID: GuildId,
|
||||||
customChannelStatus: guild.server.allowedChannels.length > 0 ? true : false, // not stored but calculated after
|
customChannelStatus: guild.server.allowedChannels.length > 0 ? true : false, // not stored but calculated after
|
||||||
allowedChannels: guild.server.allowedChannels,
|
allowedChannels: guild.server.allowedChannels,
|
||||||
@@ -246,8 +246,7 @@ class QuarksBot extends Client {
|
|||||||
casinoMultiplier: guild.server.casinoMultiplier,
|
casinoMultiplier: guild.server.casinoMultiplier,
|
||||||
canDismissInvoices: guild.server.canDismissInvoices,
|
canDismissInvoices: guild.server.canDismissInvoices,
|
||||||
workLimiter: guild.server.workLimiter,
|
workLimiter: guild.server.workLimiter,
|
||||||
}
|
};
|
||||||
return guildData;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
log(Text) { this.logger.log(Text); }
|
log(Text) { this.logger.log(Text); }
|
||||||
|
|||||||
Reference in new issue
Block a user