From 67eafa695ca7ebe456fcf0240a150c6a0204d263 Mon Sep 17 00:00:00 2001 From: Ethan Lane Date: Fri, 1 Nov 2024 14:47:14 +0000 Subject: [PATCH] Move moon button events to server id folder --- src/buttonEvents/{ => 304276391837302787}/moons.ts | 2 +- src/buttonEvents/{ => 304276391837302787}/moons/list.ts | 6 +++--- src/registry.ts | 2 +- .../{ => 304276391837302787}/moons/list.test.ts | 0 4 files changed, 5 insertions(+), 5 deletions(-) rename src/buttonEvents/{ => 304276391837302787}/moons.ts (88%) rename src/buttonEvents/{ => 304276391837302787}/moons/list.ts (92%) rename tests/buttonEvents/{ => 304276391837302787}/moons/list.test.ts (100%) diff --git a/src/buttonEvents/moons.ts b/src/buttonEvents/304276391837302787/moons.ts similarity index 88% rename from src/buttonEvents/moons.ts rename to src/buttonEvents/304276391837302787/moons.ts index 726f209..e13a4c0 100644 --- a/src/buttonEvents/moons.ts +++ b/src/buttonEvents/304276391837302787/moons.ts @@ -1,5 +1,5 @@ import {ButtonInteraction} from "discord.js"; -import {ButtonEvent} from "../type/buttonEvent"; +import {ButtonEvent} from "../../type/buttonEvent"; import List from "./moons/list"; export default class Moons extends ButtonEvent { diff --git a/src/buttonEvents/moons/list.ts b/src/buttonEvents/304276391837302787/moons/list.ts similarity index 92% rename from src/buttonEvents/moons/list.ts rename to src/buttonEvents/304276391837302787/moons/list.ts index 8f8e45a..a2b3cc4 100644 --- a/src/buttonEvents/moons/list.ts +++ b/src/buttonEvents/304276391837302787/moons/list.ts @@ -1,7 +1,7 @@ import {ActionRowBuilder, ButtonBuilder, ButtonInteraction, ButtonStyle, EmbedBuilder} from "discord.js"; -import Moon from "../../database/entities/304276391837302787/Moon"; -import EmbedColours from "../../constants/EmbedColours"; -import UserSetting from "../../database/entities/UserSetting"; +import Moon from "../../../database/entities/304276391837302787/Moon"; +import EmbedColours from "../../../constants/EmbedColours"; +import UserSetting from "../../../database/entities/UserSetting"; export default async function List(interaction: ButtonInteraction) { if (!interaction.guild) return; diff --git a/src/registry.ts b/src/registry.ts index f1080bb..64c5629 100644 --- a/src/registry.ts +++ b/src/registry.ts @@ -42,7 +42,7 @@ import MessageCreate from "./events/MessageEvents/MessageCreate"; // Button Event Imports import Verify from "./buttonEvents/verify"; -import MoonsButtonEvent from "./buttonEvents/moons"; +import MoonsButtonEvent from "./buttonEvents/304276391837302787/moons"; export default class Registry { public static RegisterCommands() { diff --git a/tests/buttonEvents/moons/list.test.ts b/tests/buttonEvents/304276391837302787/moons/list.test.ts similarity index 100% rename from tests/buttonEvents/moons/list.test.ts rename to tests/buttonEvents/304276391837302787/moons/list.test.ts