mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-13 18:13:29 +01:00
Fix #97 (used new feature to detect old versions)
This commit is contained in:
@@ -20,9 +20,9 @@ var major = parseInt(v[0]),
|
||||
if((major == 0 && minor < 12) || (major == 0 && minor == 12 && patch < 7)) {
|
||||
if(!process.env.OVERRIDE_DISCORD_MIN_VERSION) {
|
||||
throw new Error(
|
||||
`discord.js doesn't support node versions less than 0.12.7.
|
||||
If you /really/ want to run it on this node (${process.version}), then set OVERRIDE_DISCORD_MIN_VERSION as enviroment variable.
|
||||
However, this is unsupported and WILL cause problems`.replace(/\t/g, '')
|
||||
"discord.js doesn't support node versions less than 0.12.7.\n"+
|
||||
"If you /really/ want to run it on this node " + process.version + ", then set OVERRIDE_DISCORD_MIN_VERSION enviroment variable.\n"+
|
||||
"However, this is unsupported and WILL cause problems."
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user