> For the complete documentation index, see [llms.txt](https://p00ls.gitbook.io/token-integrations-guide/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://p00ls.gitbook.io/token-integrations-guide/communication/gating-tools-and-bots/collabland/collabland-discord.md).

# Collabland Discord

**Time to complete** : 10-20 minutes (*est*)

To set up Collab.Land to gate your Discord server, you need to follow these steps:

1. **Create Server**: Create your Discord server
2. **Set up roles**: Create roles in Discord for your token community

   <div align="left"><img src="/files/yPPDTwq0mI49MFSW1t9j" alt="" width="450"></div>
3. **Invite the bot to your community**: Once you have installed the bot and set up the rules, you can invite the bot to your community.

   <div align="left"><img src="/files/0EtDjnzDj8rboB7bn6zk" alt="" width="450"></div>
4. **Accept the bot's permission request**: The bot will request certain permissions in order to function properly. You can find more information on the required permissions [**here**](https://collabland.freshdesk.com/support/solutions/articles/70000626283-required-permissions-for-collab-land-bot-in-discord).
5. 2 New channels will be created; #collab-join and “collab-config”. #collab-join will be for people to connect their wallets for verification. #collab-config, we wont worry about because we will use the Command Center.
6. Log into the Command Center and add to server and authorize <https://cc.collab.land/login>

   <div align="left"><img src="/files/bOtr0FIwitBJsXwuzpDP" alt="" width="450"></div>
7. **Set up the gates and requirements**: You can set up the rules for your community by visiting the Collab.Land Command Center. Here, you can create Token Granted Roles (TGRs) which are the requirements for roles. You can find more information on how to create TGRs [**here**](https://collabland.freshdesk.com/support/solutions/articles/70000626250-create-token-granted-role-tgr-in-collab-land-command-center).

   * Create a balance-based TGR

     * Click select role to select a Discord role and start
     * Set the minimum amount of tokens (required)
     * Enter your tokens Smart Contract address (ERC20)
     * Set the maximum amount of tokens (not required).
     * Click “Save”

     <div align="left"><img src="/files/Sd2CgqkeFs42Z52UYkGo" alt="Screen Shot 2023-10-02 at 8.04.27 PM.png" width="375"></div>

   Your balance-based TGR is ready! A complete balance-based TGR should look like this:
8. **Manage the bot**: You can manage the bot and learn more about its functionality by visiting the bot walkthrough [**here**](https://collabland.freshdesk.com/support/solutions/folders/70000030662).

Please note that you need to ensure Collab.Land has the proper permission in your Discord server settings. If you or your members are receiving a permission error, you can resolve this by following the instructions [**here**](https://help.collab.land/errors/Permissions).
