generated from nhcarrigan/template
feat: only assign participation in Maribelle's threads
This commit is contained in:
@ -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()) {
|
if (!message.channel.isThread() || !message.inGuild()) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
@ -54,6 +55,11 @@ client.on(Events.MessageCreate, (message) => {
|
|||||||
if (message.author.bot) {
|
if (message.author.bot) {
|
||||||
return;
|
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)) {
|
if (!activeIds.includes(message.author.id)) {
|
||||||
activeIds.push(message.author.id);
|
activeIds.push(message.author.id);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user