swiftlys2/docs/api/ai/
API Reference Commands

CommandInfo

Class
Namespace: SwiftlyS2.Shared.Commands · Assembly: SwiftlyS2.CS2.dll
public record CommandInfo : IEquatable<CommandInfo>
Inherits object

Contains information about a registered command.

View source

Properties

CommandName

The name of the command.

public required string CommandName { get; init; }
Property Value

HelpText

The help text for this command.

public required string HelpText { get; init; }
Property Value

Permission

The permission required to use this command.

public required string Permission { get; init; }
Property Value

RegisterRaw

Whether the command is registered without the 'sw_' prefix.

public required bool RegisterRaw { get; init; }
Property Value