dressed
Version:
A sleek, serverless-ready Discord bot framework.
23 lines • 615 B
JavaScript
import { Routes } from "discord-api-types/v10";
import { callDiscord } from "../utils/call-discord.js";
/**
* Get the current bot application.
*/
export async function getApp() {
const res = await callDiscord(Routes.currentApplication(), {
method: "GET",
});
return res.json();
}
/**
* Update the current bot application.
* @param data New data for the application
*/
export async function modifyApp(data) {
const res = await callDiscord(Routes.currentApplication(), {
method: "PATCH",
body: data,
});
return res.json();
}
//# sourceMappingURL=application.js.map