Discord Elixir v1.1.4 DiscordEx.Client.Utility
Utilty methods to be used for discord clients.
Normalizers, Encoders, and Decoders
Summary
Functions
Generic function for updating the value of an agent process
Generic function for getting the value from an agent process
Convert atom to string
Get the atom value of and opcode using an integer value
Build a binary payload for discord communication
Build a json payload for discord communication
Decode json payload received from discord into a map
Functions
Specs
agent_update(pid, any) :: nil
Generic function for updating the value of an agent process
Specs
agent_value(pid) :: any
Generic function for getting the value from an agent process
Specs
opcode(map, atom) :: integer
opcode(map, integer) :: atom
Get the atom value of and opcode using an integer value
Specs
payload_build(number, map, number, String.t) :: binary
Build a binary payload for discord communication
Specs
payload_build_json(number, map, number, String.t) :: binary
Build a json payload for discord communication