Skip to content

Commit

Permalink
Discord NodeJS version fix.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ylianst committed Oct 27, 2022
1 parent c94ddfc commit 2aa370d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion meshcentral.js
Expand Up @@ -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
Expand Down

0 comments on commit 2aa370d

Please sign in to comment.