mirror of
https://github.com/ZeppelinBot/Zeppelin.git
synced 2025-03-14 21:31:50 +00:00
Allow target user to be mentioned in channels (#215)
This commit is contained in:
parent
4160a3af71
commit
459020eab7
1 changed files with 4 additions and 1 deletions
|
@ -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,
|
||||
|
|
Loading…
Add table
Reference in a new issue