
You also need to copy the bot’s authentication token by clicking Click to Reveal Token and copying the token that appears. You can modify your bot’s name or profile picture here on the dashboard. You will then be on a dashboard containing details of your bot’s name, authentication token, and profile picture. Click the Yes, do it! button when it prompts you for confirmation. To add a bot to the application, navigate to the Bot tab on the navigation bar to the left.Ĭlick the Add Bot button to add a bot to the application. Note: The name for your application is independent from the name of the bot, and the bot doesn’t have to have the same name as the application. Then click Create to create the application. Discord will ask you to enter a name for your new application. Here developers can create Discord applications including Discord bots. In order to register a bot on the Discord platform, use the Discord application dashboard. In this step, you’ll use the Discord developers GUI to set up a Discord bot and get the bot’s token, which you will pass into your program.
#User token for discord mac how to#
To install this on macOS or Ubuntu 18.04, follow the steps in How to Install Node.js and Create a Local Development Environment on macOS or the Installing Using a PPA section of How To Install Node.js on Ubuntu 18.04.Īny text editor of your choice, such as Visual Studio Code, Atom, Sublime, or Nano.Ī free Discord account with a verified email account and a free Discord server you will use to test your Discord bot. Node.js installed on your development machine. Prerequisitesīefore you get started, you will need the following: You’ll set up a profile for a Discord bot, get authentication tokens for the bot, and program the bot with the ability to process commands, with arguments, from users.

In this tutorial, you will build a Discord bot from scratch, using Node.js and the Discord.js library, which allows users to directly interact with the Discord API. Learning how to create Discord bots allows you to implement many possibilities, which thousands of people could interact with every day. For example, the utility bot Dyno serves millions of guilds and contains useful features such as spam protection, a music player, and other utility functions. This allows developers to craft powerful bots that include advanced, complex features like moderation tools or even games. Bots can perform various actions such as sending messages to servers, DM-ing users, moderating servers, and playing audio in voice chats. Discord also provides an extensive API that developers can use to build powerful Discord bots.

Introductionĭiscord is a chat application that allows millions of users across the globe to message and voice chat online in communities called guilds or servers. The author selected the Free and Open Source Fund to receive a donation as part of the Write for DOnations program.
