diff options
| author | Zane Helton <zane99@me.com> | 2025-06-28 19:01:49 -0400 |
|---|---|---|
| committer | Madeline <46743919+MaddyUnderStars@users.noreply.github.com> | 2025-06-29 09:14:58 +1000 |
| commit | 4f7591965125d7c3289b81ff8bba6ba91512af3f (patch) | |
| tree | 7bb4692b7cf28349b67c80d223d90cf75ab5a50e /src/api/util | |
| parent | Preserve reactions when a message is edited (diff) | |
| download | server-ts-4f7591965125d7c3289b81ff8bba6ba91512af3f.tar.xz | |
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
Diffstat (limited to 'src/api/util')
| -rw-r--r-- | src/api/util/handlers/Message.ts | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/src/api/util/handlers/Message.ts b/src/api/util/handlers/Message.ts |
