mirror of
https://github.com/spacebarchat/server.git
synced 2026-07-28 07:39:25 +00:00
feat: mention poll author
This commit is contained in:
@@ -859,6 +859,13 @@ async function handleMessageMentionsAsync(message: Message) {
|
||||
);
|
||||
}
|
||||
|
||||
if (message.embeds[0].type === EmbedType.poll_result) {
|
||||
message.mentions.push(
|
||||
// @ts-expect-error it does not like the .toPublicUser() lol
|
||||
(await User.findOne({ where: { id: message.author_id } }))!.toPublicUser(),
|
||||
);
|
||||
}
|
||||
|
||||
if (message.message_reference.type === MessageReferenceType.FORWARD) {
|
||||
message.type = MessageType.DEFAULT;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user