fix/killfeed not updating #50

This commit is contained in:
SowinskiBraeden committed 2025-03-15 10:43:28 -07:00
1 parent 8249feaf62
commit df6b9140ec
3 files changed
+4 -4

No files matched your search

+1 -1
View File
@@ -186,7 +186,7 @@ module.exports = {
// channel.send({ content: `<@&${alarm.role}>`, embeds: [alarmEmbed] });
BanPlayer(client, data.killer);
break;
break;
}
}
return;
+2 -2
View File
@@ -154,7 +154,7 @@ module.exports = {
await UpdatePlayer(client, victimStat);
if (!channel) return;
const webhook = await GetWebhook(this, NAME, guild.killfeedChannel);
const webhook = await GetWebhook(client, NAME, guild.killfeedChannel);
WebhookSend(client, webhook, { embeds: [killEvent]});
// if (client.exists(channel)) await channel.send({ embeds: [killEvent] });
@@ -277,7 +277,7 @@ module.exports = {
if (!channel) return;
const webhook = await GetWebhook(this, NAME, guild.killfeedChannel);
const webhook = await GetWebhook(client, NAME, guild.killfeedChannel);
WebhookSend(client, webhook, { embeds: [killEvent] });
if (client.exists(receivedBounty) && client.exists(channel)) WebhookSend(client, webhook, { content: `<@${killerStat.discordID}>`, embeds: [receivedBounty] });