To make a Discord invite link, hover over a channel in your server, click "Create Invite", and copy the link. A new link lasts 7 days by default. To change how long it lasts or how many people can use it, click "Edit invite link" and then "Generate a New Link". Links that never expire only work in Community servers, and a custom discord.gg link needs Server Boost Level 3.
The sections below cover desktop and mobile, what each setting does, how to turn off old links, and how to see which link brought each member in.
Before you start: you need the right permission
You only see the Create Invite button if one of your roles has the Create Invite permission. If it's missing, ask an admin to give that permission to your role, or to allow it on the channel you want to invite people to.
Every invite points to one channel. Pick one that new members can actually see, like #welcome or #rules. Don't use a staff-only channel.
How to create an invite link on desktop or in a browser
- Open your server in the Discord desktop app or at discord.com/app.
- In the channel list, hover over the channel you want the invite to point to.
- Click Create Invite on the right side of that channel.
- A panel opens with a link. Copy it and send it wherever you like.
That link uses the default settings, so it lasts 7 days. If you want different settings, don't copy it yet. Do the next section first.
How to set expiry and max uses
- In the Create Invite panel, click Edit invite link.
- Choose how long the link should last.
- Set Max number of uses. "No limit" is one of the options. A low number like 1 or 5 works well for a private invite.
- Turn on Grant temporary membership if you only want people to stay while they're connected. Anyone who joins this way is removed when they disconnect, unless someone gives them a role first.
- Click Generate a New Link, then copy it.
Two things most guides leave out:
- Changing the settings doesn't change a link you already shared. A link's settings are fixed when it's made. If you posted a 7-day link and now want a permanent one, make a new link and share that instead.
- Settings are saved per channel. Discord remembers the settings you picked for each channel, so the next invite you make from that channel starts with them. Other channels keep their own settings.
How to make a Discord invite link that never expires
Discord only offers a never-expiring link if your server is a Community server. In a regular friend server, Discord's help center says invites last from 30 minutes to 30 days. This is why so many people go looking for a "Never" option and can't find it.
To get a link that never expires:
- Turn your server into a Community server in Server Settings.
- Go back to the channel, click Create Invite, then Edit invite link.
- Pick the option for a link that never expires, set Max number of uses to No limit, and click Generate a New Link.
If you don't want to switch to Community, the longest you can get is a 30-day link, and you'll need to replace it each month.
How to create an invite link on mobile
Discord's Invites 101 article says just this about mobile: tap Create Invite, then send the link to one of your recent DMs or copy it.
The article doesn't say where the button is in the app, and it doesn't say which of the desktop settings you can change on mobile. If you need a set expiry, a use limit, or a link that never expires, the simplest way is to make the link on desktop or at discord.com/app in your phone's browser using the steps above. Then copy it and share it from your phone. A link works the same no matter which device made it.
How to make a custom invite link (vanity URL)
When people search "how to make a custom Discord invite link", they usually mean a link like discord.gg/yourname. Discord calls this a Custom Invite Link, and it's a Server Boost perk:
- Your server needs Server Boost Level 3.
- Go to Server Settings > Boost Perks > Custom Invite Link.
- Type your link. It can be up to 25 characters, using only lowercase letters, numbers and dashes.
- Click Save Changes.
Know this before you set one up: a custom link makes your server public, and at least one text channel has to be visible to @everyone. If your boost level drops, you lose the link 30 days later. Details are in Discord's custom invite link article.
Without Level 3 boosts you can't get a discord.gg vanity link. The closest you can get is a normal invite that never expires, in a Community server.
How to turn off or delete old invite links
- Open Server Settings > Invites to see your server's invites.
- Click the x next to an invite to delete it. A deleted invite code can't be made again, so don't delete one you've printed or posted somewhere you can't edit.
- To stop all joins for a while, such as during a raid, click Pause Invites. Every link stops working for joins, including your custom invite link. See Discord's article on pausing invites.
How to see which invite link brought each member in
Discord shows this itself:
- In a Community server, open Members in the channel list.
- In other servers, go to Server Settings > Members.
- Filter by Join Method to see how each person joined. You need the Manage Server permission to see the invite codes, and this view only works in the browser and the desktop app.
Discord's guide is here. What Discord doesn't do is record in the audit log which invite someone used. Invite tracking bots fill that gap, along with things like per-member invite counts and rewards. They usually work out which invite was used by watching each invite's use count change when someone joins.
How PeakBot tracks invites
We make PeakBot. Its Invite Tracker records who invited whom and can hand out invite rewards. You set it up on the web dashboard, not with a command:
- Add PeakBot to your server and log in at peakbot.pro. The getting started guide walks you through it.
- Open Invite Tracker in the dashboard sidebar and turn it on.
- Choose your invite rewards.
- To greet new members with who invited them, open Welcome Messages, which can show the inviter.
Invite tracking, rewards, and welcome messages that show the inviter are all on the free plan. The self-updating leaderboard image and the custom join and leave embeds need a paid plan. Starter is $5.75/month or $48/year per server. If raids worry you, PeakBot's Security page has join-rate and account-age limits that work alongside Pause Invites.
PeakBot doesn't create invite links for you. You still make them in Discord as shown above. Everything the free plan covers is on the features page.
Frequently Asked Questions
Why does my Discord invite link say invalid or expired?
Usually the link ran past its expiry or used up its max number of uses, or someone deleted it in Server Settings > Invites. Links also stop working for joins while invites are paused. Make a new link with the settings you want.
Why is there no "Never" option for my invite?
Your server isn't a Community server. Only Community servers can have links that never expire. In friend servers the longest a link can last is 30 days. Turn on Community and make a new link.
What is the default expiry for a Discord invite?
7 days. Older guides say 24 hours or one day, but that's out of date.
Can I make a custom discord.gg link without boosts?
No. The Custom Invite Link perk needs Server Boost Level 3. Without it, the closest you can get is a normal invite that never expires, in a Community server.
I changed the invite settings. Why does my old link still expire?
New settings only apply to links you make after the change. Click Generate a New Link and share that link instead of the old one.
Can I see who invited someone on my phone?
No. Discord's Members page, with join method and invite codes, only works in the browser and the desktop app. Use one of those, or a bot that posts the inviter in your welcome message.
