How Do I Add an Avatar Bot to a Discord Server?


Heather Bennett

Welcome to this tutorial on how to add an Avatar Bot to your Discord server! Discord is a popular communication platform among gamers, and adding a bot can enhance your server’s functionality. In this article, we will walk you through the process step by step.

What is an Avatar Bot?

An Avatar Bot is a bot that allows you to customize your profile picture in Discord. With an Avatar Bot, you can choose from a wide variety of avatars or even use your own custom images.

Step 1: Adding the Avatar Bot to Your Server

To get started, you need to invite the Avatar Bot to your Discord server. Follow these steps:

  1. Go to the Discord Developer Portal: Open your web browser and navigate to the Discord Developer Portal.
  2. Create a New Application: Click on the “New Application” button and give it a name.
  3. Create a Bot: In the left sidebar, click on “Bot” and then click on “Add Bot”. Confirm when prompted.
  4. Copy Token: Scroll down to the “Token” section and click on “Copy” to copy your bot’s token.
  5. Add Bot to Server: Go back to your Discord server and open the invite link: (replace YOUR_CLIENT_ID with your bot’s client ID).

Step 2: Setting Up the Avatar Command

In this step, we will set up a command that allows users to change their avatars. Follow these instructions:

  1. Open a Text Editor: Open your preferred text editor or code editor.
  2. Create a New File: Create a new file and save it with a .js extension (e.g., avatar.js).
  3. Add the Required Code: Inside the file, add the following code snippet:
    const Discord = require('discord.js');
    const client = new Discord.Client();
    client.on('message', message => {
      if (message.content.startsWith('!avatar')) {
        const avatar = message.split(' ')[1];;`${message.username}, your avatar has been updated!`);

    Replace YOUR_BOT_TOKEN with the token you copied earlier.

  4. Save and Close: Save the file and close your text editor.

Step 3: Running the Avatar Bot

In this final step, we will run the Avatar Bot using Node.js. Follow these steps:

  1. Install Node.js: If you haven’t already, install Node.js on your computer by downloading it from the official website.
  2. Open Terminal or Command Prompt: Open your terminal or command prompt.
  3. Navigate to Bot Directory: Use the “cd” command to navigate to the directory where you saved your bot file (e., cd path/to/bot).
  4. Install Dependencies: Run the following command to install the required dependencies:
        npm install discord.js
  5. Run the Bot: Finally, run the bot using the following command:
        node avatar.js

Congratulations! You have successfully added an Avatar Bot to your Discord server. Now users can change their avatars by using the !avatar command.


In this tutorial, we covered how to add an Avatar Bot to a Discord server. We walked through the process of inviting the bot, setting up the avatar command, and running the bot using Node. By following these steps, you can customize your profile picture and enhance your Discord server’s appearance.

Remember to experiment with different avatars and have fun customizing your Discord experience!

Discord Server - Web Server - Private Server - DNS Server - Object-Oriented Programming - Scripting - Data Types - Data Structures

Privacy Policy