How To Get A Discord Bot Token (Step-by-Step Guide) (2024)

You’re here because you need to either create or generate a Discord Bot Token.

Well, I’m here to show you how!

I’m going to walk you through the steps required for generating a brand-new discord bot token.

We’ll explain how you can view your tokens if you already have bots present in your account, and then we’ll talk about token security and how it’s extremely important that you never reveal your token.

What is a Discord Bot Token?

A Discord Bot Token is a short phrase (represented as a jumble of letters and numbers) that acts as a “key” to controlling a Discord Bot. Tokens are used inside bot code to send commands back and forth to the API, which in turn controls bot actions. Never share your Discord Bot Token with anyone.

Creating and/or Viewing a Discord Token isn’t hard — but if you’ve never done it before, it can take a little while to figure out where to go.

Here are the exact steps you’ll need to take.

Generating Your Token Step-by-Step

1. Go to the Discord Developer Portal

Your first step is to browse over to the Discord Developer Portal: https://discordapp.com/developers/applications/

This portal shows all of your applications and bots.

If you already have a bot created, click it in the list. If you don’t have any discord bots, click the “New Application” button.

How To Get A Discord Bot Token (Step-by-Step Guide) (1)

2. Give Your Bot a Name

Here you’ll be prompted to give your application (bot) a name.

You’re likely making a Discord Bot here, or you need your token for a Discord Bot. If this is true, then think about what you want your bot to be named and enter it here.

How To Get A Discord Bot Token (Step-by-Step Guide) (2)

3. Bring Your Bot to Life With an Icon and Description

Awesome! You’ve created your very first Discord Application! The only thing left is to bring your bot to life by giving it a description and an icon…

How To Get A Discord Bot Token (Step-by-Step Guide) (3)

The best size for your bot’s icon is 1024×1024 pixels, but you can go lower and achieve quality results. I personally go with 512×512 most of the time (based on the icons I choose).

IconFinder has a huge collection of amazing icons.

They have a library of free icons: https://www.iconfinder.com/free_icons

And if you really like their icons and want to go premium, here’s a link for 50% Off: https://www.writebots.com/iconfinder

My bot is named “The Token Master”, so I want to find an icon somehow related to a token…

The first thing I did was go to IconFinder and type “token”:

We got a bunch of results. I personally like the “FLAT” icon style and think it looks really good, so I filtered by Flat:

How To Get A Discord Bot Token (Step-by-Step Guide) (5)

Alright, here’s a good icon — I’m going to go with this and hit “Download PNG”.

How To Get A Discord Bot Token (Step-by-Step Guide) (6)

Next I uploaded that icon into Discord and hit the green “Save Changes” button.

“The Token Master” is looking much better already!

How To Get A Discord Bot Token (Step-by-Step Guide) (7)

4. Retrieve Your Token

Your next step is to go over the menu on the left side of the screen and click “Bot”. It’s the icon that looks like a little puzzle piece.

How To Get A Discord Bot Token (Step-by-Step Guide) (8)

Now you want to click the blue “Add Bot” button

How To Get A Discord Bot Token (Step-by-Step Guide) (9)

Click the “Yes, do it!” button…

You’ll see a green message, “A wild bot has appeared!”

You’ll also see a “Token” and a blue link you can click called “Click to Reveal Token”

As soon as you click this link, your token will be revealed…

How To Get A Discord Bot Token (Step-by-Step Guide) (11)

And that’s it! You have your token!

A natural next step, however, is to add your bot into your Discord Server.

5. Add Your Bot to a Discord Server

In order to add your bot to your Discord Server, you’ll need to navigate back to the “OAuth2” tab.

How To Get A Discord Bot Token (Step-by-Step Guide) (12)

Once there, scroll down to the “Oauth2 URL Generator” section. In the “Scopes” section, you’ll want to select the “bot” checkbox.

How To Get A Discord Bot Token (Step-by-Step Guide) (13)

You’ll notice that a URL appeared as soon as you clicked “bot” — this will be your URL for adding your bot to a server.

But we’re not quite there yet!

Scroll down some more to the “Bot Permissions” section. This is where you choose what permissions to give your bot, and what it can and can’t do.

How To Get A Discord Bot Token (Step-by-Step Guide) (14)

Based on what type of bot you’re planning on building, you’ll want to select permissions that most closely match what it’ll be doing day-to-day.

Important: Do not select all of the permissions “just to make things easy”. Your permissions are the second line of defense in case somebody gets their hands on your bot token. Only give your bot the permissions it really needs, that way you lower the risk of compromising your server.

After you’ve selected your permissions, scroll up a little bit and look at the URL that was generated.

How To Get A Discord Bot Token (Step-by-Step Guide) (15)

Click the blue “Copy” button on the right side. This is the URL you’ll navigate to in order to add your bot to a server.

Go to that URL and you’ll see a page that looks sort of like this (see below). Here you’ll want to select the server you’re adding your bot to, double-check the permissions you’re giving your bot, and then continue to the next step.

How To Get A Discord Bot Token (Step-by-Step Guide) (16)

You’ll likely get an “I’m not a robot” captcha message on the next screen. Solve the captcha and continue.

How To Get A Discord Bot Token (Step-by-Step Guide) (17)

Success! Your bot has been authorized, and you should see it pop up in the list of participants on your server!

How To Get A Discord Bot Token (Step-by-Step Guide) (18)

That wasn’t so hard, was it? You’ve successfully created a Discord Bot Token and added your own bot to a server!

… all that’s left is programming your bot and bringing it to life.

Remember: Protect Your Token at ALL COSTS!

Your TOKEN is the Key to the Kingdom when it comes to your bot…

If someone steals your token, they can make your bot do whatever they want — essentially “hacking” your bot.

You don’t want that.

Take extra care NOT to share your token. And if you do have bot code that you put together that uses your token, make sure that when sharing the code (or uploading it publicly, such as to GitHub for example), you leave your token out!

And that’s all there is to it!

As a final note, if you want to be able to create awesome graphics and have incredible icons for your Discord Bots, I’d recommend checking out IconFinder Premium for 50% Off.

All you have to do to sign up to IconFinder Premium is click here: https://www.writebots.com/iconfinder

How To Get A Discord Bot Token (Step-by-Step Guide) (2024)

FAQs

How To Get A Discord Bot Token (Step-by-Step Guide)? ›

Fetching your bot's token

Once you've already created a bot, you can access the bot's page on the developer portal, and under the "Bot" tab again, use the "Click to Reveal Token" button under your bot username – alternatively, simply click "Copy" and the token will be copied to your clipboard directly.

How do I get my Discord bot token? ›

Fetching your bot's token

Once you've already created a bot, you can access the bot's page on the developer portal, and under the "Bot" tab again, use the "Click to Reveal Token" button under your bot username – alternatively, simply click "Copy" and the token will be copied to your clipboard directly.

How do I get a Discord authentication token? ›

Navigate to the 'Network' tab. Refresh the page and look for a file named something like science or library under the Name/Path column. Click on it, go to the 'Headers' tab, and scroll down to find the 'authorization' header to see your token.

How do you get a token command in Discord? ›

Open the developer console with F12 or ctrl+shift+i . Under the request headers -> authorization section, there will be your Discord token.

What happens if someone gets your Discord bot token? ›

Exposing a token can lead to unauthorized access of an account or bot, which can lead to a compromised server and worse.

How to reset bot token? ›

HOW TO REGENERATE YOUR BOT'S TOKEN
  1. Open your App on the Developer Portal.
  2. Go to the Bot settings from the side menu.
  3. Press the Reset Token button located under the Build-a-Bot section.
  4. A pop-up window will show up asking you to confirm.
  5. Enter your Two-Factor Authentication code, if requested.
Jun 10, 2022

How do I get token authentication? ›

Token Authentication in 4 Easy Steps
  1. Request: The person asks for access to a server or protected resource. ...
  2. Verification: The server determines that the person should have access. ...
  3. Tokens: The server communicates with the authentication device, like a ring, key, phone, or similar device.

What is a Discord token grabber? ›

Enter the Discord Token Grabber. This is a type of credential stealing malware that is able to sneak through 2FA, allowing attackers to wreak havoc on a victim's account. Information stolen ranges from tokens, passwords, system information, IP address, key-logging, etc.

What is the TryHackMe Discord token for? ›

User Tokens | Try Hack Me Help Center. Tokens are exclusively for educational institutions. With TryHackMe's management dashboard, you can choose to purchase subscriptions in the form of 'user tokens. User tokens are a convenient way to redeem subscriptions on your dashboard when needed.

How long is a Discord bot token? ›

But every token I see online is 59 characters long. Even the token grabbers only get the first 59 characters of my token.

How to get token from inspect element? ›

Steps to reproduce the behaviour:
  1. In browser open vault.
  2. Open Inspect elements menu and go to the Network tab.
  3. Now log in using any authentication method. ( at the end vault uses a token to authenticate a user ).
  4. Now in the resultant-acl packet you can see the token.
Mar 13, 2022

What does a Discord token do? ›

Discord tokens are unique identifiers assigned to users or bots on Discord, a popular communication platform. These tokens act as a means of authentication, allowing users or bots to interact with Discord's servers. Each token is a string of characters, uniquely identifying an account or bot.

How to find Discord bot token? ›

To do so visit the following link: https://discord.com/developers/applications. Once there, click on the bot you are working with. Next, select the "Bot" tab from the left hand side: Finally, click the "Copy" button next to the bot's avatar to copy the token to your clipboard.

How do I get a Discord token? ›

Go to the Application tab, click the down arrow next to Local storage in the Storage section, find and click on the Discord URL. In the Filter field, type token, and click Toggle device toolbar. Your Discord token will appear; copy and paste it using (CTRL+C, CTRL+V) or note it down.

What is a bot token? ›

Bot tokens represent a bot associated with an app installed in a workspace. Unlike user tokens, they're not tied to a user's identity—they're only tied to your app. Since acting independently allows your app to stay installed even when an installing user is deactivated, using bot tokens is usually for the best.

How to get Discord bot API key? ›

You can obtain your Discord bot API key through the Discord Developer Portal by creating a new bot and assigning it the necessary permissions.

Top Articles
Is The Secret To Happiness Passive Income?
Find Medicare Plans and Health Insurance Coverage
Washu Parking
The Daily News Leader from Staunton, Virginia
Words From Cactusi
Mail Healthcare Uiowa
Craigslist - Pets for Sale or Adoption in Zeeland, MI
Midway Antique Mall Consignor Access
Locate Td Bank Near Me
Lost Pizza Nutrition
Helloid Worthington Login
Bros Movie Wiki
Aces Fmc Charting
Wildflower1967
Leader Times Obituaries Liberal Ks
Napa Autocare Locator
Florida History: Jacksonville's role in the silent film industry
1773X To
Apply for a credit card
Little Caesars 92Nd And Pecos
Tyrone Unblocked Games Bitlife
Iu Spring Break 2024
Why do rebates take so long to process?
Used Safari Condo Alto R1723 For Sale
All Obituaries | Gateway-Forest Lawn Funeral Home | Lake City FL funeral home and cremation Lake City FL funeral home and cremation
Costco Gas Hours St Cloud Mn
Arrest Gif
Cognitive Science Cornell
Soul Eater Resonance Wavelength Tier List
Kirk Franklin Mother Debra Jones Age
Jackie Knust Wendel
Skidware Project Mugetsu
Section 408 Allegiant Stadium
This Is How We Roll (Remix) - Florida Georgia Line, Jason Derulo, Luke Bryan - NhacCuaTui
Primerica Shareholder Account
Missing 2023 Showtimes Near Mjr Southgate
Kids and Adult Dinosaur Costume
Moonrise Time Tonight Near Me
Half Inning In Which The Home Team Bats Crossword
Craigslist Albany Ny Garage Sales
Rocketpult Infinite Fuel
10 Most Ridiculously Expensive Haircuts Of All Time in 2024 - Financesonline.com
Tds Wifi Outage
Ishow Speed Dick Leak
Devotion Showtimes Near The Grand 16 - Pier Park
The Closest Walmart From My Location
Gold Dipping Vat Terraria
Divinity: Original Sin II - How to Use the Conjurer Class
Child care centers take steps to avoid COVID-19 shutdowns; some require masks for kids
Syrie Funeral Home Obituary
The Latest Books, Reports, Videos, and Audiobooks - O'Reilly Media
Coors Field Seats In The Shade
Latest Posts
Article information

Author: Errol Quitzon

Last Updated:

Views: 5933

Rating: 4.9 / 5 (59 voted)

Reviews: 82% of readers found this page helpful

Author information

Name: Errol Quitzon

Birthday: 1993-04-02

Address: 70604 Haley Lane, Port Weldonside, TN 99233-0942

Phone: +9665282866296

Job: Product Retail Agent

Hobby: Computer programming, Horseback riding, Hooping, Dance, Ice skating, Backpacking, Rafting

Introduction: My name is Errol Quitzon, I am a fair, cute, fancy, clean, attractive, sparkling, kind person who loves writing and wants to share my knowledge and understanding with you.