{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-agen-for-work/sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":["Notification","LightboxImage"]},"type":"markdown"},"seo":{"title":"Discord integration","siteUrl":"https://developers.frontegg.com/","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"discord-integration","__idx":0},"children":["Discord integration"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Integrating Discord with Frontegg allows your application to access user profiles, manage guild (server) memberships, read and send messages, and manage webhooks — all through Frontegg's integration layer using Discord OAuth 2.0."]},{"$$mdtype":"Tag","name":"hr","attributes":{},"children":[]},{"$$mdtype":"Tag","name":"Notification","attributes":{"title":"Prerequisites","type":"attention"},"children":[{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["A Discord account"]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Access to the ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://discord.com/developers/applications"},"children":["Discord Developer Portal"]}]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"create-a-discord-application","__idx":1},"children":["Create a Discord application"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"step-1-open-the-discord-developer-portal","__idx":2},"children":["Step 1: Open the Discord developer portal"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Go to the ",{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://discord.com/developers/applications"},"children":["Discord Developer Portal"]}," and sign in with your Discord account. On the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Applications"]}," page, click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["New Application"]},"."]},{"$$mdtype":"Tag","name":"LightboxImage","attributes":{"isLightbox":true},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/discord-1.14c5bb7cfb347696da61448f5c4ed9ae4b0f461f71efe7d808b06426d2aee037.1ce25488.png","alt":"Discord developer portal with New Application button highlighted"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"step-2-name-your-application","__idx":3},"children":["Step 2: Name your application"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create a new app"]}," dialog, enter a name for your application (for example, ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["Frontegg Integration"]},"). Check the box to agree to the Developer Terms of Service and Developer Policy, then click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Create"]},"."]},{"$$mdtype":"Tag","name":"LightboxImage","attributes":{"isLightbox":true},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/discord-2.beedf2aa7102b084daf2a7989901ca27a2bd1bef4d0b63777cc1207435bc9396.1ce25488.png","alt":"Create a new app dialog with name and terms accepted"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"step-3-view-application-details","__idx":4},"children":["Step 3: View application details"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["After creating the application, you are redirected to the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["General Information"]}," page. Here you can see your ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Application ID"]}," and configure other settings."]},{"$$mdtype":"Tag","name":"LightboxImage","attributes":{"isLightbox":true},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/discord-3.eb3aee66b1ca80c74bad00901e898845ece2c76bba6a1f0c1574d3ad75511a59.1ce25488.png","alt":"General Information page showing Application ID"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"configure-oauth2","__idx":5},"children":["Configure OAuth2"]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"step-4-copy-your-credentials","__idx":6},"children":["Step 4: Copy your credentials"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["In the left sidebar, click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["OAuth2"]},". On this page, you can find your ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client ID"]}," and ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client Secret"]},"."]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Copy the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client ID"]}," — it is displayed directly on the page."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["To get the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client Secret"]},", click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Reset Secret"]}," and copy the generated value."]}]},{"$$mdtype":"Tag","name":"Notification","attributes":{"title":"Save your Client Secret","type":"attention"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Store the Client Secret securely. If you lose it, you will need to reset it, which invalidates the previous secret."]}]},{"$$mdtype":"Tag","name":"LightboxImage","attributes":{"isLightbox":true},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/discord-4.4a397985eb0e7ecdc1339859213ebe3aaab87e9f9504dd6c5cff4daf7f53893c.1ce25488.png","alt":"OAuth2 page showing Client ID and Client Secret"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"step-5-configure-redirect-uris","__idx":7},"children":["Step 5: Configure redirect URIs"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Scroll down to the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Redirects"]}," section. Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Add Another"]}," and enter the following redirect URIs:"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["https://YOUR_MCP_GATEWAY_URL/integration-callback"]}]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Save Changes"]},"."]},{"$$mdtype":"Tag","name":"LightboxImage","attributes":{"isLightbox":true},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/discord-5.b56a5afd239c2e2ba90e4c6ea9a69bade825e1f77ec68899d63e89c053329770.1ce25488.png","alt":"Redirects section with Frontegg callback URIs configured"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":4,"id":"step-6-review-available-scopes","__idx":8},"children":["Step 6: Review available scopes"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Scroll down to the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["OAuth2 URL Generator"]}," section to see the list of available scopes. Discord does not require pre-selecting scopes in the developer portal — scopes are requested at authorization time and configured in the Frontegg portal."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The following scopes are available for the Discord integration:"]},{"$$mdtype":"Tag","name":"div","attributes":{"className":"md-table-wrapper"},"children":[{"$$mdtype":"Tag","name":"table","attributes":{"className":"md"},"children":[{"$$mdtype":"Tag","name":"thead","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Scope"},"children":["Scope"]},{"$$mdtype":"Tag","name":"th","attributes":{"data-label":"Description"},"children":["Description"]}]}]},{"$$mdtype":"Tag","name":"tbody","attributes":{},"children":[{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["identify"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Access user profile information"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["email"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Access user email address"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["guilds"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["List user guilds (servers)"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["guilds.members.read"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Read guild member information"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["messages.read"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Read messages in channels"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["connections"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Access user connections"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["bot"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create and manage bot actions"]}]},{"$$mdtype":"Tag","name":"tr","attributes":{},"children":[{"$$mdtype":"Tag","name":"td","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["webhook.incoming"]}]},{"$$mdtype":"Tag","name":"td","attributes":{},"children":["Create and manage webhooks"]}]}]}]}]},{"$$mdtype":"Tag","name":"Notification","attributes":{"title":"Minimum required scopes","type":"info"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["For basic functionality, you need: ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["identify"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["email"]},", ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["guilds"]},"."]}]},{"$$mdtype":"Tag","name":"LightboxImage","attributes":{"isLightbox":true},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"img","attributes":{"src":"/assets/discord-6.fe51d571e9e2c0d8180366212373ef90930a24f5b921863ccd98f02b2799e886.1ce25488.png","alt":"OAuth2 URL Generator showing available scopes"},"children":[]}]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"configure-the-frontegg-portal","__idx":9},"children":["Configure the Frontegg portal"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Once you have obtained your ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client ID"]}," and ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client Secret"]}," from the steps above, enter them in the integration configuration page of the Frontegg portal:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Open the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Frontegg portal"]}," and navigate to ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Environment"]}," → ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Integrations"]}," → ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Discord"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Enter the ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client ID"]}," and ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Client Secret"]}," in the corresponding fields."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Select the required ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["scopes"]},"."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Click ",{"$$mdtype":"Tag","name":"strong","attributes":{},"children":["Save"]},"."]}]},{"$$mdtype":"Tag","name":"Notification","attributes":{"title":"Keep your credentials secure","type":"attention"},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Never share or commit your Client Secret to version control."]}]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":3,"id":"additional-resources","__idx":10},"children":["Additional resources"]},{"$$mdtype":"Tag","name":"ul","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://discord.com/developers/docs/topics/oauth2"},"children":["Discord OAuth2 documentation"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"https://discord.com/developers/applications"},"children":["Discord Developer Portal"]}]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":[{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"a","attributes":{"href":"/agen-for-work/connectors/redirect-url"},"children":["How to get your Redirect URL"]}]}]}]}]},"headings":[{"value":"Discord integration","id":"discord-integration","depth":2},{"value":"Create a Discord application","id":"create-a-discord-application","depth":3},{"value":"Step 1: Open the Discord developer portal","id":"step-1-open-the-discord-developer-portal","depth":4},{"value":"Step 2: Name your application","id":"step-2-name-your-application","depth":4},{"value":"Step 3: View application details","id":"step-3-view-application-details","depth":4},{"value":"Configure OAuth2","id":"configure-oauth2","depth":3},{"value":"Step 4: Copy your credentials","id":"step-4-copy-your-credentials","depth":4},{"value":"Step 5: Configure redirect URIs","id":"step-5-configure-redirect-uris","depth":4},{"value":"Step 6: Review available scopes","id":"step-6-review-available-scopes","depth":4},{"value":"Configure the Frontegg portal","id":"configure-the-frontegg-portal","depth":3},{"value":"Additional resources","id":"additional-resources","depth":3}],"frontmatter":{"seo":{"title":"Discord integration"}},"lastModified":"2026-05-01T18:45:25.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/agen-for-work/connectors/marketplace/discord","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}