Skip to main content

ChatCommandAttribute

Obsolete

Use [Command] instead.

Marks a plugin method as a handler for a chat command. Can be applied multiple times.

public class ChatCommandAttribute : Attribute

Namespace: DeadworksManaged.Api
Inherits / implements: Attribute
Source: Events/ChatCommandAttribute.cs#L6

Constructors​

new ChatCommandAttribute()​

Signature

public ChatCommandAttribute(string command)

Parameters

  • command: The command string to match, including any prefix character.

Source: Events/ChatCommandAttribute.cs#L12

Properties​

ChatCommandAttribute.Command​

The chat command string this attribute matches, including the prefix (e.g. "!mycommand").

Signature

public string Command { get; }

Source: Events/ChatCommandAttribute.cs#L9