Browse Source

Change result types from struct to class

pull/628/head
FiniteReality 8 years ago
parent
commit
74b89964d4
5 changed files with 5 additions and 5 deletions
  1. +1
    -1
      src/Discord.Net.Commands/Results/ExecuteResult.cs
  2. +1
    -1
      src/Discord.Net.Commands/Results/ParseResult.cs
  3. +1
    -1
      src/Discord.Net.Commands/Results/PreconditionResult.cs
  4. +1
    -1
      src/Discord.Net.Commands/Results/SearchResult.cs
  5. +1
    -1
      src/Discord.Net.Commands/Results/TypeReaderResult.cs

+ 1
- 1
src/Discord.Net.Commands/Results/ExecuteResult.cs View File

@@ -4,7 +4,7 @@ using System.Diagnostics;
namespace Discord.Commands namespace Discord.Commands
{ {
[DebuggerDisplay(@"{DebuggerDisplay,nq}")] [DebuggerDisplay(@"{DebuggerDisplay,nq}")]
public struct ExecuteResult : IResult
public class ExecuteResult : IResult
{ {
public Exception Exception { get; } public Exception Exception { get; }




+ 1
- 1
src/Discord.Net.Commands/Results/ParseResult.cs View File

@@ -4,7 +4,7 @@ using System.Diagnostics;
namespace Discord.Commands namespace Discord.Commands
{ {
[DebuggerDisplay(@"{DebuggerDisplay,nq}")] [DebuggerDisplay(@"{DebuggerDisplay,nq}")]
public struct ParseResult : IResult
public class ParseResult : IResult
{ {
public IReadOnlyList<TypeReaderResult> ArgValues { get; } public IReadOnlyList<TypeReaderResult> ArgValues { get; }
public IReadOnlyList<TypeReaderResult> ParamValues { get; } public IReadOnlyList<TypeReaderResult> ParamValues { get; }


+ 1
- 1
src/Discord.Net.Commands/Results/PreconditionResult.cs View File

@@ -3,7 +3,7 @@
namespace Discord.Commands namespace Discord.Commands
{ {
[DebuggerDisplay(@"{DebuggerDisplay,nq}")] [DebuggerDisplay(@"{DebuggerDisplay,nq}")]
public struct PreconditionResult : IResult
public class PreconditionResult : IResult
{ {
public CommandError? Error { get; } public CommandError? Error { get; }
public string ErrorReason { get; } public string ErrorReason { get; }


+ 1
- 1
src/Discord.Net.Commands/Results/SearchResult.cs View File

@@ -4,7 +4,7 @@ using System.Diagnostics;
namespace Discord.Commands namespace Discord.Commands
{ {
[DebuggerDisplay(@"{DebuggerDisplay,nq}")] [DebuggerDisplay(@"{DebuggerDisplay,nq}")]
public struct SearchResult : IResult
public class SearchResult : IResult
{ {
public string Text { get; } public string Text { get; }
public IReadOnlyList<CommandMatch> Commands { get; } public IReadOnlyList<CommandMatch> Commands { get; }


+ 1
- 1
src/Discord.Net.Commands/Results/TypeReaderResult.cs View File

@@ -6,7 +6,7 @@ using System.Diagnostics;
namespace Discord.Commands namespace Discord.Commands
{ {
[DebuggerDisplay(@"{DebuggerDisplay,nq}")] [DebuggerDisplay(@"{DebuggerDisplay,nq}")]
public struct TypeReaderValue
public class TypeReaderValue
{ {
public object Value { get; } public object Value { get; }
public float Score { get; } public float Score { get; }


Loading…
Cancel
Save