Discord NodeJS version fix.
Ylian Saint-Hilaire committed
Oct 27, 2022 at 11:23 UTC
2aa370df76e9b33235b5844a5eaaa3935b4ca79e
1 file changed
+1
-1
meshcentral.js
+1
-1
@@ -4029,7 +4029,7 @@ function mainStart() {
4029
// Messaging support
4030
if (config.messaging != null) {
4031
if (config.messaging.telegram != null) { modules.push('telegram'); modules.push('input'); }
4032
- 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); } }
4032
+ 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); } }
4033
}
4034
4035
// Setup web based push notifications