Update target framework, dependencies

This commit is contained in:
Noikoio 2020-05-05 01:07:53 -07:00
parent 41e760c308
commit 3a5b476b53
7 changed files with 10 additions and 36 deletions

View file

@ -33,7 +33,7 @@ namespace Noikoio.RegexBot.Module.AutoMod.Responses
await target.SendMessageAsync("", embed: BuildReportEmbed(msg));
}
private EmbedBuilder BuildReportEmbed(SocketMessage msg)
private Embed BuildReportEmbed(SocketMessage msg)
{
string invokeLine = msg.Content;
@ -104,7 +104,7 @@ namespace Noikoio.RegexBot.Module.AutoMod.Responses
});
}
return finalem;
return finalem.Build();
}
}
}

View file

@ -118,7 +118,7 @@ namespace Noikoio.RegexBot.Module.ModCommands.Commands
Title = "Usage",
Description = DefaultUsageMsg
};
await target.SendMessageAsync(message ?? "", embed: usageEmbed);
await target.SendMessageAsync(message ?? "", embed: usageEmbed.Build());
}
/// <summary>

View file

@ -139,7 +139,7 @@ namespace Noikoio.RegexBot.Module.ModLogs
// Prepare and send out message
var em = CreateReportEmbed(isDelete, ucd, messageId, ch, (msgContent, editMsg), msgCreateTime, msgEditTime);
await cfg.RptTarget.SendMessageAsync("", embeds: new Embed[] { em });
await cfg.RptTarget.SendMessageAsync("", embeds: new Embed[] { em.Build() });
}
const int ReportCutoffLength = 500;

View file

@ -178,7 +178,7 @@ namespace Noikoio.RegexBot.Module.VoteTempChannel
manageChannel: PermValue.Allow,
sendMessages: PermValue.Allow,
manageMessages: PermValue.Allow,
managePermissions: PermValue.Allow));
manageRoles: PermValue.Allow));
}
catch (Discord.Net.HttpException ex)
{
@ -208,7 +208,7 @@ namespace Noikoio.RegexBot.Module.VoteTempChannel
manageChannel: PermValue.Allow,
sendMessages: PermValue.Allow,
manageMessages: PermValue.Allow,
managePermissions: PermValue.Allow));
manageRoles: PermValue.Allow));
}
catch (Discord.Net.HttpException ex)
{

View file

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishProtocol>FileSystem</PublishProtocol>
<Configuration>Debug</Configuration>
<TargetFramework>netcoreapp2.0</TargetFramework>
<PublishDir>bin\Debug\PublishOutput</PublishDir>
</PropertyGroup>
</Project>

View file

@ -1,13 +0,0 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<PublishProtocol>FileSystem</PublishProtocol>
<Configuration>Release</Configuration>
<TargetFramework>netcoreapp2.0</TargetFramework>
<PublishDir>bin\Release\PublishOutput</PublishDir>
</PropertyGroup>
</Project>

View file

@ -2,12 +2,12 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp2.0</TargetFramework>
<TargetFramework>netcoreapp3.1</TargetFramework>
<RootNamespace>Noikoio.RegexBot</RootNamespace>
<Description>Highly configurable Discord moderation bot</Description>
<Authors>Noikoio</Authors>
<Company />
<Version>2.6.4</Version>
<Version>2.6.5</Version>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Release|AnyCPU'">
@ -15,8 +15,8 @@
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Discord.Net" Version="1.0.2" />
<PackageReference Include="Newtonsoft.Json" Version="11.0.2" />
<PackageReference Include="Discord.Net" Version="2.2.0" />
<PackageReference Include="Newtonsoft.Json" Version="12.0.3" />
<PackageReference Include="Npgsql" Version="3.2.7" />
<PackageReference Include="System.ValueTuple" Version="4.5.0" />
</ItemGroup>