Add OP to message.mentions when replied to
The `message.message_reference` stores:

1. `message_id`
2. `channel_id`
3. `guild_id`

We use the `message_id` and `channel_id` to `.findOne(...)` Message, and
find the author. If the author is the same as OP, we skip (so replying
to yourself doesn't add you to the mentions array) otherwise, it adds
the author_id to the mentions array.

Resolves: #1247
1 parent e8d3f65 commit 4f7591965125d7c3289b81ff8bba6ba91512af3f
@Zane Helton Zane Helton authored on 29 Jun 2025
Madeline committed on 29 Jun 2025
Showing 1 changed file
View
src/api/util/handlers/Message.ts