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) => |
| 6 | builder |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 7 | .setName("premium") |
| 8 | .setDescription("Information about Nucleus Premium"); |
pineafan | 813bdf4 | 2022-07-24 10:39:10 +0100 | [diff] [blame] | 9 | |
pineafan | bd02b4a | 2022-08-05 22:01:38 +0100 | [diff] [blame^] | 10 | const callback = async (interaction: CommandInteraction): Promise<void> => { |
pineafan | 813bdf4 | 2022-07-24 10:39:10 +0100 | [diff] [blame] | 11 | interaction.reply({embeds: [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 | ], ephemeral: true}); |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 22 | }; |
pineafan | 813bdf4 | 2022-07-24 10:39:10 +0100 | [diff] [blame] | 23 | |
pineafan | bd02b4a | 2022-08-05 22:01:38 +0100 | [diff] [blame^] | 24 | const check = () => { |
pineafan | 813bdf4 | 2022-07-24 10:39:10 +0100 | [diff] [blame] | 25 | return true; |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 26 | }; |
pineafan | 813bdf4 | 2022-07-24 10:39:10 +0100 | [diff] [blame] | 27 | |
| 28 | export { command }; |
| 29 | export { callback }; |
| 30 | export { check }; |