diff --git a/SlashCommands/general/buy.js b/SlashCommands/general/buy.js index 7e5d6d5..4dfc5ed 100644 --- a/SlashCommands/general/buy.js +++ b/SlashCommands/general/buy.js @@ -16,7 +16,7 @@ module.exports = { .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] }); + interaction.followUp({ embeds: [embed] }); }, }; diff --git a/SlashCommands/general/freeside.js b/SlashCommands/general/freeside.js new file mode 100644 index 0000000..568d734 --- /dev/null +++ b/SlashCommands/general/freeside.js @@ -0,0 +1,22 @@ +const { Client, CommandInteraction, MessageEmbed } = require("discord.js"); + +module.exports = { + name: "freeside", + description: "returns freeside discord link", + type: 'CHAT_INPUT', + /** + * + * @param {Client} client + * @param {CommandInteraction} interaction + * @param {String[]} args + */ + run: async (client, interaction, args) => { + const embed = new MessageEmbed() + .setTitle("Freeside") + .setColor('ORANGE') + .setFooter(`Called By: ${interaction.user.tag}`) + .setDescription('Freeside is the student run and maintained linux cluster within the University Of Hull Computer Science Department providing Linux administration experience, mentoring and technical advice alongside other peer-led support. It is completely free to all students to join, irrespective of degree pathway.') + .addField('You can join them from below!','https://discord.com/invite/qAZ8dAp') + interaction.followUp({ embeds: [embed] }); + }, +}; \ No newline at end of file