class RichCrystal::Client

Defined in:

rich-crystal/client.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(client_id : UInt64) #

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


[View source]

Instance Method Detail

def 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


[View source]
def login #

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


[View source]