skills/docs.unified.to/discord-oauth-app

discord-oauth-app

Installation
SKILL.md

Discord OAuth2 App Registration

Get a working Discord application — client ID, client secret, bot token, redirect URIs, scopes, a permissions bitfield and whatever intents you actually need — for a platform that connects other organizations' Discord servers on behalf of many customers.

Discord's portal is free and instant, and that is the trap: the expensive decisions are invisible in it. Three of them. First, a Discord app hands you two unrelated credentials — a long-lived bot token that acts as the app inside every server the bot was installed into, and a short-lived OAuth2 access token that acts as one signed-in user (§5). They reach different data, and most connectors need both. Second, the bot scope plus a permissions bitfield is a different install than a plain user authorization, and that bitfield is a permissions bitfield, not an intents bitfield — two different numbering schemes that look identical and are constantly confused (§7). Third, privileged gateway intents are the wall: MESSAGE_CONTENT and GUILD_MEMBERS are portal toggles that stop being self-serve once the app can reach 10,000 users, and a wrong intent bitfield does not degrade, it closes the gateway connection with code 4014 (§8).

Live data beats this skill. The Unified.to scopes, credential fields and settings this skill quotes are a dated snapshot. For the current values, look up the integration: Core MCP list_unified_integrations with type: "discord", or GET https://api.unified.to/unified/integration?type=discord with your workspace API key, or read https://docs.unified.to/integrations/discord.md. In the response, api.auth.oauth2.scopes maps each Unified scope (e.g. crm_contact_read) to the vendor scopes your app must declare, api.auth.oauth2.has_unified_oauth2_credentials says whether Unified.to has its own app for this vendor, and token_names lists the credentials for a key-based connection. Where they differ from this skill, the live data wins. For behaviour the data does not cover, ask Unified.to support (hello@unified.to).

Inputs to collect before you start

Installs
2
First Seen
Oct 8, 2026