Skip to content

Class RunCommand

Namespace: Void.Minecraft.Components.Text.Events.Actions.Click
Assembly: Void.Minecraft.dll

Represents a click action that submits a command through the client.

public record RunCommand : IClickEventAction, IEquatable<RunCommand>

Inheritance

objectRunCommand

Implements

IClickEventAction, IEquatable<RunCommand>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.MemberwiseClone(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

RunCommand(string)

Represents a click action that submits a command through the client.

public RunCommand(string Command)

Parameters

Command string

The command text, including any leading slash expected by the client.

Properties

ActionName

Gets the run_command click-action identifier.

public string ActionName { get; }

Property Value

string

Command

The command text, including any leading slash expected by the client.

public string Command { get; init; }

Property Value

string