BotGhost Documentation
Support ServerYouTubeMarketplaceBotGhost PremiumSign in
  • Welcome to BotGhost
  • Guidelines & Privacy
  • Changelogs 2025
    • Changelogs 2024
    • Changelogs 2023
  • BotPanel Documentation
  • Getting Started
    • Create Your First Bot
      • Create Your Second Bot
    • Invite Your Bot
    • Standard Practices
      • Advanced Practices
    • Mobile Application (PWA)
  • Support
    • BotGhost Support
    • Frequently Asked Questions
  • Premium & Priority Hosting
    • Priority Hosting
    • Our Premium Features
    • Plans & Payment Methods
    • Manage Your Subscription
    • Upgrade Your Bot
    • Refund & Cancellation Policy
    • Beta Features
  • General Settings and Collaboration
    • Settings
    • Collab
    • Status
    • Active Developer Badge
    • Marketplace
  • Custom Commands & Events
    • Command & Event Builder
      • Sharing Commands and Events
      • Advanced Options
    • Actions
      • Message Actions
        • Send or Edit a Message
          • Button
          • Select Menu
        • Edit a Button or Select Menu
        • Send a Form
        • Delete a Message
        • Publish a Message
        • React to a Message
        • Pin a Message
      • Custom Variable Actions
        • Set Variable
        • Run Equation on Variable
        • Delete Variable
      • API Actions
        • Send an API Request
        • Execute an IFTTT Trigger
      • Loop Actions
        • Run a Loop
        • Stop a Loop
      • Voice Actions
        • Join a Voice Channel
        • Leave a Voice Channel
        • Voice Move a Member
        • Voice Kick a Member
        • Voice Mute or Unmute a Member
        • Voice Deafen or Undeafen a Member
      • Role Actions
        • Add Roles
        • Remove Roles
        • Create a role
        • Delete a role
        • Edit Role
      • Channel Actions
        • Create a channel
        • Edit a channel
        • Delete a channel
      • Thread and Forum Actions
        • Create a Thread
        • Edit a Thread
        • Delete a Thread
      • Server Actions
        • Kick a member
        • Ban a member
        • Timeout a member
        • Change a members nickname
        • Purge Messages
        • Create Server Invite
      • Other Actions
        • Wait before running another action
        • Manipulate some text
        • Send an error log message
        • Set a unique variable
        • Change the Bot's Status
        • Note
      • [LEGACY] Reply Actions
        • Plain Text Reply
        • Embed Reply
        • Random Reply
        • Send a message to a channel
        • Direct Message a User
        • Send a Message with attached buttons
          • Buttons
        • Send a message with a select menu
          • Menu Option
    • Conditions
      • Comparison Condition
      • Permission Condition
      • Chance Condition
      • Channel Condition
      • Role Condition
      • User Condition
      • Premium Check Condition
    • Options
      • Text Option
      • Number Option
      • User Option
      • Channel Option
      • Role Option
      • Choice Option
      • Attachment Option
    • Events
      • Timed Events
      • Webhooks
    • Data Storage
      • Collections
      • Objects
    • IFTTT
    • Variables
  • Server Management
    • Moderation
    • Discord Automod
    • Tickets
    • Welcomer
    • Verification
    • Statistic Channels
    • Modmail
    • Auto-React
    • Sticky Roles
    • Emoji Manager
    • Polls Filter
    • Automod
    • Logging
  • Messages
    • Timed Messages
    • Reaction Roles
    • Autoresponder
    • Embed Builder
    • Sticky Messages
    • Polls
    • Global Chat
    • Media Channels
  • AI
    • ChatGPT
    • Image Generation
  • Game Integrations
    • Roblox Verification
  • Social Integrations
    • YouTube
    • Twitch
  • Community Engagement
    • Leveling
    • Temp Voice Channels
    • Suggestions
    • Invite Tracker
    • Starboard
    • Question Of The Day
    • Giveaways
  • Fun Modules
    • Economy & Minigames
    • Birthdays
    • Counting
  • Utility
    • Translation
    • Weather
Powered by GitBook
On this page
  • How can I get a channel ID?
  • How can I get the ID of my bot or a user?
  • How can I get a custom emoji's ID?
  • Reading Discord API Documentation and Using it

Was this helpful?

  1. Getting Started
  2. Standard Practices

Advanced Practices

Do you need certain IDs to use in the command builder?

Last updated 2 months ago

Was this helpful?

How can I get a channel ID?

1

Firstly, head over to your settings page in the discord app/site. Here you will want to locate the developer mod setting which can be found via User Settings > Advanced.

2

Next, head into your server and find the channel in which ID you would like to retrieve. From here simply right click on the channel (PC) to open the action menu. For mobile press and hold on the channel (Mobile).

PC/Desktop

Mobile Users

3

Simply press 'Copy Channel ID' and you will now have the channels ID saved to your clipboard, you can paste this ID anywhere!

How can I get the ID of my bot or a user?

1

Firstly, head over to your settings page in the discord app/site. Here you will want to locate the developer mod setting which can be found via User Settings > Advanced.

2

Next, find the user/bot who's ID you wish to get and right click on their username (pc) or press on their username and hit the 3 dots in the users profile (mobile).

PC/Desktop Users

Mobile Users

3

Finally, click 'Copy User ID'. Now you can paste the users/bots ID anywhere you need!

How can I get a custom emoji's ID?

1

Firstly, add the custom emoji you want to use into your message bar

2

Move your cursor behind the selected emoji

3

Add a backslash \ behind the emoji

4

Send the message

5

Copy the numbers from the returned format

How to copy an emoji ID

Reading Discord API Documentation and Using it

Once you click on the create message endpoint you can start to implement it into the request block using the steps below.

1

The first thing you need to setup is the request type and the request URL. The request type you will have to use can be found right before the URL, POST in this case.

2
3
4

What might be an essential component for your builds is Discord API. Using this API will allow you to have alternatives in case you are working on more complex functionalities and / or something isn't accessible via the default action blocks or . You can send API Requests using the Send an API Request action.

The example above shows an endpoint from the API that creates messages and is found in the . Scroll down under the left side to see the list of endpoints / categories. Reading the API is fairly simple, if you would like to create a message using the API then head to the "Message" section of the image above.

Next you input the . If your using Discord API, the beginning of the URL always starts with https://discord.com/api/v10. The rest of the URL is the endpoint which is shown in the image above. So in this case the full URL will become: https://discord.com/api/v10/channels/{channel.id}/messages. You will have to replace {channel.id} with an actual channel ID or a variable. In general, the starting URL of an API endpoint can be found in the reference page of the documentation you are reading. The reference page of the Discord API Documentation can be found .

In order to send any API request, Discord needs to know you are authorized to do that (example, the request is being sent by your bot). Go in the section and set the key field to Authorization and the value field to Bot {TOKEN_SECRET}. This simple process authorizes your bot to perform actions and retrieve data from the Discord API. {TOKEN_SECRET} is a variable that contains the token of your bot. For your safety, it can only be used when authorizing a Discord API Request.

Now, you will need to add data to your request. The list of data you can send to a specific endpoint can be found right below the endpoint URL and is usually under a "JSON/Form Params" Section. This means that all data you provide wil have to be specified in the section of your API Request. Instead, if the title says "Query String Params" (see example below), you will have to add them in the section. To add a field to your API Request, fill in the key value with the field name (example content, see example). Add a value on the value field, and ensure it is an accepted value (see the value type column (for example, a string can be basically anything, an integer must be a number, a boolean can be either true or false. and are more complex data types)).

variables
Discord API Documentation
here
Arrays
objects
request URL
HTTP Headers
Request Body
URL Params