From 3ce08793c969014f3d2992efb5fdb3399ee201a2 Mon Sep 17 00:00:00 2001 From: SowinskiBraeden Date: Fri, 11 Nov 2022 12:17:10 -0800 Subject: [PATCH] add website shortcut --- commands/website.js | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 commands/website.js diff --git a/commands/website.js b/commands/website.js new file mode 100644 index 0000000..a034e0d --- /dev/null +++ b/commands/website.js @@ -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/' }); + }, + }, +} \ No newline at end of file