diff --git a/src/commands/limits_setramnotification.ts b/src/commands/limits_setramnotification.ts index aa60271..4ecf5be 100644 --- a/src/commands/limits_setramnotification.ts +++ b/src/commands/limits_setramnotification.ts @@ -19,7 +19,7 @@ export default class Limits_SetRAMNotification extends Command { if (Number(args[0]) >= tier.resourceLimits.ram) return message.channel.createMessage(`***${this.client.stores.emojis.error} You cannot set your notification limit to be set to or above your hard limit.***`); if (Number(args[0]) < 0) return message.channel.createMessage(`***${this.client.stores.emojis.error} You cannot set your notification limit to a negative number.***`); if (Number(args[0]) === 0) { - await account.updateOne({ $set: { ramLimitNotification: -1 } }); + await account.updateOne({ $set: { ramLimitNotification: 0 } }); return message.channel.createMessage(`***${this.client.stores.emojis.success} You have disabled notifications.***`); } await account.updateOne({ $set: { ramLimitNotification: Number(args[0]) } });