decord/source/modules/replies/didReplyMention.tsx

18 lines
453 B
TypeScript
Raw Normal View History

2026-07-25 08:10:48 +00:00
// Module ID: 7929
2026-07-27 11:26:19 +00:00
// Function ID: 63129
2026-07-20 16:05:17 +00:00
// Name: didReplyMention
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-07-25 08:10:48 +00:00
// Module 7929 (didReplyMention)
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/replies/didReplyMention.tsx");
2026-07-20 16:05:17 +00:00
export default function didReplyMention(mentions, author) {
let hasItem = null != author;
if (hasItem) {
mentions = mentions.mentions;
hasItem = mentions.includes(author.author.id);
}
return hasItem;
};