From 1813f0371d57ff9b9d047243431c0331c8f4184a Mon Sep 17 00:00:00 2001 From: KieranRobson Date: Mon, 27 Jun 2022 10:40:12 +0100 Subject: [PATCH] Add Slash Commands - Buy --- SlashCommands/general/buy.js | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 SlashCommands/general/buy.js diff --git a/SlashCommands/general/buy.js b/SlashCommands/general/buy.js new file mode 100644 index 0000000..7e5d6d5 --- /dev/null +++ b/SlashCommands/general/buy.js @@ -0,0 +1,22 @@ +const { Client, CommandInteraction, MessageEmbed } = require("discord.js"); + +module.exports = { + name: "buy", + description: "returns mmembership purchase link", + type: 'CHAT_INPUT', + /** + * + * @param {Client} client + * @param {CommandInteraction} interaction + * @param {String[]} args + */ + run: async (client, interaction, args) => { + const embed = new MessageEmbed() + .setTitle("Thanks for considering to become a paid member!") + .setColor('GREEN') + .setFooter(`Called By: ${interaction.user.tag}`) + .addField('You can purchase from below!','https://hulluniunion.com/shop?aid=304') + interaction.channel.send({ embeds: [embed] }); + }, +}; +