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" |
Skyler Grey | da16adf | 2023-03-05 10:22:12 +0000 | [diff] [blame] | 12 | }; |
PineaFan | a34d04b | 2023-01-03 22:05:42 +0000 | [diff] [blame] | 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 = ""; |
pineafan | 435a878 | 2023-06-24 12:45:58 +0100 | [diff] [blame] | 46 | |
| 47 | export const imageDataEasterEgg = |
| 48 | "The image in this embed contains data about the below log.\n" + |
| 49 | "It isn't designed to be read by humans, but you can decode it with any base64 decoder, and then read it as JSON.\n" + |
| 50 | "We use base 64 to get around people using virus tests and the file being blocked, and an image to have the embed hidden (files can't be suppressed)\n" + |
| 51 | "If you've got to this point and are reading this hidden message, you should come and work with us " + |
| 52 | "at https://discord.gg/w35pXdrxKW (Internal development server) and let us know how you got here!"; |