mirror of
https://github.com/Ylianst/MeshCentral.git
synced 2024-12-26 23:25:53 -05:00
Discord NodeJS version fix.
This commit is contained in:
parent
c94ddfcf5c
commit
2aa370df76
@ -4029,7 +4029,7 @@ function mainStart() {
|
|||||||
// Messaging support
|
// Messaging support
|
||||||
if (config.messaging != null) {
|
if (config.messaging != null) {
|
||||||
if (config.messaging.telegram != null) { modules.push('telegram'); modules.push('input'); }
|
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
|
// Setup web based push notifications
|
||||||
|
Loading…
Reference in New Issue
Block a user