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) {
diff --git a/src/reflex/verify.ts b/src/reflex/verify.ts
index 2372130..4977c64 100644
--- a/src/reflex/verify.ts
+++ b/src/reflex/verify.ts
@@ -1,4 +1,4 @@
-import { LoadingEmbed } from "./../utils/defaultEmbeds.js";
+import { LoadingEmbed, unknownServerIcon } from "../utils/defaults.js";
import Discord, {
CommandInteraction,
GuildMember,
@@ -215,7 +215,7 @@
rName: role.name,
uName: interaction.member!.user.username,
gName: interaction.guild!.name,
- gIcon: interaction.guild!.iconURL({ extension: "png", size: 256 }) ?? "https://assets-global.website-files.com/6257adef93867e50d84d30e2/636e0a6a49cf127bf92de1e2_icon_clyde_blurple_RGB.png",
+ gIcon: interaction.guild!.iconURL({ extension: "png", size: 256 }) ?? unknownServerIcon,
interaction: interaction as MessageComponentInteraction
};
await interaction.editReply({