Discord role grant loyalty rule. Automatically assign Discord roles based on loyalty achievements.
Overview
This loyalty rule allows admins to automatically grant a specific Discord role to users when they claim the reward. This rule is useful for automating role distribution based on loyalty achievements or user actions.
Prerequisites
Snag Discord bot must be added to the Discord server with Manage Roles permission.
The Snag Bot role must be higher in the Discord role hierarchy than the role being granted.
The user must have connected their Discord account to Snag.
Important: The Snag Discord bot requires the Manage Roles permission
to function correctly. Additionally, ensure the bot’s role is positioned above
the role you intend to grant in your Discord server settings.
Rule Configuration Fields
Reward
Type of Reward: Choose between “Points” or “Multiplier”.
Points: Users will get the defined no of points.
Multiplier: Users will get the multiplier of the defined amount.
Basic Settings
Update Cadence: This defines when the rule will run. It can also be claimed manually by users via the “Claim” button.
User Reward Frequency: This defines how often users can receive the reward (e.g., one-time).
Custom Settings
Skip the multiplier for this rule: If enabled, any global multipliers will not apply to this rule’s reward.
Discord Server Id: The ID of the Discord server where the role will be granted.
Discord Role Id: The ID of the role(s) that will be granted to the users upon completion. You can define multiple role IDs to grant multiple roles at once.
Was this page helpful?
{"docsConfig":{"theme":"mint","$schema":"https://mintlify.com/docs.json","name":"Snag Docs","description":"Snag is the leading onchain loyalty platform for Web3 brands. Set up rewards, manage authentication, and customize your ecosystem with our API and SDKs.","colors":{"primary":"#ED8200","light":"#FFA366","dark":"#C66F00"},"logo":{"light":"https://assets.snagsolutions.io/public/docs/snag-logo-dark-no-bg.svg","dark":"https://assets.snagsolutions.io/public/docs/snag-logo-white-no-bg.svg"},"favicon":"https://mintcdn.com/snag/23WkLjZqzGozTJVk/assets/snag-favicon.svg?fit=max\u0026auto=format\u0026n=23WkLjZqzGozTJVk\u0026q=85\u0026s=299897cb994699b5cd751585c147e84e","background":{"decoration":"grid"},"navbar":{"links":[{"href":"https://www.snagsolutions.io/","label":"Explore Snag"}],"primary":{"type":"button","label":"Admin Dashboard","href":"https://admin.snagsolutions.io"}},"footer":{"socials":{"x":"https://x.com/Snag_Solutions","linkedin":"https://www.linkedin.com/company/snag-solutions"}},"seo":{"indexing":"all"},"integrations":{"ga4":{"measurementId":"G-C5NW6B6HT3"}},"metadata":{"timestamp":false},"styling":{"latex":false},"navigation":{"global":{"anchors":[{"anchor":"Contact Us","icon":"envelope","href":"https://www.snagsolutions.io/contact"}]},"pages":[]}},"deployment":{"deploymentMetadataValue":{"subdomain":"snag","hasAudioNarration":false,"actualSubdomain":"snag","customDomains":["docs.snagsolutions.io"],"gitSource":{"type":"github","owner":"snag-solutions","repo":"web","deployBranch":"main","contentDirectory":"apps/docs","isPrivate":true,"mountPath":"","label":""},"feedback":{"thumbs":true,"issues":true},"entitlements":{"AI_CHAT":{"status":"DISABLED"}},"buildId":"6af64007a3c3fda906f0ee38:failure","clientVersion":"0.0.4347","searchFilterCounts":[{"language":"default","tag":"Loyalty","count":128},{"language":"default","tag":"Documentation","count":122},{"language":"default","tag":"API Reference","count":109},{"language":"default","tag":"Loyalty rules","count":63},{"language":"default","tag":"Detailed rules overview","count":57},{"language":"default","tag":"Identity","count":18},{"language":"default","tag":"Stratus","count":16},{"language":"default","tag":"Advanced workflows","count":10},{"language":"default","tag":"Development","count":9},{"language":"default","tag":"Minting","count":8}]},"assistantConfig":{},"basePath":"","hasChatPermissions":false,"hasWebMcpPermissions":false,"toggles":[{"name":"kill-isr","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-rbac-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-mintlify-slack","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"agent-integrations-settings","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"rbac-expansion","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-pr-grouping","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"custom-prefix","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"analytics-v7","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"user-flows-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"no-publish-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving-live","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"stripTemperatureMiddleware","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"support-platform-pylon-zendesk","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"snapshot-serving","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"instant-rollback","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications-server","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"granular-notifications","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automations-fable","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fixed-ai-action-pricing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"site-roles","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"automation-resolve-merge-conflict","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"scoped-publishing","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"mintql","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"page-level-analytics","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-version-history-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"billing-page-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"full-page-search","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"workspace-projects","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"fork-pr-previews","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"revalidation-jwt","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"hobby-abuse-scan","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"dashboard-inbox","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-dual-write","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"approve-review-flow","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"editor-metadata","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"turbopuffer-serve","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"live-agents","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"starter-pricing","enabled":true,"variant":{"name":"treatment","enabled":true,"payload":{"type":"string","value":"treatment"},"feature_enabled":true},"impressionData":false},{"name":"llms-txt-v2","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false},{"name":"wildcard-email-auth","enabled":true,"variant":{"name":"disabled","enabled":false,"feature_enabled":true},"impressionData":false}],"starterQuestions":[],"googleFontsInlined":false},"customCss":[]}
{"page":{"pagePath":"loyalty/rules/discord-grant-role","slug":"/loyalty/rules/discord-grant-role","pageMetadata":{"title":"Grant Discord Role","description":"Discord role grant loyalty rule. Automatically assign Discord roles based on loyalty achievements.","keywords":["Discord role automation","loyalty Discord roles","Discord role rewards","Web3 Discord bot"],"href":"/loyalty/rules/discord-grant-role"},"description":{"compiledSource":"\"use strict\";\nconst {jsx: _jsx} = arguments[0];\nconst {useMDXComponents: _provideComponents} = arguments[0];\nfunction _createMdxContent(props) {\n const _components = {\n p: \"p\",\n ..._provideComponents(),\n ...props.components\n };\n return _jsx(_components.p, {\n children: \"Discord role grant loyalty rule. Automatically assign Discord roles based on loyalty achievements.\"\n });\n}\nfunction MDXContent(props = {}) {\n const {wrapper: MDXLayout} = {\n ..._provideComponents(),\n ...props.components\n };\n return MDXLayout ? _jsx(MDXLayout, {\n ...props,\n children: _jsx(_createMdxContent, {\n ...props\n })\n }) : _createMdxContent(props);\n}\nreturn {\n default: MDXContent\n};\n","frontmatter":{},"scope":{}},"pageType":"default","mdx":{"mdxSource":{"compiledSource":"\"use strict\";const{Fragment:_Fragment,jsx:_jsx,jsxs:_jsxs}=arguments[0];const{useMDXComponents:_provideComponents}=arguments[0];function _createMdxContent(props){const _components={a:`a`,li:`li`,p:`p`,strong:`strong`,ul:`ul`,..._provideComponents(),...props.components},{Heading,Warning}=_components;if(!Heading)_missingMdxReference(`Heading`,true);if(!Warning)_missingMdxReference(`Warning`,true);return _jsxs(_Fragment,{children:[_jsx(`head`,{children:_jsx(`script`,{type:`application/ld+json`,children:JSON.stringify({\"@context\":`https://schema.org`,\"@type\":`TechArticle`,\"headline\":`Grant Discord Role`,\"description\":`Discord role grant loyalty rule. Automatically assign Discord roles based on loyalty achievements.`,\"author\":{\"@type\":`Organization`,\"name\":`Snag Solutions`,\"url\":`https://www.snagsolutions.io/`},\"publisher\":{\"@type\":`Organization`,\"name\":`Snag Solutions`,\"url\":`https://www.snagsolutions.io/`,\"logo\":{\"@type\":`ImageObject`,\"url\":`https://assets.snagsolutions.io/public/docs/snag-logo-dark-no-bg.svg`}},\"mainEntityOfPage\":`https://docs.snagsolutions.io/loyalty/rules/discord-grant-role`})})}),`\n`,_jsx(Heading,{level:`2`,id:`overview`,children:`Overview`}),`\n`,_jsxs(_components.p,{children:[`This loyalty rule allows admins to automatically grant a specific `,_jsx(_components.a,{href:`https://discord.com/developers/docs`,children:`Discord`}),` role to users when they claim the reward. This rule is useful for automating role distribution based on loyalty achievements or user actions.`]}),`\n`,_jsx(Heading,{level:`2`,id:`prerequisites`,children:`Prerequisites`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`Snag Discord bot must be added to the Discord server with `,_jsx(_components.strong,{children:`Manage Roles`}),` permission.`,`\n`,_jsxs(_components.ul,{children:[`\n`,_jsx(_components.li,{children:_jsx(_components.a,{href:`https://discord.com/oauth2/authorize?client_id=1079691446724075562\u0026permissions=8\u0026response_type=code\u0026redirect_uri=https://admin.snagsolutions.io/\u0026scope=bot+guilds.members.read`,children:`Invite Link`})}),`\n`]}),`\n`]}),`\n`,_jsx(_components.li,{children:`The Snag Bot role must be higher in the Discord role hierarchy than the role being granted.`}),`\n`,_jsx(_components.li,{children:`The user must have connected their Discord account to Snag.`}),`\n`]}),`\n`,_jsx(Warning,{children:_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Important:`}),` The Snag Discord bot requires the `,_jsx(_components.strong,{children:`Manage Roles`}),` permission\nto function correctly. Additionally, ensure the bot’s role is positioned above\nthe role you intend to grant in your Discord server settings.`]})}),`\n`,_jsx(Heading,{level:`2`,id:`rule-configuration-fields`,children:`Rule Configuration Fields`}),`\n`,_jsx(Heading,{level:`3`,id:`reward`,children:_jsx(_components.strong,{children:`Reward`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Type of Reward`}),`: Choose between “Points” or “Multiplier”.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Points`}),`: Users will get the defined no of points.`]}),`\n`]}),`\n`,_jsxs(_components.li,{children:[`\n`,_jsxs(_components.p,{children:[_jsx(_components.strong,{children:`Multiplier`}),`: Users will get the multiplier of the defined amount.`]}),`\n`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`basic-settings`,children:`Basic Settings`}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Update Cadence`}),`: This defines when the rule will run. It can also be claimed manually by users via the `,_jsx(_components.strong,{children:`“Claim” button`}),`.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`User Reward Frequency`}),`: This defines how often users can receive the reward (e.g., one-time).`]}),`\n`]}),`\n`,_jsx(Heading,{level:`3`,id:`custom-settings`,children:_jsx(_components.strong,{children:`Custom Settings`})}),`\n`,_jsxs(_components.ul,{children:[`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Skip the multiplier for this rule`}),`: If enabled, any global multipliers will not apply to this rule’s reward.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Discord Server Id`}),`: The ID of the Discord server where the role will be granted.`]}),`\n`,_jsxs(_components.li,{children:[_jsx(_components.strong,{children:`Discord Role Id`}),`: The ID of the role(s) that will be granted to the users upon completion. You can define multiple role IDs to grant multiple roles at once.`]}),`\n`]})]})}function MDXContent(props={}){const{wrapper:MDXLayout}={..._provideComponents(),...props.components};return MDXLayout?_jsx(MDXLayout,{...props,children:_jsx(_createMdxContent,{...props})}):_createMdxContent(props)}return{default:MDXContent};function _missingMdxReference(id,component){throw new Error(`Expected `+(component?`component`:`object`)+\" `\"+id+\"` to be defined: you likely forgot to import, pass, or provide it.\")}","frontmatter":{},"scope":{"config":{},"pageMetadata":{"title":"Grant Discord Role","description":"Discord role grant loyalty rule. Automatically assign Discord roles based on loyalty achievements.","keywords":["Discord role automation","loyalty Discord roles","Discord role rewards","Web3 Discord bot"],"href":"/loyalty/rules/discord-grant-role"}}},"mdxSourceWithNoJs":null,"noJsSplices":[[437,1124,""]]},"mdxExtracts":{"tableOfContents":[{"title":"Overview","slug":"overview","depth":2,"children":[]},{"title":"Prerequisites","slug":"prerequisites","depth":2,"children":[]},{"title":"Rule Configuration Fields","slug":"rule-configuration-fields","depth":2,"children":[{"title":"Reward","slug":"reward","depth":3,"children":[]},{"title":"Basic Settings","slug":"basic-settings","depth":3,"children":[]},{"title":"Custom Settings","slug":"custom-settings","depth":3,"children":[]}]}],"codeExamples":{}},"jsLinks":[],"subdomain":"snag","siteName":"Snag Docs","title":"Grant Discord Role - Snag Docs","contextualStarterQuestions":[],"navMaps":{"firstHrefInVersion":{},"firstHrefInLanguage":{}},"lastModified":"2026-02-09T23:22:44.713Z","originalFileLocation":"loyalty/rules/discord-grant-role.mdx"},"headHtml":"\u003cscript data-mint-head>(function(){var d=document.documentElement,p=null;if(!p){try{p=localStorage.getItem(\"isDarkMode\")}catch(e){}if(p==='true')p='dark';else if(p==='false')p='light';if(p!=='light'\u0026\u0026p!=='dark'\u0026\u0026p!=='system')p=\"system\"}var r=p==='system'?(matchMedia(\"(prefers-color-scheme: dark)\").matches?'dark':'light'):p;d.classList.remove(r==='dark'?'light':'dark');d.classList.add(r);d.setAttribute(\"data-theme-preference\",p)})();\u003c/script>\u003cmeta data-mint-head name=\"description\" content=\"Discord role grant loyalty rule. Automatically assign Discord roles based on loyalty achievements.\">\u003cmeta data-mint-head name=\"application-name\" content=\"Snag Docs\">\u003cmeta data-mint-head name=\"generator\" content=\"Mintlify\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/snag/bVxwX4SF7gjQAJgQ/_generated/favicon/android-chrome-192x192.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"apple-touch-icon\" type=\"image/png\" sizes=\"180x180\" href=\"/mintlify-assets/_mintlify/favicons/snag/bVxwX4SF7gjQAJgQ/_generated/favicon/apple-touch-icon.png\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/snag/bVxwX4SF7gjQAJgQ/_generated/favicon/favicon-16x16.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/snag/bVxwX4SF7gjQAJgQ/_generated/favicon/favicon-32x32.png\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/snag/bVxwX4SF7gjQAJgQ/_generated/favicon/favicon.ico\" media=\"(prefers-color-scheme: light)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"192x192\" href=\"/mintlify-assets/_mintlify/favicons/snag/bVxwX4SF7gjQAJgQ/_generated/favicon-dark/android-chrome-192x192.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"16x16\" href=\"/mintlify-assets/_mintlify/favicons/snag/bVxwX4SF7gjQAJgQ/_generated/favicon-dark/favicon-16x16.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"icon\" type=\"image/png\" sizes=\"32x32\" href=\"/mintlify-assets/_mintlify/favicons/snag/bVxwX4SF7gjQAJgQ/_generated/favicon-dark/favicon-32x32.png\" media=\"(prefers-color-scheme: dark)\">\u003clink data-mint-head rel=\"shortcut icon\" type=\"image/x-icon\" href=\"/mintlify-assets/_mintlify/favicons/snag/bVxwX4SF7gjQAJgQ/_generated/favicon-dark/favicon.ico\" media=\"(prefers-color-scheme: dark)\">\u003cmeta data-mint-head property=\"og:title\" content=\"Grant Discord Role - Snag Docs\">\u003cmeta data-mint-head property=\"og:description\" content=\"Discord role grant loyalty rule. Automatically assign Discord roles based on loyalty achievements.\">\u003cmeta data-mint-head property=\"og:site_name\" content=\"Snag Docs\">\u003cmeta data-mint-head property=\"og:url\" content=\"https://docs.snagsolutions.io/loyalty/rules/discord-grant-role\">\u003cmeta data-mint-head property=\"og:type\" content=\"website\">\u003cmeta data-mint-head property=\"og:image\" content=\"https://snag.mintlify.site/_mintlify/api/og/v2?division=Detailed+rules+overview\u0026amp;title=Grant+Discord+Role\u0026amp;description=Discord+role+grant+loyalty+rule.+Automatically+assign+Discord+roles+based+on+loyalty+achievements.\u0026amp;theme=a18a62bd30f1c613ee41a109\u0026amp;signature=e7a69c88374fb70b990582598fd20693ec21ff6e6a1b548d914ca715fa0b09c2\">\u003cmeta data-mint-head property=\"og:image:width\" content=\"1200\">\u003cmeta data-mint-head property=\"og:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"twitter:card\" content=\"summary_large_image\">\u003cmeta data-mint-head name=\"twitter:title\" content=\"Grant Discord Role - Snag Docs\">\u003cmeta data-mint-head name=\"twitter:description\" content=\"Discord role grant loyalty rule. Automatically assign Discord roles based on loyalty achievements.\">\u003cmeta data-mint-head name=\"twitter:image\" content=\"https://snag.mintlify.site/_mintlify/api/og/v2?division=Detailed+rules+overview\u0026amp;title=Grant+Discord+Role\u0026amp;description=Discord+role+grant+loyalty+rule.+Automatically+assign+Discord+roles+based+on+loyalty+achievements.\u0026amp;theme=a18a62bd30f1c613ee41a109\u0026amp;signature=e7a69c88374fb70b990582598fd20693ec21ff6e6a1b548d914ca715fa0b09c2\">\u003cmeta data-mint-head name=\"twitter:image:width\" content=\"1200\">\u003cmeta data-mint-head name=\"twitter:image:height\" content=\"630\">\u003cmeta data-mint-head name=\"msapplication-config\" content=\"/mintlify-assets/_mintlify/favicons/snag/bVxwX4SF7gjQAJgQ/_generated/favicon/browserconfig.xml\">\u003cmeta data-mint-head name=\"apple-mobile-web-app-title\" content=\"Snag Docs\">\u003cmeta data-mint-head name=\"msapplication-TileColor\" content=\"#ED8200\">\u003clink data-mint-head rel=\"canonical\" href=\"https://docs.snagsolutions.io/loyalty/rules/discord-grant-role\">\u003clink data-mint-head rel=\"alternate\" type=\"application/xml\" href=\"/sitemap.xml\">\u003clink data-mint-head rel=\"alternate\" type=\"text/markdown\" href=\"/loyalty/rules/discord-grant-role.md\">\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@graph\":[{\"@type\":\"Organization\",\"@id\":\"https://docs.snagsolutions.io/#organization\",\"name\":\"Snag Docs\",\"url\":\"https://docs.snagsolutions.io\",\"logo\":{\"@type\":\"ImageObject\",\"url\":\"https://assets.snagsolutions.io/public/docs/snag-logo-dark-no-bg.svg\"}},{\"@type\":\"WebSite\",\"@id\":\"https://docs.snagsolutions.io#website\",\"name\":\"Snag Docs\",\"url\":\"https://docs.snagsolutions.io\",\"publisher\":{\"@id\":\"https://docs.snagsolutions.io/#organization\"}},{\"@type\":\"WebPage\",\"@id\":\"https://docs.snagsolutions.io/loyalty/rules/discord-grant-role#webpage\",\"url\":\"https://docs.snagsolutions.io/loyalty/rules/discord-grant-role\",\"name\":\"Grant Discord Role\",\"description\":\"Discord role grant loyalty rule. Automatically assign Discord roles based on loyalty achievements.\",\"dateModified\":\"2026-02-09T23:22:44.713Z\",\"isPartOf\":{\"@id\":\"https://docs.snagsolutions.io#website\"},\"breadcrumb\":{\"@id\":\"https://docs.snagsolutions.io/loyalty/rules/discord-grant-role#breadcrumb\"}},{\"@type\":\"BreadcrumbList\",\"@id\":\"https://docs.snagsolutions.io/loyalty/rules/discord-grant-role#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Loyalty\",\"item\":\"https://docs.snagsolutions.io/loyalty/loyalty-overview\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Loyalty rules\",\"item\":\"https://docs.snagsolutions.io/loyalty/available-loyalty-rules\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Detailed rules overview\",\"item\":\"https://docs.snagsolutions.io/loyalty/rules/check-in\"},{\"@type\":\"ListItem\",\"position\":4,\"name\":\"Grant Discord Role\",\"item\":\"https://docs.snagsolutions.io/loyalty/rules/discord-grant-role\"}]},{\"@type\":[\"Article\",\"TechArticle\"],\"@id\":\"https://docs.snagsolutions.io/loyalty/rules/discord-grant-role#article\",\"headline\":\"Grant Discord Role\",\"name\":\"Grant Discord Role\",\"description\":\"Discord role grant loyalty rule. Automatically assign Discord roles based on loyalty achievements.\",\"url\":\"https://docs.snagsolutions.io/loyalty/rules/discord-grant-role\",\"mainEntityOfPage\":{\"@id\":\"https://docs.snagsolutions.io/loyalty/rules/discord-grant-role#webpage\"},\"dateModified\":\"2026-02-09T23:22:44.713Z\",\"keywords\":\"Discord role automation, loyalty Discord roles, Discord role rewards, Web3 Discord bot\",\"publisher\":{\"@id\":\"https://docs.snagsolutions.io/#organization\"},\"isPartOf\":{\"@id\":\"https://docs.snagsolutions.io#website\"}}]}\u003c/script>\u003cscript data-mint-head type=\"application/ld+json\">{\"@context\":\"https://schema.org\",\"@type\":\"WebSite\",\"name\":\"Snag Docs\",\"publisher\":{\"@type\":\"Organization\",\"name\":\"Snag Docs\"},\"provider\":{\"@type\":\"Organization\",\"name\":\"Mintlify\",\"url\":\"https://mintlify.com\"}}\u003c/script>","agentPointerHref":"/loyalty/rules/discord-grant-role.md","siteName":"Snag Docs","nav":{"global":{"anchors":[{"anchor":"Contact Us","icon":"envelope","href":"https://www.snagsolutions.io/contact"}]},"tabs":[{"tab":"Documentation","groups":[{"group":"Introduction","pages":[{"title":"Welcome to Snag Docs","icon":"hand-wave","iconType":"regular","sidebarTitle":"Welcome","href":"/welcome"},{"group":"Set up","icon":"rocket-launch","pages":[{"title":"Set up overview","sidebarTitle":"Overview","href":"/setup/setup-overview"},{"title":"Customization","href":"/setup/customization"},{"title":"Hostname","href":"/setup/hostname"},{"title":"User profiles","href":"/setup/user-profiles"},{"title":"Permissions","href":"/setup/permissions"}]}]},{"group":"Loyalty","pages":[{"group":"Get started","icon":"stars","pages":[{"title":"Loyalty overview","sidebarTitle":"Overview","href":"/loyalty/loyalty-overview"},{"title":"Set up loyalty currency","href":"/loyalty/set-up-loyalty-currency"},{"title":"Create your first rule","href":"/loyalty/create-your-first-rule"},{"title":"Program settings","href":"/loyalty/program-settings"}]},{"group":"Loyalty rules","icon":"wand-magic-sparkles","pages":[{"title":"Available loyalty rules","href":"/loyalty/available-loyalty-rules"},{"title":"Rules configuration","href":"/loyalty/rules-configuration"},{"group":"Detailed rules overview","pages":[{"title":"Check In","href":"/loyalty/rules/check-in"},{"title":"Enter a Code","href":"/loyalty/rules/code-entry"},{"title":"Complete Profile Details","href":"/loyalty/rules/complete-profile"},{"title":"Connect Discord","href":"/loyalty/rules/connect-discord"},{"title":"Connect Email","href":"/loyalty/rules/connect-email"},{"title":"Connect Epic","href":"/loyalty/rules/connect-epic"},{"title":"Connect GitHub","href":"/loyalty/rules/connect-github"},{"title":"Connect Reddit","href":"/loyalty/rules/connect-reddit"},{"title":"Connect Steam","href":"/loyalty/rules/connect-steam"},{"title":"Connect Telegram","href":"/loyalty/rules/connect-telegram"},{"title":"Connect Tiktok","href":"/loyalty/rules/connect-tiktok"},{"title":"Connect X","href":"/loyalty/rules/connect-twitter"},{"title":"Connect Instagram","href":"/loyalty/rules/connect-instagram"},{"title":"Connect Wallet","href":"/loyalty/rules/connect-wallet"},{"title":"Connect YouTube","href":"/loyalty/rules/connect-youtube"},{"title":"Smart Contract Event","href":"/loyalty/rules/contract-event"},{"title":"dApp Activity Rules","href":"/loyalty/rules/dapp-rules"},{"title":"Liquidity: Uniswap V2 \u0026 V3","href":"/loyalty/rules/liquidity-uniswap"},{"title":"Create Partner Account","description":"Partner account creation loyalty rule. Reward users for creating accounts on partner platforms.","href":"/loyalty/rules/create-partner-account"},{"title":"Grant Discord Role","href":"/loyalty/rules/discord-grant-role"},{"title":"Get Discord Role","description":"Discord member role loyalty rule. Reward users who hold specific Discord server roles.","href":"/loyalty/rules/discord-member-role"},{"title":"Send Discord Messages","href":"/loyalty/rules/discord-messages"},{"title":"Follow X Account","href":"/loyalty/rules/follow-x-account"},{"title":"Click a Link","href":"/loyalty/rules/link-click"},{"title":"Answer a Poll","href":"/loyalty/rules/poll"},{"title":"Answer a Quiz","href":"/loyalty/rules/quiz"},{"title":"Refer a Friend","href":"/loyalty/rules/refer-friends"},{"title":"Participate in Governance Vote","href":"/loyalty/rules/snapshot-governance"},{"title":"Spend in Shopify Store","href":"/loyalty/rules/spend-in-shopify-store"},{"title":"Add an Item to Steam Wishlist","href":"/loyalty/rules/steam-wishlist"},{"title":"Swap Tokens","href":"/loyalty/rules/swap"},{"title":"Join Telegram Group","href":"/loyalty/rules/telegram-join"},{"title":"Send Telegram Messages","href":"/loyalty/rules/telegram-messages"},{"title":"Post on TikTok","href":"/loyalty/rules/tiktok-post"},{"title":"Follow a TikTok Account","href":"/loyalty/rules/tiktok-follow"},{"title":"Post on Instagram","href":"/loyalty/rules/instagram-post"},{"title":"Submit Text Input","href":"/loyalty/rules/text-input"},{"title":"Hold a Fungible Token","href":"/loyalty/rules/token-hold-erc20"},{"title":"Hold an NFT","href":"/loyalty/rules/token-hold"},{"title":"Mint an NFT","href":"/loyalty/rules/token-mint"},{"title":"Purchase an NFT","href":"/loyalty/rules/token-purchase"},{"title":"Sale an NFT","href":"/loyalty/rules/token-sale"},{"title":"Reach X followers","href":"/loyalty/rules/x-followers"},{"title":"Post on X","href":"/loyalty/rules/x-new-tweet"},{"title":"Get X Post Impressions","href":"/loyalty/rules/x-post-impression"},{"title":"React to an X Post","href":"/loyalty/rules/x-post-reaction"},{"title":"Add Text to X Bio","href":"/loyalty/rules/x-text-in-bio"},{"title":"Comment on an X Post with Text","href":"/loyalty/rules/x-text-in-comment"},{"title":"Add Text to X Username","href":"/loyalty/rules/x-text-in-username"},{"title":"Comment on a YouTube Video","href":"/loyalty/rules/youtube-comment"},{"title":"Subscribe to a YouTube Channel","href":"/loyalty/rules/youtube-subscriber"},{"title":"Comment on a Reddit Post","href":"/loyalty/rules/reddit-comment"},{"title":"Star a GitHub Repository","href":"/loyalty/rules/github-repo-star"},{"title":"Fork a GitHub Repository","href":"/loyalty/rules/github-repo-fork"},{"title":"Become a GitHub Repository Collaborator","href":"/loyalty/rules/github-repo-collaborator"},{"title":"Merge a GitHub PR","href":"/loyalty/rules/github-merge-pr"},{"title":"Custom Function Rule","href":"/loyalty/rules/stratus-function"}]},{"title":"X rules logic","href":"/loyalty/x-rules-logic"},{"title":"Multipliers","href":"/loyalty/multipliers"},{"title":"Token Rewards","href":"/loyalty/token-rewards"},{"title":"External rule","href":"/loyalty/external-rules"}]},{"group":"Features","icon":"list-check","pages":[{"title":"Updating \u0026 reseting balances","href":"/loyalty/updating-balances"},{"title":"Blocking users","href":"/loyalty/blocking-users"},{"title":"Leaderboards","href":"/loyalty/leaderboards"},{"title":"Multi-wallet support","href":"/loyalty/multi-wallet-support"},{"title":"Loyalty rule progress tracking","href":"/loyalty/loyalty-rule-progress"},{"title":"Quest chaining","href":"/loyalty/quest-chaining"},{"title":"Quality Social Farming","href":"/loyalty/quality-social-farming"}]},{"group":"Development","icon":"code","pages":[{"title":"Getting started","href":"/loyalty/development/getting-started"},{"title":"Create users","href":"/loyalty/development/create-users"},{"title":"Manage user groups","href":"/loyalty/development/manage-user-groups"},{"title":"Connect social accounts","href":"/loyalty/development/connect-social-accounts"},{"title":"List loyalty rules and sections","href":"/loyalty/development/list-loyalty-rules"},{"title":"Verifying rule completion","href":"/loyalty/verifying-rule-completion"},{"title":"Checking Rule Completion Status","href":"/loyalty/check-rule-completion-status"},{"title":"Generate wallet addresses","href":"/loyalty/development/generate-wallet-addresses"},{"title":"Migrate users","href":"/loyalty/development/migrate-users"}]},{"group":"Advanced workflows","icon":"gear-complex-code","pages":[{"title":"Managing user accounts","href":"/loyalty/managing-user-accounts"},{"title":"Managing social accounts","href":"/loyalty/managing-social-accounts"},{"title":"Manage rule-level points on your side","href":"/loyalty/manage-rule-level-points"},{"title":"Internal currency integration","href":"/loyalty/internal-currency-integration"},{"title":"Snag Template App","sidebarTitle":"Template App","href":"/loyalty/nextjs-template"},{"title":"Custom user attributes","href":"/users/website-user-attributes"},{"title":"Delegate.cash integration","href":"/users/delegate-cash"},{"title":"Handling images and asset uploads","href":"/loyalty/handling-image-assets-and-upload"},{"title":"Create loyalty rules using API","href":"/loyalty/create-rule-using-api"},{"title":"Custom Rewards API","href":"/loyalty/custom-rewards-api"}]}]},{"group":"Create","pages":[{"title":"Page Builder","icon":"pen-ruler","href":"/create/page-builder"},{"title":"Badges","icon":"badge-check","href":"/create/badges"},{"title":"Rewards Shop","icon":"gift","href":"/create/rewards-shop"},{"title":"Claim Page","icon":"parachute-box","href":"/create/claim-page"}]},{"group":"Stratus","pages":[{"title":"Stratus overview","icon":"memo","iconType":"regular","sidebarTitle":"Overview","href":"/stratus/stratus-overview"},{"title":"Subscriptions","icon":"magnifying-glass-arrows-rotate","iconType":"regular","href":"/stratus/subscriptions"},{"title":"Webhooks","icon":"webhook","iconType":"regular","href":"/stratus/webhooks"},{"title":"Relayers","icon":"key-skeleton","href":"/stratus/relayers"},{"title":"Onchain points","icon":"coins","href":"/stratus/onchain-points"},{"group":"Functions","icon":"function","pages":[{"title":"Functions","iconType":"regular","sidebarTitle":"Overview","href":"/stratus/functions"},{"title":"Function syntax","iconType":"regular","href":"/stratus/syntax"},{"title":"Function templates","href":"/stratus/function-templates"},{"title":"Write a Stratus function for loyalty rule completion","href":"/stratus/function-loyalty-rule"}]}]},{"group":"Billing","pages":[{"group":"Plans \u0026 usage","icon":"layer-group","pages":[{"title":"Plans \u0026 features","href":"/billing/plans-features"},{"title":"Usage","href":"/billing/usage"},{"title":"Billing cycle","href":"/billing/billing-cycle"}]},{"group":"Manage your plan","icon":"credit-card","pages":[{"title":"Change or cancel your plan","href":"/billing/change-cancel-plan"},{"title":"Payment methods \u0026 billing info","href":"/billing/payment-methods-billing-info"}]},{"title":"Billing FAQ","sidebarTitle":"FAQ","icon":"comments-question-check","href":"/billing/faq"}]},{"group":"Data","pages":[{"title":"Snag Reporting (Looker) Overview","sidebarTitle":"Snag Reporting","icon":"chart-simple","iconType":"regular","href":"/data/snag-reporting"}]},{"group":"Support","pages":[{"title":"User Support Tool","icon":"screwdriver-wrench","href":"/support/user-support"}]},{"group":"Best practices","pages":[{"title":"Media Guidelines","icon":"ruler-triangle","iconType":"regular","href":"/best-practices/media-guide"}]},{"group":"AI","pages":[{"title":"Using AI Coding Assistants?","icon":"robot","href":"/ai-coding-assistant"}]}]},{"tab":"API Reference","pages":[{"title":"API Reference","href":"/api-reference/introduction"}]},{"tab":"User Auth","pages":[{"title":"User Auth","href":"/user-auth/auth-overview"}]}]},"basePath":"","title":"Grant Discord Role - Snag Docs","deploymentId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","buildId":"dpl_6UE2cqB47X6P7P3F2hD3UphW6ijc","dynamics":[],"chunks":[]}