Table of Contents

Class PreconditionGroupResult

Namespace
Discord.Commands
Assembly
Discord.Net.Commands.dll
public class PreconditionGroupResult : PreconditionResult, IResult
Inheritance
PreconditionGroupResult
Implements
Inherited Members

Constructors

PreconditionGroupResult(CommandError?, string, ICollection<PreconditionResult>)

protected PreconditionGroupResult(CommandError? error, string errorReason, ICollection<PreconditionResult> preconditions)

Parameters

error CommandError?
errorReason string
preconditions ICollection<PreconditionResult>

Properties

PreconditionResults

public IReadOnlyCollection<PreconditionResult> PreconditionResults { get; }

Property Value

IReadOnlyCollection<PreconditionResult>

Methods

FromError(IResult)

public static PreconditionGroupResult FromError(IResult result)

Parameters

result IResult

Returns

PreconditionGroupResult

FromError(Exception)

public static PreconditionGroupResult FromError(Exception ex)

Parameters

ex Exception

Returns

PreconditionGroupResult

FromError(string, ICollection<PreconditionResult>)

public static PreconditionGroupResult FromError(string reason, ICollection<PreconditionResult> preconditions)

Parameters

reason string
preconditions ICollection<PreconditionResult>

Returns

PreconditionGroupResult

FromSuccess()

public static PreconditionGroupResult FromSuccess()

Returns

PreconditionGroupResult

ToString()

Returns a string indicating whether the PreconditionResult is successful.

public override string ToString()

Returns

string