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