UNPKG

dbos.api

Version:

The official DBOS api wrapper!

29 lines (18 loc) 534 B
# 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) ```