Discord Elixir v1.1.18 DiscordEx.Client.Utility View Source
Utilty methods to be used for discord clients.
Normalizers, Encoders, and Decoders
Link to this section 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
Link to this section 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
opcode(map(), integer()) :: atom()
opcode(map(), atom()) :: integer()
Get the atom value of and opcode using an integer value
payload_build(number(), map(), number(), String.t()) :: binary()
Build a binary payload for discord communication
payload_build_json(number(), map(), number(), String.t()) :: binary()
Build a json payload for discord communication
payload_decode(list(), {atom(), binary()}) :: map()
payload_decode(list(), {atom(), binary()}) :: map()
Decode json payload received from discord into a map