PineaFan | 0d06edc | 2023-01-17 22:10:31 +0000 | [diff] [blame] | 1 | import type Discord from "discord.js"; |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 2 | import EmojiEmbed from "./generateEmojiEmbed.js"; |
PineaFan | df4996f | 2023-01-01 14:20:06 +0000 | [diff] [blame] | 3 | import getEmojiByName from "./getEmojiByName.js"; |
pineafan | e23c4ec | 2022-07-27 21:56:27 +0100 | [diff] [blame] | 4 | |
Skyler Grey | 75ea917 | 2022-08-06 10:22:23 +0100 | [diff] [blame] | 5 | export const LoadingEmbed = [ |
PineaFan | df4996f | 2023-01-01 14:20:06 +0000 | [diff] [blame] | 6 | new EmojiEmbed().setDescription(`${getEmojiByName("NUCLEUS.LOADING")} One moment...`).setStatus("Danger") |
pineafan | 63fc5e2 | 2022-08-04 22:04:10 +0100 | [diff] [blame] | 7 | ]; |
PineaFan | 100df68 | 2023-01-02 13:26:08 +0000 | [diff] [blame] | 8 | |
| 9 | export const LinkWarningFooter = { |
| 10 | text: "The button below will take you to a website set by the server moderators. Do not enter any passwords unless it is from a trusted website.", |
| 11 | iconURL: "https://cdn.discordapp.com/emojis/952295894370369587.webp?size=128&quality=lossless" |
PineaFan | a34d04b | 2023-01-03 22:05:42 +0000 | [diff] [blame] | 12 | } |
| 13 | |
| 14 | class Embed { |
| 15 | embed: EmojiEmbed = new EmojiEmbed(); |
| 16 | title: string = ""; |
| 17 | description = ""; |
| 18 | pageId = 0; |
PineaFan | 0d06edc | 2023-01-17 22:10:31 +0000 | [diff] [blame] | 19 | componentsToSet: Discord.ActionRowBuilder<Discord.ButtonBuilder | Discord.StringSelectMenuBuilder>[] = []; |
PineaFan | a34d04b | 2023-01-03 22:05:42 +0000 | [diff] [blame] | 20 | |
| 21 | setEmbed(embed: EmojiEmbed) { |
| 22 | this.embed = embed; |
| 23 | return this; |
| 24 | } |
| 25 | setTitle(title: string) { |
| 26 | this.title = title; |
| 27 | return this; |
| 28 | } |
| 29 | setDescription(description: string) { |
| 30 | this.description = description; |
| 31 | return this; |
| 32 | } |
| 33 | setPageId(pageId: number) { |
| 34 | this.pageId = pageId; |
| 35 | return this; |
| 36 | } |
PineaFan | 0d06edc | 2023-01-17 22:10:31 +0000 | [diff] [blame] | 37 | setComponents(components: Discord.ActionRowBuilder<Discord.ButtonBuilder | Discord.StringSelectMenuBuilder>[]) { |
| 38 | this.componentsToSet = components; |
| 39 | return this; |
| 40 | } |
PineaFan | a34d04b | 2023-01-03 22:05:42 +0000 | [diff] [blame] | 41 | } |
| 42 | |
| 43 | export { Embed }; |
PineaFan | 0d06edc | 2023-01-17 22:10:31 +0000 | [diff] [blame] | 44 | |
| 45 | export const unknownServerIcon = ""; |