Added Slash Command - Freeside
parent
1813f0371d
commit
d889219d29
|
@ -16,7 +16,7 @@ module.exports = {
|
||||||
.setColor('GREEN')
|
.setColor('GREEN')
|
||||||
.setFooter(`Called By: ${interaction.user.tag}`)
|
.setFooter(`Called By: ${interaction.user.tag}`)
|
||||||
.addField('You can purchase from below!','https://hulluniunion.com/shop?aid=304')
|
.addField('You can purchase from below!','https://hulluniunion.com/shop?aid=304')
|
||||||
interaction.channel.send({ embeds: [embed] });
|
interaction.followUp({ embeds: [embed] });
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -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] });
|
||||||
|
},
|
||||||
|
};
|
Loading…
Reference in New Issue