fix/alarmpingqueue handler type / thanks Perrelos

This commit is contained in:
SowinskiBraeden committed 2024-01-11 12:10:44 -08:00
1 parent 65534ea96e
commit 0823f7bf7c
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -1,6 +1,6 @@
{ {
"name": "dayzr-bot", "name": "dayzr-bot",
"version": "12.5.6", "version": "12.5.7",
"description": "A General Purpose Discord Bot for DayZ Nitrado Servers.", "description": "A General Purpose Discord Bot for DayZ Nitrado Servers.",
"main": "index.js", "main": "index.js",
"nodemonConfig": { "nodemonConfig": {
+1 -1
View File
@@ -184,7 +184,7 @@ class DayzRBot extends Client {
// Handle alarm pings // Handle alarm pings
const maxEmbed = 10; const maxEmbed = 10;
for (const [channel_id, data] of Object.entrries(this.alarmPingQueue)) { for (const [channel_id, data] of Object.entries(this.alarmPingQueue)) {
const channel = this.GetChannel(channel_id); const channel = this.GetChannel(channel_id);
if (!channel) continue; if (!channel) continue;
for (const [role, embeds] of Object.entries(data)) { for (const [role, embeds] of Object.entries(data)) {