Update src/plugins/replyPingControl/index.ts

Co-authored-by: rini <nil@dissoc.cc>
This commit is contained in:
ant0n 2023-11-17 22:32:35 +00:00 committed by GitHub
parent ef4ab9588c
commit 5b2fe0ab0b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -63,7 +63,7 @@ export default definePlugin({
if (!repliedMessage || repliedMessage.author.id !== user.id)
return;
const isWhitelisted = cachedWhitelist.includes(message.author.id);
const isWhitelisted = settings.store.replyPingWhitelist.split(",").some(id => message.author.id === id.trim())
if (isWhitelisted || settings.store.alwaysPingOnReply) {
if (!message.mentions.some(mention => mention.id === user.id))