add website shortcut

This commit is contained in:
SowinskiBraeden committed 2022-11-11 12:17:10 -08:00
1 parent d88cbb7241
commit 3ce08793c9
1 file changed
+27
+27
View File
@@ -0,0 +1,27 @@
const { EmbedBuilder } = require('discord.js');
module.exports = {
name: "website",
description: "Link to the Lines Police CAD website",
usage: "",
permissions: {
channel: ["VIEW_CHANNEL", "SEND_MESSAGES", "EMBED_LINKS"],
member: [],
},
options: [],
SlashCommand: {
/**
*
* @param {require("../structures/LinesPoliceCadBot")} client
* @param {import("discord.js").Message} message
* @param {string[]} args
* @param {*} param3
*/
run: async (client, interaction, args, { GuildDB }) => {
if (GuildDB.customChannelStatus==true&&!GuildDB.allowedChannels.includes(interaction.channel_id)) {
return interaction.send({ content: `You are not allowed to use the bot in this channel.` });
}
return interaction.send({ content: 'Lines Police CAD Website-> https://www.linespolice-cad.com/' });
},
},
}