Add paginated view for embeds by search
Some checks failed
Test / build (push) Failing after 8s

This commit is contained in:
Ethan Lane 2024-08-14 22:26:47 +01:00
parent f604fd7d18
commit 40db7cfebc
58 changed files with 222 additions and 221 deletions

View file

@ -1,22 +1,22 @@
import { Client, DMChannel, Guild, GuildBan, GuildMember, Message, NonThreadGuildBasedChannel, PartialGuildMember, PartialMessage } from "discord.js";
import * as dotenv from "dotenv";
import ICommandItem from "../contracts/ICommandItem";
import EventExecutors from "../contracts/EventExecutors";
import { Command } from "../type/command";
import ICommandItem from "../contracts/ICommandItem.js";
import EventExecutors from "../contracts/EventExecutors.js";
import { Command } from "../type/command.js";
import { Events } from "./events";
import { Util } from "./util";
import IButtonEventItem from "../contracts/ButtonEventItem";
import { ButtonEvent } from "../type/buttonEvent";
import AppDataSource from "../database/dataSources/appDataSource";
import { Environment } from "../constants/Environment";
import Webhooks from "../webhooks";
import CardMetadataFunction from "../Functions/CardMetadataFunction";
import { SeriesMetadata } from "../contracts/SeriesMetadata";
import AppLogger from "./appLogger";
import TimerHelper from "../helpers/TimerHelper";
import GiveCurrency from "../timers/GiveCurrency";
import PurgeClaims from "../timers/PurgeClaims";
import { Events } from "./events.js";
import { Util } from "./util.js";
import IButtonEventItem from "../contracts/ButtonEventItem.js";
import { ButtonEvent } from "../type/buttonEvent.js";
import AppDataSource from "../database/dataSources/appDataSource.js";
import { Environment } from "../constants/Environment.js";
import Webhooks from "../webhooks.js";
import CardMetadataFunction from "../Functions/CardMetadataFunction.js";
import { SeriesMetadata } from "../contracts/SeriesMetadata.js";
import AppLogger from "./appLogger.js";
import TimerHelper from "../helpers/TimerHelper.js";
import GiveCurrency from "../timers/GiveCurrency.js";
import PurgeClaims from "../timers/PurgeClaims.js";
export class CoreClient extends Client {
private static _commandItems: ICommandItem[];

View file

@ -1,8 +1,8 @@
import { Interaction } from "discord.js";
import ChatInputCommand from "./interactionCreate/ChatInputCommand";
import Button from "./interactionCreate/Button";
import AppLogger from "./appLogger";
import NewUserDiscovery from "./interactionCreate/middleware/NewUserDiscovery";
import ChatInputCommand from "./interactionCreate/ChatInputCommand.js";
import Button from "./interactionCreate/Button.js";
import AppLogger from "./appLogger.js";
import NewUserDiscovery from "./interactionCreate/middleware/NewUserDiscovery.js";
export class Events {
public async onInteractionCreate(interaction: Interaction) {

View file

@ -1,6 +1,6 @@
import { ButtonInteraction } from "discord.js";
import { CoreClient } from "../client";
import AppLogger from "../appLogger";
import { CoreClient } from "../client.js";
import AppLogger from "../appLogger.js";
export default class Button {
public static async onButtonClicked(interaction: ButtonInteraction) {

View file

@ -1,7 +1,7 @@
import { Interaction } from "discord.js";
import { CoreClient } from "../client";
import ICommandItem from "../../contracts/ICommandItem";
import AppLogger from "../appLogger";
import { CoreClient } from "../client.js";
import ICommandItem from "../../contracts/ICommandItem.js";
import AppLogger from "../appLogger.js";
export default class ChatInputCommand {
public static async onChatInput(interaction: Interaction) {

View file

@ -1,7 +1,7 @@
import { Interaction } from "discord.js";
import User from "../../../database/entities/app/User";
import CardConstants from "../../../constants/CardConstants";
import AppLogger from "../../appLogger";
import User from "../../../database/entities/app/User.js";
import CardConstants from "../../../constants/CardConstants.js";
import AppLogger from "../../appLogger.js";
export default async function NewUserDiscovery(interaction: Interaction) {
const existingUser = await User.FetchOneById(User, interaction.user.id);

View file

@ -1,7 +1,7 @@
import { Client, REST, Routes, SlashCommandBuilder } from "discord.js";
import EventExecutors from "../contracts/EventExecutors";
import { CoreClient } from "./client";
import AppLogger from "./appLogger";
import EventExecutors from "../contracts/EventExecutors.js";
import { CoreClient } from "./client.js";
import AppLogger from "./appLogger.js";
export class Util {
public loadSlashCommands(client: Client) {