class RichCrystal::Client
- RichCrystal::Client
- Reference
- Object
Defined in:
rich-crystal/client.crConstructors
-
.new(client_id : UInt64)
Creates a new Rich-crystal client used for set rich presence activity
Instance Method Summary
-
#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
-
#login
Log the Rich-crystal client by sending a first handshake to the IPC
Constructor Detail
def self.new(client_id : UInt64)
#
Creates a new Rich-crystal client used for set rich presence activity
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