#34 Switch to C#8 and syntax fixes for AsyncEnumerable
This commit is contained in:
parent
80cab1ea44
commit
aab8d15a8c
|
@ -95,7 +95,7 @@ namespace DML.AppCore.Classes
|
||||||
if (isFirst)
|
if (isFirst)
|
||||||
{
|
{
|
||||||
//messages = await channel.GetMessagesAsync(limit).ToArray() as SocketMessage[];
|
//messages = await channel.GetMessagesAsync(limit).ToArray() as SocketMessage[];
|
||||||
var realMessages = await channel.GetMessagesAsync(limit).ToArray();
|
var realMessages = await channel.GetMessagesAsync(limit).ToArrayAsync();
|
||||||
|
|
||||||
foreach (var realMessageArray in realMessages)
|
foreach (var realMessageArray in realMessages)
|
||||||
{
|
{
|
||||||
|
@ -107,7 +107,7 @@ namespace DML.AppCore.Classes
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
var realMessages = await channel.GetMessagesAsync(lastId, Direction.Before, limit).ToArray();
|
var realMessages = await channel.GetMessagesAsync(lastId, Direction.Before, limit).ToArrayAsync();
|
||||||
|
|
||||||
foreach (var realMessageArray in realMessages)
|
foreach (var realMessageArray in realMessages)
|
||||||
{
|
{
|
||||||
|
|
|
@ -21,6 +21,7 @@
|
||||||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
|
<LangVersion>8</LangVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||||
<DebugType>pdbonly</DebugType>
|
<DebugType>pdbonly</DebugType>
|
||||||
|
@ -29,6 +30,7 @@
|
||||||
<DefineConstants>TRACE</DefineConstants>
|
<DefineConstants>TRACE</DefineConstants>
|
||||||
<ErrorReport>prompt</ErrorReport>
|
<ErrorReport>prompt</ErrorReport>
|
||||||
<WarningLevel>4</WarningLevel>
|
<WarningLevel>4</WarningLevel>
|
||||||
|
<LangVersion>8</LangVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<ItemGroup>
|
<ItemGroup>
|
||||||
<Reference Include="Discord.Net.Commands, Version=2.2.0.0, Culture=neutral, processorArchitecture=MSIL">
|
<Reference Include="Discord.Net.Commands, Version=2.2.0.0, Culture=neutral, processorArchitecture=MSIL">
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
<wpf:ResourceDictionary xml:space="preserve" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:s="clr-namespace:System;assembly=mscorlib" xmlns:ss="urn:shemas-jetbrains-com:settings-storage-xaml" xmlns:wpf="http://schemas.microsoft.com/winfx/2006/xaml/presentation">
|
||||||
|
<s:String x:Key="/Default/CodeInspection/CSharpLanguageProject/LanguageLevel/@EntryValue">CSharp80</s:String></wpf:ResourceDictionary>
|
Loading…
Reference in a new issue