From b62a6685e0e0689db202628fae7b046bb825b5ba Mon Sep 17 00:00:00 2001 From: Nils <7890309+DarkView@users.noreply.github.com> Date: Thu, 29 Apr 2021 00:01:11 +0200 Subject: [PATCH] Fix !where and !follow not pinging requestor (#191) --- backend/src/plugins/LocateUser/utils/sendWhere.ts | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/backend/src/plugins/LocateUser/utils/sendWhere.ts b/backend/src/plugins/LocateUser/utils/sendWhere.ts index 4ab52e45..11d07ba1 100644 --- a/backend/src/plugins/LocateUser/utils/sendWhere.ts +++ b/backend/src/plugins/LocateUser/utils/sendWhere.ts @@ -25,8 +25,9 @@ export async function sendWhere( sendErrorMessage(pluginData, channel, "Cannot create an invite to that channel!"); return; } - channel.createMessage( - prepend + `${member.mention} is in the following channel: \`${voice.name}\` ${getInviteLink(invite)}`, - ); + channel.createMessage({ + content: prepend + `${member.mention} is in the following channel: \`${voice.name}\` ${getInviteLink(invite)}`, + allowedMentions: { users: true }, + }); } }