3
0
Fork 0
mirror of https://github.com/ZeppelinBot/Zeppelin.git synced 2025-05-20 16:25:03 +00:00

Allow target user to be mentioned in channels

This commit is contained in:
Dark 2021-05-12 01:30:09 +02:00
parent 4160a3af71
commit c22e7e2fca
No known key found for this signature in database
GPG key ID: 384C4B4F5B1E25A8

View file

@ -1011,7 +1011,10 @@ export async function notifyUser(
}
} else if (method.type === "channel") {
try {
await method.channel.createMessage(`<@!${user.id}> ${body}`);
await method.channel.createMessage({
content: `<@!${user.id}> ${body}`,
allowedMentions: { users: [user.id] },
});
return {
method,
success: true,