Fixed rolemenu (should be usable now)
diff --git a/src/utils/confirmationMessage.ts b/src/utils/confirmationMessage.ts
index f5aaa6b..fc29b56 100644
--- a/src/utils/confirmationMessage.ts
+++ b/src/utils/confirmationMessage.ts
@@ -226,7 +226,8 @@
try {
component = await m.awaitMessageComponent({
filter: (i) =>
- i.user.id === this.interaction.user.id && (i.channel ? (i.channel!.id === this.interaction.channel!.id) : true),
+ i.user.id === this.interaction.user.id &&
+ (i.channel ? i.channel!.id === this.interaction.channel!.id : true),
time: 300000
});
} catch (e) {
diff --git a/src/utils/dualCollector.ts b/src/utils/dualCollector.ts
index 28fa2bc..b9f2c23 100644
--- a/src/utils/dualCollector.ts
+++ b/src/utils/dualCollector.ts
@@ -54,7 +54,7 @@
return i.channel!.id === m.channel!.id && i.user.id === user.id;
}
function defaultModalFilter(i: ModalSubmitInteraction, user: User, m: Message) {
- return (i.channel ? (i.channel!.id === m.channel!.id) : true) && i.user.id === user.id;
+ return (i.channel ? i.channel!.id === m.channel!.id : true) && i.user.id === user.id;
}
export async function modalInteractionCollector(