Tickets! and a lot of bug fixes
diff --git a/src/reflex/guide.ts b/src/reflex/guide.ts
index 842951c..b539aac 100644
--- a/src/reflex/guide.ts
+++ b/src/reflex/guide.ts
@@ -1,4 +1,4 @@
-import { LoadingEmbed } from "./../utils/defaultEmbeds.js";
+import { LoadingEmbed } from "../utils/defaults.js";
import Discord, {
ActionRowBuilder,
ButtonBuilder,
@@ -225,7 +225,7 @@
}
let page = 0;
- const f = async (component: MessageComponentInteraction) => {
+ const publicFilter = async (component: MessageComponentInteraction) => {
return (component.member as Discord.GuildMember).permissions.has("MANAGE_GUILD");
};
@@ -293,10 +293,8 @@
try {
i = await m.awaitMessageComponent({
filter: interaction
- ? () => {
- return true;
- }
- : f,
+ ? (i) => { return i.user.id === interaction.user.id && i.channel!.id === interaction.channel!.id }
+ : publicFilter,
time: 300000
});
} catch (e) {