blob: 0d4c9e3e4e99ae1029af4ba7099ed734517e6356 [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 = "";