pineafan | bd02b4a | 2022-08-05 22:01:38 +0100 | [diff] [blame] | 1 | import { CommandInteraction } from "discord.js"; |
pineafan | 813bdf4 | 2022-07-24 10:39:10 +0100 | [diff] [blame] | 2 | import { SlashCommandSubcommandBuilder } from "@discordjs/builders"; |
pineafan | 813bdf4 | 2022-07-24 10:39:10 +0100 | [diff] [blame] | 3 | import EmojiEmbed from "../../utils/generateEmojiEmbed.js"; |
| 4 | |
| 5 | const command = (builder: SlashCommandSubcommandBuilder) => |
Skyler Grey | 11236ba | 2022-08-08 21:13:33 +0100 | [diff] [blame] | 6 | builder.setName("premium").setDescription("Information about Nucleus Premium"); |
pineafan | 813bdf4 | 2022-07-24 10:39:10 +0100 | [diff] [blame] | 7 | |
pineafan | bd02b4a | 2022-08-05 22:01:38 +0100 | [diff] [blame] | 8 | const callback = async (interaction: CommandInteraction): Promise<void> => { |
Skyler Grey | 75ea917 | 2022-08-06 10:22:23 +0100 | [diff] [blame] | 9 | interaction.reply({ |
| 10 | embeds: [ |
| 11 | new EmojiEmbed() |
| 12 | .setTitle("Premium") |
| 13 | .setDescription( |
| 14 | "*Nucleus Premium is currently not available.*\n\n" + |
| 15 | "Premium allows your server to get access to extra features, for a fixed price per month.\nThis includes:\n" + |
| 16 | "- Attachment logs - Stores attachments so they can be viewed after a message is deleted.\n" + |
| 17 | "- Ticket Transcripts - Gives a link to view the history of a ticket after it has been closed.\n" |
| 18 | ) |
| 19 | .setEmoji("NUCLEUS.LOGO") |
| 20 | .setStatus("Danger") |
| 21 | ], |
| 22 | ephemeral: true |
| 23 | }); |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 24 | }; |
pineafan | 813bdf4 | 2022-07-24 10:39:10 +0100 | [diff] [blame] | 25 | |
pineafan | bd02b4a | 2022-08-05 22:01:38 +0100 | [diff] [blame] | 26 | const check = () => { |
pineafan | 813bdf4 | 2022-07-24 10:39:10 +0100 | [diff] [blame] | 27 | return true; |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 28 | }; |
pineafan | 813bdf4 | 2022-07-24 10:39:10 +0100 | [diff] [blame] | 29 | |
| 30 | export { command }; |
| 31 | export { callback }; |
Skyler Grey | 75ea917 | 2022-08-06 10:22:23 +0100 | [diff] [blame] | 32 | export { check }; |