fix/ensure-proper-sendError

This commit is contained in:
SowinskiBraeden committed 2023-09-02 19:25:17 -07:00
1 parent 1bc10658dc
commit 40ffeab665
34 files changed
+52 -57

No files matched your search

+2 -2
View File
@@ -197,7 +197,7 @@ module.exports = {
if (!client.exists(guild.playerstats)) guild.playerstats = [];
if (!client.exists(guild.activePlayersChannel)) return;
const channel = client.channels.cache.get(guild.activePlayersChannel);
const channel = client.GetChannel(guild.activePlayersChannel);
let activePlayers = guild.playerstats.filter(p => p.connected == true);
let des = ``;
@@ -223,7 +223,7 @@ module.exports = {
return channel.send({ embeds: [PlayersEmbed, activePlayersEmbed] }).then(sentMessage => {
setTimeout(() => {
sentMessage.delete().catch(error => client.sendError(channel, error));
sentMessage.delete().catch(error => client.sendError(channel, `HandleActivePlayersList Error: \n${error}`));
}, 360000);
});
}