Table of Contents

Class CommandResult

Namespace
JD.AI.Core.Commands
Assembly
JD.AI.Core.dll

Result returned by a command execution.

public record CommandResult : IEquatable<CommandResult>
Inheritance
CommandResult
Implements
Inherited Members

Properties

Content

Response content to send back to the invoker.

public required string Content { get; init; }

Property Value

string

Ephemeral

Whether the response should be ephemeral (visible only to invoker). Supported on Discord (ephemeral responses) and Slack (response_type: ephemeral).

public bool Ephemeral { get; init; }

Property Value

bool

Success

Whether the command succeeded.

public required bool Success { get; init; }

Property Value

bool