Docs · static mirror — the interactive version loads with JavaScript.

Discord

Source: https://runstack.engineer/docs/toolkits/discord

User identity, guilds, invites, apps, and entitlements.

Tools (23):

ToolDescription
discordGetMyUserGet the authenticated user profile (id, username, avatar, locale, premium). Email is included only with the email scope.
discordGetUserGet 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.
discordGetOpenIdUserinfoGet OIDC-standard claims (sub, email, nickname, picture, locale) for the caller. Needs the openid scope; email needs the email scope, profile fields need identify.
discordGetMyOAuth2AuthorizationGet the current authorization: application info, granted scopes, token expiry, and user (with identify scope). Use to verify token capabilities before scoped calls.
discordGetPublicKeysGet Discord JWKS public keys for verifying OAuth2/OIDC tokens. No scopes required.
discordListMyConnectionsList the caller third-party linked accounts (GitHub, Spotify, Twitch, etc.). Needs the connections scope.
discordGetMyGuildMemberGet the caller guild member object (roles, nickname, join date, permissions) for one guild. Needs guilds.members.read.
discordListMyGuildsList guilds the caller is in (partial objects with permissions and features). Use for server lists or membership checks. Needs the guilds scope.
discordGetGuildTemplateGet a guild template by code, including the serialized source guild (channels, roles). Use for server-creation blueprints.
discordGetGuildWidgetGet the public guild widget JSON (online members, voice channels, invite). The widget must be enabled in server settings.
discordGetGuildWidgetPngGet 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).
discordResolveInviteResolve 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.
discordEditCommandPermissionsSet 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.
discordGetCommandPermissionsGet permission overrides for one application command in a guild. Needs an OAuth2 Bearer token (bot tokens error).
discordGetBatchCommandPermissionsGet permission overrides for all commands of an application in a guild. Needs an OAuth2 Bearer token (bot tokens error).
discordGetMyEntitlementsList the caller entitlements for an application, with pagination and SKU filters. guild_id is filtered locally since the route has no such filter.
discordGetRoleConnectionGet the caller application role connection (platform name/username, metadata) for an application. Needs role_connections.write.
discordUpdateRoleConnectionUpdate the caller application role connection (platform name/username, string-ified metadata). Needs role_connections.write.
discordDeleteRoleConnectionDelete the caller application role connection for an application, removing platform metadata. Confirm with the user first.
discordGetSkuSubscriptionGet one subscription by ID for a SKU, including status and current period.
discordListSkuSubscriptionsList subscriptions for a SKU with pagination. user_id filter is for bot tokens; omit it for OAuth2 user connections.
discordGetGatewayGet the Discord Gateway WebSocket URL (wss) for real-time event connections. Connect to the returned URL separately.
discordListStickerPacksList official Discord Nitro sticker packs with their stickers. Use to browse available stickers.