HarborHarbor
DocumentationGuidesPlugins
All plugins

Discord API

Discord HTTP API imported from Discord's official OpenAPI spec

APICategory: commsPopularity 87discord_api

Discord HTTP API imported from Discord's official OpenAPI spec

Install

hrbr plugins install discord-api

Harbor calls https://discord.com/api/v10 (driven by the upstream OpenAPI spec).

Quick start

hrbr exec 'return await discord_api.get({ /* see schema */ })'

Or from a Function:

import { defineOrbitJob } from "@hrbr/orbit";

export default defineOrbitJob({
  name: "discord-api-example",
  handler: async (ctx) => {
    return await ctx.plugins.discord_api.list({ limit: 5 });
  },
});

Tools

Tools are generated from the upstream OpenAPI spec. Inspect with:

hrbr plugins tools discord-api

Or open the dashboard plugin page for the live tool list.