mirror of
https://github.com/toast-ts/Daggerbot-TS.git
synced 2024-11-17 16:30:58 -05:00
Oversight on isActive flag
This commit is contained in:
parent
bb1b0a2637
commit
197c6b7229
@ -78,7 +78,7 @@ export default async(client:TClient)=>{
|
||||
// Fetch the list of servers from Redis and submit the array to newServerEntry, note that the server's
|
||||
// embed can appear in different order on each cache pull, that's how Redis displays the servers in the array.
|
||||
const cachedServers = await client.MPServer.findInCache();
|
||||
let srvEmbedArray = await Promise.all(cachedServers.map(srv=>newServerEntry(srv)));
|
||||
let srvEmbedArray = await Promise.all(cachedServers.filter(s=>s.isActive).map(srv=>newServerEntry(srv)));
|
||||
message.edit({content: refreshIntrvlTxt, embeds: srvEmbedArray});
|
||||
|
||||
// Locate the Multifarm server via port and call the webhook with that server's details. (Adddi's server)
|
||||
|
Loading…
Reference in New Issue
Block a user