Fixed incorrect kick/ban reasons
This commit is contained in:
parent
7f8d6465ef
commit
1351777e0a
3 changed files with 4 additions and 2 deletions
|
@ -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()}**.");
|
||||
}
|
||||
|
|
|
@ -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()}**.");
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in a new issue