const { Command } = require('discord.js-commando');

const Store = require('../../currency/Store');

module.exports = class StoreInfoCommand extends Command {
	constructor(client) {
		super(client, {
			name: 'item-info',
			aliases: ['info-item'],
			group: 'item',
			memberName: 'info',
			description: 'Displays price of an item.',
			display: 'Displays price of an item.',

			args: [
				{
					key: 'item',
					prompt: 'Which item would you like to know the price of?',
					type: 'string'
				}
			]
		});
	}

	async run(msg, args) {
		const item = args.item.toLowerCase();
		const storeItem = Store.getItem(item);
		const storeItemName = storeItem.replace(/(\b\w)/gi, lc => lc.toUpperCase());

		if (!storeItem) return msg.reply(`sorry, but that item doesn't exist. You can use ${this.client.commandPrefix}store-items to get a list of the available items.`);

		return msg.reply(`one ${storeItemName} costs ${storeItem.price} 🍩s`);
	}
};

@@ -620,87 +620,8 @@
 em);
-%0A%09%09const storeItemName = storeItem.replace(/(%5Cb%5Cw)/gi, lc =%3E lc.toUpperCase());
 %0A%0A%09%09
@@ -784,16 +784,101 @@
 ms.%60);%0A%0A
+%09%09const storeItemName = storeItem.name.replace(/(%5Cb%5Cw)/gi, lc =%3E lc.toUpperCase());%0A%0A
 %09%09return

Fix storeItem name