API reference Obsidian.API.Commands
CommandSuggestion record struct
A value offered to a player while they type a command argument.
public readonly record struct CommandSuggestion : IEquatable<CommandSuggestion>
In Obsidian.API.
Constructors
CommandSuggestion(string, ChatMessage)
public CommandSuggestion(string Text, ChatMessage Tooltip = null);A value offered to a player while they type a command argument.
Parameters
Text- The text that replaces the word being typed.
Tooltip- Shown when the player hovers the suggestion.
Properties
Text
public string Text { get; init; }The text that replaces the word being typed.
Tooltip
public ChatMessage Tooltip { get; init; }Shown when the player hovers the suggestion.