diff --git a/src/index.ts b/src/index.ts index f73b833..6dd9474 100644 --- a/src/index.ts +++ b/src/index.ts @@ -38,7 +38,8 @@ client.on(Events.ClientReady, () => { }); }); -client.on(Events.MessageCreate, (message) => { +// eslint-disable-next-line @typescript-eslint/no-misused-promises -- sod off this is going away next month. +client.on(Events.MessageCreate, async(message) => { if (!message.channel.isThread() || !message.inGuild()) { return; } @@ -54,6 +55,11 @@ client.on(Events.MessageCreate, (message) => { if (message.author.bot) { return; } + const threadOwner = await message.channel.fetchOwner(); + // Check if thread owner is Maribelle (to indicate it is progress thread) + if (threadOwner?.id !== "1386862413936328796") { + return; + } if (!activeIds.includes(message.author.id)) { activeIds.push(message.author.id); }