3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-20 16:25:03 +00:00

Change isNaN to Number.isNaN

This commit is contained in:
Usoka 2021-04-16 21:25:55 +12:00 committed by GitHub
parent 694d14d43a
commit a3648f91e5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -111,7 +111,7 @@ export const SetCounterCmd = guildCommand<CountersPluginType>()({
} }
const potentialValue = parseInt(reply.content, 10); const potentialValue = parseInt(reply.content, 10);
if (isNaN(potentialValue)) { if (Number.isNaN(potentialValue)) {
sendErrorMessage(pluginData, message.channel, "Not a number, cancelling"); sendErrorMessage(pluginData, message.channel, "Not a number, cancelling");
return; return;
} }