Added Slash Command - Freeside

imgbot
KieranRobson 2022-06-27 10:43:29 +01:00
parent 1813f0371d
commit d889219d29
2 changed files with 23 additions and 1 deletions

View File

@ -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] });
},
};

View File

@ -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] });
},
};