const { codeBlock } = require("discord.js");

const { SlashCommandBuilder, Discord } = require('discord.js');
var abbreviationKey = require("../abbreviation_key.json");

module.exports = {
	data: new SlashCommandBuilder()
		.setName('list_phrases')
		.setDescription('Lists phrases in target phrases.'),
	async execute(interaction, client) {
		await interaction.reply("Here are the current phrases in the phrase list:" + codeBlock("json", JSON.stringify(abbreviationKey.target_phrases, null, " ")));
		console.log("User " + interaction.user.tag + " ran /list_phrases");
	},
};