Lanyard TypeScript definitions & minimal HTTP API wrapper
bun i @prequist/lanyardimport { get } from '@prequist/lanyard';
const data = await get(snowflake);
data.active_on_discord_mobile; // booleanAll types are exported, and can be found in ./src/types.ts.
import type { Types } from '@prequist/lanyard';
// Example
export function isOnline(presence: Types.Presence) {
return presence === 'online' || presence === 'idle';
}