Fix notify failure text not showing on all failures
This commit is contained in:
parent
ac06d4157a
commit
e6fab52e45
1 changed files with 2 additions and 1 deletions
|
@ -125,6 +125,7 @@ namespace Noikoio.RegexBot.Module.ModTools.Commands
|
||||||
notifyfail = true;
|
notifyfail = true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else notifyfail = true;
|
||||||
|
|
||||||
// Do the action
|
// Do the action
|
||||||
try
|
try
|
||||||
|
@ -138,7 +139,7 @@ namespace Noikoio.RegexBot.Module.ModTools.Commands
|
||||||
string resultmsg = BuildSuccessMessage(targetdisp);
|
string resultmsg = BuildSuccessMessage(targetdisp);
|
||||||
if (notifyfail)
|
if (notifyfail)
|
||||||
{
|
{
|
||||||
resultmsg += $"\n(Failed to send " + (_mode == CommandMode.Ban ? "ban" : "kick") + " notification to user.)";
|
resultmsg += $"\n(could not send " + (_mode == CommandMode.Ban ? "ban" : "kick") + " notification to user.)";
|
||||||
}
|
}
|
||||||
await msg.Channel.SendMessageAsync(resultmsg);
|
await msg.Channel.SendMessageAsync(resultmsg);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue