View Source FLHook.Command protocol (FLHook Client v2.0.0)

A protocol to implement custom commands.

Link to this section Summary

Types

Type representing a command.

t()

Functions

Returns a command string or tuple. It may even return another command except itself.

Link to this section Types

@type command() :: t() | serializable()

Type representing a command.

@type serializable() ::
  String.t() | [String.Chars.t()] | {String.t(), [String.Chars.t()]}
@type t() :: term()

Link to this section Functions

@spec to_cmd(t()) :: serializable()

Returns a command string or tuple. It may even return another command except itself.