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:
parent
694d14d43a
commit
a3648f91e5
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue