A minimalistic TypeScript-first library for interacting with all of Discord's REST API endpoints. Version 0.10.5 is current but still pre-1.0, with frequent commits. Unlike discord.js, it focuses solely on REST without Gateway, making it lightweight. Written in TypeScript, publishes declarations. Release cadence is irregular; breaking changes can occur between minor versions.
npm install detritus-client-restNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes a client with a bot token and fetches the list of guilds the bot is in.
Refer to changelog; likely need to update import paths and method calls.
Check Discord API changelog and migrate to alternatives.
Always provide a token in the constructor or call client.login({ token: '...' }) before making requests.npm install detritus-client-rest; use ESM import syntax.
Pass token in constructor: new Client({ token: 'YOUR_TOKEN' })No dependency data recorded yet.