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 (#215)

This commit is contained in:
Nils 2021-05-12 01:32:29 +02:00 committed by GitHub
parent c64bddad4b
commit ea96ab7853

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,