Tickets! and a lot of bug fixes
diff --git a/src/Unfinished/all.ts b/src/Unfinished/all.ts
index 4fd1202..9d9e653 100644
--- a/src/Unfinished/all.ts
+++ b/src/Unfinished/all.ts
@@ -1,4 +1,4 @@
-import { LoadingEmbed } from "./../utils/defaultEmbeds.js";
+import { LoadingEmbed } from "../utils/defaults.js";
import Discord, {
CommandInteraction,
GuildMember,
diff --git a/src/Unfinished/categorisationTest.ts b/src/Unfinished/categorisationTest.ts
index f5660fe..dc38dfe 100644
--- a/src/Unfinished/categorisationTest.ts
+++ b/src/Unfinished/categorisationTest.ts
@@ -1,4 +1,4 @@
-import { LoadingEmbed } from "../utils/defaultEmbeds.js";
+import { LoadingEmbed } from "../utils/defaults.js";
import { CommandInteraction, GuildChannel, ActionRowBuilder, ButtonBuilder, SelectMenuBuilder, ButtonStyle } from "discord.js";
import { SlashCommandBuilder } from "@discordjs/builders";
import EmojiEmbed from "../utils/generateEmojiEmbed.js";
@@ -84,7 +84,10 @@
});
let i;
try {
- i = await m.awaitMessageComponent({ time: 300000 });
+ i = await m.awaitMessageComponent({
+ time: 300000,
+ filter: (i) => { return i.user.id === interaction.user.id && i.channel!.id === interaction.channel!.id }
+ });
} catch (e) {
return await interaction.editReply({
embeds: [
@@ -118,7 +121,7 @@
console.log(categorised);
};
-const check = (_interaction: CommandInteraction) => {
+const check = () => {
return true;
};