summary refs log tree commit diff
path: root/src/api/util/utility/String.ts
diff options
context:
space:
mode:
authorZane Helton <zane99@me.com>2025-06-28 19:01:49 -0400
committerMadeline <46743919+MaddyUnderStars@users.noreply.github.com>2025-06-29 09:14:58 +1000
commit4f7591965125d7c3289b81ff8bba6ba91512af3f (patch)
tree7bb4692b7cf28349b67c80d223d90cf75ab5a50e /src/api/util/utility/String.ts
parentPreserve reactions when a message is edited (diff)
downloadserver-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/utility/String.ts')
0 files changed, 0 insertions, 0 deletions