Search code examples
javascriptnode.jsdiscorddiscord.js

discord.js - How do I add the "TRY MY COMMANDS" feature to my bot?


I looked at some bot's profile and apparently, Discord added a "try out my commands" feature to bots. I tried looking everywhere and did not find anything. How do I add this feature to my bot?

(I am using discord.js v14)

Image of the try out my commands feature.

1


Solution

  • You can manually add this feature to your bot's description box using the command ID.

    How to retrieve the command ID:

    1. Go to Server Settings.
    2. Click on "Integrations".
    3. Look for your bot and click on it.
    4. Scroll up until you see the list of the commands that are deployed.
    5. Right-click to copy the command ID of your choice to be displayed later.

    Next, we go to Discord Developer Portal to place the command ID into your bot's description box.

    So all you need to do is to put the command that are to be displayed in this format:

    </(command-name):(command-ID)>
    

    It'll look something like this:

    **TRY MY COMMANDS** // ** to bold the text
    
    </play:938016496168932622> | </help:938012345242127927>
    

    And here's how it will look:

    Screenshot showing "TRY MY COMMANDS" example. Example commands show as /play | /help

    It may not look as good as the verified version but hey, it works. You can press on it and use it like a normal slash command.