Discord
Source: https://runstack.engineer/docs/toolkits/discord
User identity, guilds, invites, apps, and entitlements.
Tools (23):
| Tool | Description |
|---|---|
discordGetMyUser | Get the authenticated user profile (id, username, avatar, locale, premium). Email is included only with the email scope. |
discordGetUser | Get a user by ID. With an OAuth Bearer token only '@me' (the caller) is supported; any user ID needs a bot token. Start with '@me' when unsure. |
discordGetOpenIdUserinfo | Get OIDC-standard claims (sub, email, nickname, picture, locale) for the caller. Needs the openid scope; email needs the email scope, profile fields need identify. |
discordGetMyOAuth2Authorization | Get the current authorization: application info, granted scopes, token expiry, and user (with identify scope). Use to verify token capabilities before scoped calls. |
discordGetPublicKeys | Get Discord JWKS public keys for verifying OAuth2/OIDC tokens. No scopes required. |
discordListMyConnections | List the caller third-party linked accounts (GitHub, Spotify, Twitch, etc.). Needs the connections scope. |
discordGetMyGuildMember | Get the caller guild member object (roles, nickname, join date, permissions) for one guild. Needs guilds.members.read. |
discordListMyGuilds | List guilds the caller is in (partial objects with permissions and features). Use for server lists or membership checks. Needs the guilds scope. |
discordGetGuildTemplate | Get a guild template by code, including the serialized source guild (channels, roles). Use for server-creation blueprints. |
discordGetGuildWidget | Get the public guild widget JSON (online members, voice channels, invite). The widget must be enabled in server settings. |
discordGetGuildWidgetPng | Get a guild widget banner image URL (shield or banner1-4 style) for embedding on external sites. The widget must be enabled in server settings. Returns the public image URL (no auth needed to view). |
discordResolveInvite | Resolve an invite code (bare code, vanity URL, or full discord.gg URL) to guild/channel/event details. Null or partial responses mean expired, revoked, or inaccessible invites — do not infer membership from them. |
discordEditCommandPermissions | Set permission overrides for an application command in a guild. Needs an OAuth2 Bearer token (bot tokens error) and MANAGE_GUILD + MANAGE_ROLES for the authorizing user. |
discordGetCommandPermissions | Get permission overrides for one application command in a guild. Needs an OAuth2 Bearer token (bot tokens error). |
discordGetBatchCommandPermissions | Get permission overrides for all commands of an application in a guild. Needs an OAuth2 Bearer token (bot tokens error). |
discordGetMyEntitlements | List the caller entitlements for an application, with pagination and SKU filters. guild_id is filtered locally since the route has no such filter. |
discordGetRoleConnection | Get the caller application role connection (platform name/username, metadata) for an application. Needs role_connections.write. |
discordUpdateRoleConnection | Update the caller application role connection (platform name/username, string-ified metadata). Needs role_connections.write. |
discordDeleteRoleConnection | Delete the caller application role connection for an application, removing platform metadata. Confirm with the user first. |
discordGetSkuSubscription | Get one subscription by ID for a SKU, including status and current period. |
discordListSkuSubscriptions | List subscriptions for a SKU with pagination. user_id filter is for bot tokens; omit it for OAuth2 user connections. |
discordGetGateway | Get the Discord Gateway WebSocket URL (wss) for real-time event connections. Connect to the returned URL separately. |
discordListStickerPacks | List official Discord Nitro sticker packs with their stickers. Use to browse available stickers. |