Browse Source

Bump down lang. version & whitespace cleanup.

pull/1037/head
Alex Gravely 7 years ago
parent
commit
0e78fd9155
2 changed files with 3 additions and 6 deletions
  1. +1
    -4
      src/Discord.Net.Commands/Discord.Net.Commands.csproj
  2. +2
    -2
      src/Discord.Net.Commands/Extensions/CommandServiceExtensions.cs

+ 1
- 4
src/Discord.Net.Commands/Discord.Net.Commands.csproj View File

@@ -1,4 +1,4 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<Import Project="../../Discord.Net.targets" /> <Import Project="../../Discord.Net.targets" />
<PropertyGroup> <PropertyGroup>
<AssemblyName>Discord.Net.Commands</AssemblyName> <AssemblyName>Discord.Net.Commands</AssemblyName>
@@ -6,9 +6,6 @@
<Description>A Discord.Net extension adding support for bot commands.</Description> <Description>A Discord.Net extension adding support for bot commands.</Description>
<TargetFrameworks>netstandard1.1</TargetFrameworks> <TargetFrameworks>netstandard1.1</TargetFrameworks>
</PropertyGroup> </PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(TargetFramework)|$(Platform)'=='Debug|netstandard1.1|AnyCPU'">
<LangVersion>7.3</LangVersion>
</PropertyGroup>
<ItemGroup> <ItemGroup>
<ProjectReference Include="..\Discord.Net.Core\Discord.Net.Core.csproj" /> <ProjectReference Include="..\Discord.Net.Core\Discord.Net.Core.csproj" />
</ItemGroup> </ItemGroup>


+ 2
- 2
src/Discord.Net.Commands/Extensions/CommandServiceExtensions.cs View File

@@ -9,7 +9,7 @@ namespace Discord.Commands
public static async Task<IReadOnlyCollection<CommandInfo>> GetExecutableCommandsAsync(this IEnumerable<CommandInfo> commands, ICommandContext context, IServiceProvider provider) public static async Task<IReadOnlyCollection<CommandInfo>> GetExecutableCommandsAsync(this IEnumerable<CommandInfo> commands, ICommandContext context, IServiceProvider provider)
{ {
var executableCommands = new List<CommandInfo>(); var executableCommands = new List<CommandInfo>();
foreach (var command in commands) foreach (var command in commands)
{ {
var result = await command.CheckPreconditionsAsync(context, provider).ConfigureAwait(false); var result = await command.CheckPreconditionsAsync(context, provider).ConfigureAwait(false);
@@ -29,7 +29,7 @@ namespace Discord.Commands


foreach (var subModule in module.Submodules) foreach (var subModule in module.Submodules)
executableCommands.AddRange(await subModule.GetExecutableCommandsAsync(context, provider).ConfigureAwait(false)); executableCommands.AddRange(await subModule.GetExecutableCommandsAsync(context, provider).ConfigureAwait(false));
return executableCommands; return executableCommands;
} }
} }


Loading…
Cancel
Save