class

RichCrystal::Client

Inherits Reference / Object

Constructors

new(client_id : UInt64)

Creates a new Rich-crystal client used for set rich presence activity

Source

Instance methods

activity(activity : Hash(String, String))

Retrieves a Hash of Strings for sending the frame payload to the IPC with discord-rich-presence parameters (see here https://github.com/discordapp/discord-rpc/blob/master/documentation/hard-mode.md#new-rpc-command) and return the JSON response

Source
login

Log the Rich-crystal client by sending a first handshake to the IPC

Source