dbos.api
Version:
The official DBOS api wrapper!
29 lines (18 loc) • 534 B
Markdown
get all the objects from the API headers
(API header - https://dbos.ga/api/(serverid/global)/u/userId)
```
const dbos = require("dbos.api");
const guild = await dbos.get.guild._info(msg.guild.id);
console.log(guild.name)
```
(API header - https://dbos.ga/api/global/s/(serverid))
```
const dbos = require("dbos.api");
const req = await dbos.get.user._info(msg.author.id, ''); // Second arg for a server user
console.log(req.username)
```
You can