We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6969626 commit 500a8a3Copy full SHA for 500a8a3
src/commandDetails/coin/update.ts
@@ -23,7 +23,7 @@ const coinUpdateExecuteCommand: SapphireMessageExecuteType = async (client, mess
23
24
// Second mandatory argument is amount
25
const amount = args['amount'];
26
- if (!amount) {
+ if (typeof amount !== 'number') {
27
throw new Error('please enter a valid amount to adjust.');
28
}
29
0 commit comments