If you've been following the guide's previous pages, you should have a bot application set up. However, it's not in any servers yet. So how does that work?
Before you're able to see your bot in your own (or other) servers, you'll need to add it by creating and using a unique invite link using your bot application's client ID.
# Bot invite links
- Locate 2FA setting Log in to your Discord account, and click on the small “gear” icon near your username on the bottom left. On the next page click on the blue button that reads “Enable Two-Factor Auth” A pop-up window will appear for you to scan the QR Code with your Authy app. Keep this window open as you reach for your phone.
- Apr 11, 2021 #Creating and using your invite link. As mentioned above, you'll need to replace the clientid parameter with your client's ID to generate your invite link. To find your app's ID, head back to the My Apps (opens new window) page under the 'Applications' section once again and click on your bot application.
- Jun 30, 2020 To be able to control your bot in code, you’ll need a Discord developer token, which you can grab straight from that bot page by clicking “Copy.” Drop that code in your `.env` file: PERSPECTIVEAPIKEY = 'YOURAPIKEY' DISCORDTOKEN = 'YOURDISCORDTOKEN' # your Discord token here KICKTHRESHOLD = 4.
- How to people choose the version of their discord bot; discord bot token login; token discord; discord oauth2 code grant; ho to make Discord website 0auth2; discord website Outh2; redirecturi oath2 discord; discord oauth bot api; discord oauth bot; discord oauth api call; discord.login documentation; discord bot public key; what do i do with.
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. Once there, scroll down to the “Oauth2 URL Generator” section. In the “Scopes” section, you’ll want to select the “bot” checkbox.
The basic version of one such link looks like this:
The structure of the url is quite simple:
- The first part is just Discord's standard structure for authorizing an OAuth2 application (such as your bot application) for entry to a Discord server.
- The second part that says
client_id=...
is to specify which application you want to authorize. You'll need to replace this part with your client's ID to create a valid invite link. - Lastly, the third part, which says
scope=bot
, specifies that you want to add this application as a Discord bot.
TIP

A permissions
parameter also exists to restrict or guarantee the permission your bot will have on the server you are adding it to. For ease of use, it is recommended to use this(opens new window) website.
WARNING
If you get an error message saying 'Bot requires a code grant', then head over into your application's settings and disable the 'Require OAuth2 Code Grant' option. You usually shouldn't enable this checkbox unless you know why you need to.
# Creating and using your invite link
As mentioned above, you'll need to replace the client_id
parameter with your client's ID to generate your invite link. To find your app's ID, head back to the My Apps(opens new window) page under the 'Applications' section once again and click on your bot application.

Insert your app's ID into the link template, and then access it in your browser. You should see something like this (with your bot's username and avatar):

Choose the server you want to add it to and click 'Authorize'. Do note that you'll need the 'Manage Server' permission on a server to add your bot there. This should then present you a nice confirmation message:

Congratulations! You've successfully added your bot to your Discord server. It should show up in your server's member list somewhat like this:
Install Authy
The best way to manage all your 2FA accounts is to use the Authy app. It enables you to have a single mobile app for all your 2FA accounts and you can sync them across multiple devices, even accessing them on the desktop. Install Authy on your device by searching for it in your device’s app store.
Important: If any sites prompt you to use Google Authenticator for two-factor authentication, note that you can always substitute the Authy 2FA app instead. Although they work in similar ways, Authy is more feature-rich and allows for multi-device syncing, cloud-backups, and easier account recovery should you change or lose your phone or device. Read more information on the features of Authy here.
Locate 2FA setting
Log in to your Discord account, and click on the small “gear” icon near your username on the bottom left.
On the next page click on the blue button that reads “Enable Two-Factor Auth”
A pop-up window will appear for you to scan the QR Code with your Authy app. Keep this window open as you reach for your phone. Note that anywhere (not just Discord) that prompts Google Authenticator also supports Authy.
Capture QR Code
Take out your mobile device and open the Authy App. At the bottom of the screen, tap the plus sign to create a new account.
When you are ready click “Scan QR Code” and hold your device up to the computer screen.
The Authy App will automatically choose the Discord logo. Confirm it’s correct by clicking “Done”
Record the numerical token provided for Discord. Note that this token refreshes every 20 seconds.
Complete Enablement
Returning to the Discord website, enter the numerical token in the appropriate field. When done click “Activate.”
You will now be shown your Discord back-up codes. These codes are one-time use each. If you run out of these codes, you can click the Generate Codes button again to re-roll a new set, but doing so will render the previous list obsolete, so be 100% sure to keep the latest set somewhere safe.
Discord Bot Oauth Key Generator No Human
You’re all set! You’ve enabled 2FA for your Discord account.
Discord Bot Oauth Key Generator Free
To learn more, visit: https://support.discordapp.com/hc/en-us/articles/219576828-Setting-up-Two-Factor-Authentication