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

A protocol to implement custom commands.

Summary

Types

Type representing a command.

t()

All the types that implement this protocol.

Functions

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

Types

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

Type representing a command.

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

All the types that implement this protocol.

Functions

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

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