diff --git a/commands/receipts/receiptCommands.js b/commands/receipts/receiptCommands.js index da60ee8..f3cad78 100644 --- a/commands/receipts/receiptCommands.js +++ b/commands/receipts/receiptCommands.js @@ -47,7 +47,7 @@ module.exports = { case 'set': console.log('budget command set'); let override = interaction.options.getBoolean('override') ?? false; - let budget = interaction.options.getB('amount').value; + let budget = interaction.options.get('amount').value; db.prepare(`INSERT OR REPLACE INTO bot_config (id, weekly_budget) VALUES (1, ?)`).run(budget); if (override) { db.prepare(`