how to setup a "front gate" channel in discord
2021-10-23

If you're building a Discord community, security and safety are the top priorities. By creating a "front gate" channel, you require users to react to a message to gain entry into the rest of your server.

In this tutorial, you'll learn about Discord roles and we'll also play with the MEE6 bot. Here's what we're building:

front gate

Here's a good post about creating a Discord server if you're new to this app.

Roles & Permissions

In Discord, think of roles as groups of users with certain permissions. And think of permissions as things that you are allowed to do in the server, like create channels or ban members. A full list of permissions can be found in the Discord developer docs. Here's a good FAQ about permissions.

The first step is to create a "general" role that all users will get when they react to your front gate message. Go to your Server Settings > Roles > Create Role. Give your role a name (I used "Member" but you can make it anything you want).

roles 1

Use the default permissions for this role.

roles 2

Create a #front-gate channel

Create a new channel called #front-gate, or name it whatever you want.

front gate 2

MEE6 Bot

Next, sign up for MEE6, which is an amazing Discord bot. Select your server, and enable the Reaction Roles plugin.

reaction roles

Craft the message that your users will have to react to:

mee6

Then choose an emoji and a role:

mee6 2

Save it and you should see the message pop up in your new channel:

front gate 3

Lock the other channels

So, the last step is to lock down all the channels that you want behind the gate.

Click the cog next to each channel name and navigate to the Permissions tab. Toggle on "Private Channel" and then add your new role in the "Who can access this channel?" section:

channel lock

If you already have users in your server, make sure to give them the Member role (or make them react to your emoji in #front-gate). To add the role to existing users, go to Server Settings > Roles then find your role. Click Manage Members, and them to the role:

existing members

Conclusion

Now your server has one more layer of security. It's not bulletproof though: it's not unlikely that a bot could find a way to react to this message and gain access to your server.

One nice feature of the default permissions is that this role does not have permission to message other members on your server:

no message members

This reduces a lot of spam and junk on your server.

I hope this tutorial helped you with your Discord server. Hit me up on Twitter with your comments and feedback!