blob: ec337f49c21dc187f01904c4fbdc5ce2aff84cdb [file] [log] [blame]
PineaFan0d06edc2023-01-17 22:10:31 +00001import type Discord from "discord.js";
pineafan63fc5e22022-08-04 22:04:10 +01002import EmojiEmbed from "./generateEmojiEmbed.js";
PineaFandf4996f2023-01-01 14:20:06 +00003import getEmojiByName from "./getEmojiByName.js";
pineafane23c4ec2022-07-27 21:56:27 +01004
Skyler Grey75ea9172022-08-06 10:22:23 +01005export const LoadingEmbed = [
PineaFandf4996f2023-01-01 14:20:06 +00006 new EmojiEmbed().setDescription(`${getEmojiByName("NUCLEUS.LOADING")} One moment...`).setStatus("Danger")
pineafan63fc5e22022-08-04 22:04:10 +01007];
PineaFan100df682023-01-02 13:26:08 +00008
9export 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 Greyda16adf2023-03-05 10:22:12 +000012};
PineaFana34d04b2023-01-03 22:05:42 +000013
14class Embed {
15 embed: EmojiEmbed = new EmojiEmbed();
16 title: string = "";
17 description = "";
18 pageId = 0;
PineaFan0d06edc2023-01-17 22:10:31 +000019 componentsToSet: Discord.ActionRowBuilder<Discord.ButtonBuilder | Discord.StringSelectMenuBuilder>[] = [];
PineaFana34d04b2023-01-03 22:05:42 +000020
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 }
PineaFan0d06edc2023-01-17 22:10:31 +000037 setComponents(components: Discord.ActionRowBuilder<Discord.ButtonBuilder | Discord.StringSelectMenuBuilder>[]) {
38 this.componentsToSet = components;
39 return this;
40 }
PineaFana34d04b2023-01-03 22:05:42 +000041}
42
43export { Embed };
PineaFan0d06edc2023-01-17 22:10:31 +000044
45export const unknownServerIcon = "";
pineafan435a8782023-06-24 12:45:58 +010046
47export 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!";