Skip to content

Virenbar/lanyard-net

Repository files navigation

Lanyard.NET Build artifact Codacy Badge

NuGet

.NET library for Lanyard API

Usage

  • <UserID> - Discord user ID
  • <APIKey> - Lanyard KV API key

LanyardClient

Class for getting user presence

using var Client = new LanyardClient();
var Presence = await Client.GetPresence(<UserID>);

KVClient

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();

Lanyard.WF

WinForms application for testing library

About

.NET library for Lanyard API

Topics

Resources

License

Stars

Watchers

Forks

Sponsor this project

Packages

 
 
 

Languages