Fixed incorrect kick/ban reasons

This commit is contained in:
Noikoio 2017-08-09 16:07:42 -07:00
parent 7f8d6465ef
commit 1351777e0a
3 changed files with 4 additions and 2 deletions

View file

@ -75,6 +75,7 @@ namespace Noikoio.RegexBot.Feature.ModTools
try
{
if (reason != null) reason = Uri.EscapeDataString(reason); // TODO remove when fixed in library
await g.AddBanAsync(targetobj, _purgeDays, reason);
await msg.Channel.SendMessageAsync($":white_check_mark: Banned user **{targetobj.ToString()}**.");
}

View file

@ -57,6 +57,7 @@ namespace Noikoio.RegexBot.Feature.ModTools
try
{
if (reason != null) reason = Uri.EscapeDataString(reason); // TODO remove when fixed in library
await targetobj.KickAsync(reason);
await msg.Channel.SendMessageAsync($":white_check_mark: Kicked user **{targetobj.ToString()}**.");
}

View file

@ -4,7 +4,7 @@
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp1.1</TargetFramework>
<RootNamespace>Noikoio.RegexBot</RootNamespace>
<AssemblyVersion>1.1.0.0</AssemblyVersion>
<AssemblyVersion>1.1.2.0</AssemblyVersion>
<Description>Highly configurable Discord moderation bot</Description>
<Authors>Noikoio</Authors>
<Company />
@ -17,7 +17,7 @@
<ItemGroup>
<PackageReference Include="Discord.Net" Version="1.0.1" />
<PackageReference Include="Newtonsoft.Json" Version="10.0.3" />
<PackageReference Include="System.ValueTuple" Version="4.3.1" />
<PackageReference Include="System.ValueTuple" Version="4.4.0" />
</ItemGroup>
<ItemGroup>