text: const {
  	CommandInteraction,
  	MessageEmbed
  } = require("discord.js");
  
  
  module.exports = {
  	name: "kick",
  	description: "Kicks Target",
  	permission: "KICK_MEMBERS",
  	usage: "/Kick [Target] [REASON] [MESSAGES]",
  	options: [{
  			name: "user",
  			description: "Provide A User To Kick.",
  			type: "USER",
  			required: true
  		},
  		{
  			name: "messages",
  			description: "Provide A Number Of Days For Their To Messages To Be Deleted Up To.",
  			type: "STRING",
  			required: true,
  			choices: [{
  					name: "Don't Delete Any",
  					value: "0"
  				},
  				{
  					name: "Delete Up To Seven Days",
  					value: "7"
  				}
  			]
  		},
  		{
  			name: "reason",
  			description: "Provide A Reason For The Kick.",
  			type: "STRING",
  			required: false
  		},
  	],
  	/**
  	 * @param {CommandInteraction} interaction
  	 */
  	async execute(interaction) {
  		const options = interaction.options
  		const target = options.getMember("user");
  		const reason = options.getString("reason");
  
  		if (target.id === interaction.member.id)
  			return interaction.reply({
  				embeds: [new MessageEmbed().setTitle("❌ Error ❌").setColor("RED")
  				.setDescription(`Hey... ${interaction.user.username} Why Are You Trying To Kick Yourself....?`).setTimestamp()
  				],
  				ephemeral: true
  			});
  
  		if (target.permissions.has("KICK_MEMBERS"))
  			return interaction.reply({
  				embeds: [new MessageEmbed().setTitle("❌ Error ❌").setColor("RED")
  				.setDescription(`${target.user.username} Is An Admin....?`).setTimestamp()
  			],
  				ephemeral: true
  			});
  
  		if (reason.length > 512)
  			return interaction.reply({
  				embeds: [new MessageEmbed().setTitle("❌ Error ❌").setColor("RED")
  					.setDescription("Reason Can't Be More Than 512 Characters").setTimestamp()
  				],
  				ephemeral: true
  			});
  
  		const DMEmbed = new MessageEmbed()
  			.setTitle(`You've Been Kicked From ${interaction.guild.name}`)
  			.setColor('RED')
  			.setTimestamp()
  			.addFields({
  				name: "Reason:",
  				value: `\`\`\`${reason}\`\`\``
  			}, {
  				name: "Kicked By:",
  				value: `\`\`\`${interaction.member.user.tag}\`\`\``
  			}, ).catch(console.error);
  
  		await target.send({
  			embeds: [DMEmbed]
  		}).catch((err) => {
  			console.log(err)
  		});
  
  		const Amount = options.getString("messages");
  
  		target.kick({
  			days: Amount,
  			reason: reason
  		})
  
  		interaction.reply({
  			embeds: [new MessageEmbed().setColor("GREEN").setDescription(`🟢 **${target.user.username}** Has Been Kicked From ${interaction.guild.name} 🟢`)],
  			ephemeral: true
  		});
  
  	}
  }