.NET library for Lanyard API
<UserID>
- Discord user ID<APIKey>
- Lanyard KV API key
Class for getting user presence
using var Client = new LanyardClient();
var Presence = await Client.GetPresence(<UserID>);
Class for managing KV store
using var KV = new KVClient(<UserID>, <APIKey>);
// Set key
await KV.SetKey(<Key>, <Value>);
// Set multiple keys
var Keys = new Dictionary<string, string> {
{ <Key>, <Value> },
{ <Key>, <Value> }
};
await KV.SetKeys(Keys);
// Delete key
await KV.DeleteKey(<Key>);
// Get presence
var Presence = await KV.GetPresence();
WinForms application for testing library