Fixed incorrect message being sent to audit log

This commit is contained in:
Noikoio 2018-03-15 00:23:46 -07:00
parent 6127bb2ee7
commit 7708a81949

View file

@ -136,7 +136,7 @@ namespace Noikoio.RegexBot.Module.ModCommands.Commands
#warning Remove EscapeDataString call on next Discord.Net update
#if !DEBUG
if (_mode == CommandMode.Ban) await g.AddBanAsync(targetId, _purgeDays, reasonlog);
else await targetobj.KickAsync(reason);
else await targetobj.KickAsync(reasonlog);
#else
#warning "Actual kick/ban action is DISABLED during debug."
#endif