From ed83daa171fb4690f1e84707822fd888d878505e Mon Sep 17 00:00:00 2001 From: kieranrobson Date: Fri, 13 May 2022 10:58:21 +0100 Subject: [PATCH] Added links slash command --- SlashCommands/general/links.js | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 SlashCommands/general/links.js diff --git a/SlashCommands/general/links.js b/SlashCommands/general/links.js new file mode 100644 index 0000000..8ca8948 --- /dev/null +++ b/SlashCommands/general/links.js @@ -0,0 +1,21 @@ +const { Client, CommandInteraction, MessageEmbed } = require("discord.js"); + +module.exports = { + name: "links", + description: "returns links of Hullcss", + type: 'CHAT_INPUT', + /** + * + * @param {Client} client + * @param {CommandInteraction} interaction + * @param {String[]} args + */ + run: async (client, interaction, args) => { + const embed = new MessageEmbed() + .setTitle("Links!") + .setColor('GREEN') + .setFooter(`Called By: ${interaction.user.tag}`) + .addField('Find us here:','https://hullcss.org/links') + interaction.followUp({ embeds: [embed]}); + }, +}; \ No newline at end of file