From 2aa370df76e9b33235b5844a5eaaa3935b4ca79e Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Thu, 27 Oct 2022 11:23:35 -0700 Subject: [PATCH] Discord NodeJS version fix. --- meshcentral.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meshcentral.js b/meshcentral.js index 3576c614..298383d6 100644 --- a/meshcentral.js +++ b/meshcentral.js @@ -4029,7 +4029,7 @@ function mainStart() { // Messaging support if (config.messaging != null) { if (config.messaging.telegram != null) { modules.push('telegram'); modules.push('input'); } - if (config.messaging.discord != null) { if (nodeVersion >= 17) { modules.push('discord.js@14.6.0'); } else { delete config.messaging.discord; addServerWarning('This NodeJS version does not support Discord.js.', 25); } } + if (config.messaging.discord != null) { if (nodeVersion >= 17) { modules.push('discord.js@14.6.0'); } else { delete config.messaging.discord; addServerWarning('This NodeJS version does not support Discord.js.', 26); } } } // Setup web based push notifications