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

Add missing parameter to restrict reacting user to issuing mod

This commit is contained in:
Dark 2021-05-15 20:15:12 +02:00
parent 459020eab7
commit 8e74ddc0a3
No known key found for this signature in database
GPG key ID: 384C4B4F5B1E25A8

View file

@ -46,7 +46,7 @@ export async function warnMember(
const failedMsg = await warnOptions.retryPromptChannel.createMessage(
"Failed to message the user. Log the warning anyway?",
);
const reply = await waitForReaction(pluginData.client, failedMsg, ["✅", "❌"]);
const reply = await waitForReaction(pluginData.client, failedMsg, ["✅", "❌"], warnOptions.caseArgs?.modId);
failedMsg.delete();
if (!reply || reply.name === "❌") {
return {