generated from nhcarrigan/template
fix: okay i do not think the owner check is correct
Node.js CI / Lint and Test (push) Successful in 41s
Node.js CI / Lint and Test (push) Successful in 41s
This commit is contained in:
@@ -27,9 +27,14 @@ export const handleThreadMessage
|
||||
if (message.author.bot) {
|
||||
return;
|
||||
}
|
||||
const owner = await message.thread?.fetchOwner();
|
||||
// We only respond in threads created by Keiko.
|
||||
if (owner?.id !== "1425897287065800785") {
|
||||
const starter = await message.thread?.fetchStarterMessage();
|
||||
const mentionsKeiko = starter?.mentions.has("1425897287065800785", {
|
||||
ignoreDirect: false,
|
||||
ignoreEveryone: true,
|
||||
ignoreRepliedUser: true,
|
||||
ignoreRoles: true,
|
||||
});
|
||||
if (mentionsKeiko !== true) {
|
||||
return;
|
||||
}
|
||||
const isNaomi = await isNaomiMessage(message);
|
||||
|
||||
Reference in New Issue
Block a user