Fix 0 not being accepted in SetCounterCmd (#186)
This commit is contained in:
parent
00f368d62b
commit
6b9131c353
1 changed files with 1 additions and 1 deletions
|
@ -111,7 +111,7 @@ export const SetCounterCmd = guildCommand<CountersPluginType>()({
|
|||
}
|
||||
|
||||
const potentialValue = parseInt(reply.content, 10);
|
||||
if (!potentialValue) {
|
||||
if (Number.isNaN(potentialValue)) {
|
||||
sendErrorMessage(pluginData, message.channel, "Not a number, cancelling");
|
||||
return;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue