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 4160a3af71
commit 459020eab7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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,