Removed sendOnline static method from Server class
This commit is contained in:
parent
c227097f37
commit
139e8dcfca
|
@ -55,19 +55,6 @@ class Server {
|
|||
}
|
||||
}
|
||||
|
||||
static sendOnline(status, channel) {
|
||||
let playerCount = 0;
|
||||
let embed = new Discord.MessageEmbed()
|
||||
.setThumbnail("https://www.circlecraft.info/images/circlecraft_discord.png")
|
||||
.setColor(0x44ff44);
|
||||
status.forEach(function (s) {
|
||||
if ( !s.tested ) return;
|
||||
if ( s.players.length > 0 ) embed.addField("**" + s.name + "**:", s.players.join(', '), false);
|
||||
});
|
||||
embed.setTitle("Players Currently Online: " + playerCount);
|
||||
channel.send(embed);
|
||||
}
|
||||
|
||||
sendDetails(channel, hostStatus, serverStatus, serverTPS, queryStatus = {}) {
|
||||
let embed = new Discord.MessageEmbed()
|
||||
.setTitle(this.name + " *(" + this.slug + ")*")
|
||||
|
|
Loading…
Reference in New Issue
Block a user