Replaced important comments with noticeable warnings

This commit is contained in:
Noikoio 2017-10-21 12:05:46 -07:00
parent ee05cb0944
commit e30b6be5fe
3 changed files with 4 additions and 3 deletions

View file

@ -44,7 +44,7 @@ namespace Noikoio.RegexBot.Feature.AutoMod.Responses
{
var target = (SocketGuildUser)msg.Author;
await target.Guild.AddBanAsync(target, _purgeDays, Uri.EscapeDataString($"Rule '{Rule.Label}'"));
// TODO remove string escaping when fixed in library
#warning Remove EscapeDataString call on next Discord.Net update
}
}
}

View file

@ -22,7 +22,7 @@ namespace Noikoio.RegexBot.Feature.AutoMod.Responses
{
var target = (SocketGuildUser)msg.Author;
await target.KickAsync(Uri.EscapeDataString($"Rule '{Rule.Label}'"));
// TODO remove string escaping when fixed in library
#warning Remove EscapeDataString call on next Discord.Net update
}
}
}

View file

@ -91,7 +91,8 @@ namespace Noikoio.RegexBot.Feature.ModTools.Commands
try
{
if (reason != null) reason = Uri.EscapeDataString(reason); // TODO remove when fixed in library
if (reason != null) reason = Uri.EscapeDataString(reason);
#warning Remove EscapeDataString call on next Discord.Net update
if (_mode == CommandMode.Ban) await g.AddBanAsync(targetuid, _purgeDays, reason);
else await targetobj.KickAsync(reason);
string resultmsg = BuildSuccessMessage(targetdisp);