dbos.api
v0.1.2
Published
The official DBOS api wrapper!
Downloads
27
Readme
DBOS.api
You can get all the objects from the API headers
GET
Global
Users
(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)
Guilds
(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)