View Source FLHook.Command protocol (FLHook Client v2.1.1)
A protocol to implement custom commands.
Summary
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.