# BotGhost Documentation
> BotGhost is a no-code Discord bot builder. People make their own Discord bot in a web dashboard: ready-made modules (welcome messages, leveling, tickets, moderation and more) and a drag and drop builder for custom commands and events, with no coding. These docs explain every feature.
Every documentation page in sidebar order, as Markdown. Release notes are in https://botghost.com/whats-new/llms.txt. Each page starts with a "#" title and its address.
# BotGhost Documentation
Source: https://botghost.com/docs/
We warmly welcome you to the BotGhost Documentation!
[View Topics](https://botghost.com/docs/#get-started-with-botghost)
Thank you for choosing BotGhost! We're excited to help you on your journey to creating your own custom BotGhost bot! Here you'll find everything you need to build and customize your bot.
To get started, **ask our AI** a question or check out the **main topics** below. You can also explore our **Table of Contents** on the left, and select the feature you're interested in.
If your question is not answered on one of the pages, do not hesitate to join our Discord server at [discord.gg/botghost](https://discord.gg/botghost) for further support!
Happy building!
## Get started with BotGhost
- [Creating a bot](https://botghost.com/docs/getting-started/create-your-first-bot): Learn how to create and add to a server your bot.
- [Premium](https://botghost.com/docs/premium/our-premium-features): Discover our premium features and perks.
- [Changelogs](https://botghost.com/changelog): See what's new.
- [Command Builder](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder): Check out our advanced command and event builder.
- [Actions](https://botghost.com/docs/custom-commands-and-events/actions): Learn what your BotGhost bot can do without a single line of code needed.
- [Variables](https://botghost.com/docs/custom-commands-and-events/variables): View a list of all variables you can use in the command builder.
---
# Guidelines & Privacy
Source: https://botghost.com/docs/guidelines-and-privacy
Make sure to follow our guidelines!
### BotGhost ToS (Terms of Service)
By using BotGhost, you agree to adhere to our Terms of Service. It is expected that you follow these Terms while using the platform. You can view our Terms of Service [**here**](https://botghost.com/tos)**.**
### BotGhost Privacy Policy
At BotGhost, we take your privacy seriously. To help you understand what information we collect and why, we have outlined everything in our Privacy Policy. You can view it [**here**](https://botghost.com/privacy-policy)!
### BotGhost Security
Security is a key priority for BotGhost. We use trusted third-party providers to help ensure the protection of your information. For more details, visit our Security page [**here**](https://botghost.com/security)**.**
### BotGhost Market Guidelines
To maintain the integrity of the BotGhost Market, we have set guidelines for its use. You can learn more about the rules and expectations for the market by visiting our Market Guidelines page [**here**](https://botghost.com/market/guidelines)**.**
### Discord Guidelines
When using BotGhost, it is important to follow Discord's Community Guidelines. You can review Discord's Guidelines [**here**](https://discord.com/guidelines)**.**
### Discord Terms of Service
All BotGhost users are expected to comply with Discord's Terms of Service. You can read more about Discord's Terms of Service [**here**](https://discord.com/terms)**.**
> **Note:** If you have any questions or concerns about these policies, please check out our [Help Center](https://help.botghost.com/support/home).
---
# Create Your First Bot
Source: https://botghost.com/docs/getting-started/create-your-first-bot
Are you new to BotGhost or did you forget how you can create a BotGhost bot? Take a look at the video or steps below to get all the information you need!
[YouTube video](https://www.youtube.com/watch?v=zXeg8JJyt0k)
You can watch the official YouTube video here.
> **Note:** [How to make a Discord bot without coding](https://botghost.com/guides/how-to-make-a-discord-bot) has the whole setup on one page, with screenshots: from the Developer Portal to a bot that welcomes members, runs tickets, and answers its first command.
> **Important:** It should be worth noting that this token is essentially your botβs password. You should **NEVER** share this to someone else. In doing so, someone can log in to your bot and do malicious things, such as leaving servers, ban all members inside a server, or pinging everyone maliciously.
>
> If you accidentally leaked your token, click the 'Regenerate' button as soon as possible. This revokes your old token and re-generates a new one. Now you need to use the new token to login.
### Step 1. Create an Application
**Step 1.** Firstly, go to **the** [Discord Developer Portal](https://discord.com/developers/applications). Click on the **New Application** button to create your application.
**Step 2.** Give your application a name and click **Create**. This will create the application and take you to a new app management screen.
**Step 3.** On the left sidebar, select the **Bot** tab. Click Add Bot on this screen. Confirm the message popup, and you're done! You're one step away from creating your first BotGhost bot!
.png)
**Step 4.** Once your bot has been created, you will notice a new page for your bot. Here, you can edit everything about your bot, including its name, profile picture, about me, and more. Under the username of the bot, you will see a "token" section. Click **Reset Token**, this will allow you to get the bots token. This is needed for future steps, so it is best to keep the code to the side for now. Ensure you do not lose it, nor give it to anyone else. If you do lose your token, or it gets leaked, ensure you click **Reset Token** immediately.
*Click*
*Your bot token will appear. Ensure you do not lose this.*
## Step 2: Enable all Intents
Intents are required by some BotGhost modules. Intents allow us to choose which events their bot receives based on the data it needs to function, so it is best to enable the intents ahead of time to avoid future errors. After you've created your bot, scroll down to the intents area of the page and enable all three intents: presence, server members, and message content.
## Step 3: Setting Up your BotGhost Bot
Great! You've successfully created your Discord bot, now it is time to turn it online and function. Most bots are required to be coded from scratch, although with BotGhost, you can do this without coding. By doing the following steps, you will be able to connect your bot with BotGhost, turn it online, and run commands.
**Step 1.** Firstly, go to [BotGhost.com](https://botghost.com) and click **Create a Bot** on the top right corner.
**Step 2.** Once selected, you will be prompted to log in to BotGhost using one of the available authentication methods (Google, Apple, Twitter/X, or email). Detailed, platform-specific instructions are available [here](https://help.botghost.com/support/solutions/folders/205000057003).
After choosing your preferred method and completing authentication, click **Authorize** to grant access and continue to the dashboard. The login method you select will be permanently associated with your BotGhost account for future sign-ins.
**Step 3.** Once logged into BotGhost using your Discord account, you will be guided through a 7-step setup process to configure your Discord bot. During Step 4, you will be required to confirm that all required Privileged Gateway Intents have been enabled in the Discord Developer Portal. In Step 7, you will be prompted to copy your bot token, which acts as a secure key allowing BotGhost to access and operate your bot. If you do not have your token, review [Step 1](https://botghost.com/docs/getting-started/create-your-first-bot#step-1.-create-an-application), part 4 again. Input the bots token in the **Bot Token** section.
**Step 4.** Congratulations! You've successfully created your first BotGhost bot! In the dashboard, you can configure your bot however you wish. Each module serves a purpose such as moderation, leveling, and logging. Take a look around and get a feel for it; it may take some getting used to, but once you do, creating and editing your very own bot will be easier than ever!
> **Important:** It should be worth noting that this token is essentially your botβs password. You should **NEVER** share this to someone else. In doing so, someone can log in to your bot and do malicious things, such as leaving servers, ban all members inside a server, or pinging everyone maliciously.
>
> If you accidentally leaked your token, click the 'Regenerate' button as soon as possible. This revokes your old token and re-generates a new one. Now you need to use the new token to login.
---
# Create Your Second Bot
Source: https://botghost.com/docs/getting-started/create-your-first-bot/creating-multiple-bots
Why just have one bot, when you can have more? With the bot switcher feature, this makes it easy to do!
### How to Create Multiple Bots
You can have multiple bots on one account with BotGhost.
**Step 1.** Click the **Bot Switcher** drop-down in the top right-hand corner of your dashboard or your bot's profile picture in the left-hand side menu to add another bot to your account.
**Step 2.** Click this page's **New Bot** button to start a new bot. Use the same steps as when creating your first bot to create this one.
**Step 3.** Click the Bot Switcher drop-down menu once more, then choose the new bot you want to use.
---
# Invite Your Bot
Source: https://botghost.com/docs/getting-started/invite-your-bot
Not able to figure out how you can invite your bot? Below you can find the instructions!
[YouTube video](https://www.youtube.com/watch?v=lVUS8ZgPvDs)
Tip: Watch this video tutorial or follow the steps below
### How to invite your bot?
We've made it easy to invite your custom bot to across all your servers. Simply follow the steps below:
**Step 1.** First you'll need to head on over to your [BotGhost Dashboard](https://dashboard.botghost.com/dashboard/modules).
**Step 2.** Once on the dashboard, on the left hand side of the dashboard menu, locate "Invite" and click on the piece of text:
.png)
**Step 3.** You'll then be redirected to the default discord authorization page. First, select a server in which you want the bot to be invited to:
.jpg)
*Note: You'll need to press "Continue" after selecting a server*
**Step 4.** After selecting a server and clicking the "continue" button, **you'll have to grant the bot "Administrator" permissions which is required for the bot to function properly.** Verify there's a tick next to "Administrator":
.jpg)
**Step 5.** After clicking "Authorise", you may be prompted to complete a hcaptcha which ensures you're a real human. Click on the "I am a human" button to verify and once complete, you should receive an "Authorized" message meaning you've successfully invited your bot!
> **Note:** Do you still have questions after reading this page? Check out our support options [**here**](https://app.gitbook.com/s/-Lm_hW5MApY3J0lRhi0M/support)**!**
---
# Standard Practices
Source: https://botghost.com/docs/getting-started/standard-practices
There are some frequently asked questions about BotGhost. Some best practices you may need in the future.
## OAuth2 Code Grant
Inviting your bot is usually quite easy, although sometimes you may receive an error regarding "Bot requires a code grant."
.png)
This is due to the "Requires OAuth2 Code Grant" setting enabled. You can fix this by doing the following:
**Step 1.** Go to the [Discord Developer Portal](https://discord.com/developers/applications) and select your bot's application.
**Step 2.** Under your bot's application, go to the **Bot** tab.
.png)
**Step 3.** Under the **Bot** tab, look underneath **Authorization Flow** and locate **REQUIRES OAUTH2 CODE GRANT**.
**Step 4.** Disable **OAUTH2 CODE GRANT**.
.png)
.png)
**Step 5.** Retry inviting your Discord bot.
## Privileged Gateway Intents
Gateway intents are very important for your bot to function. Intents are required by some BotGhost modules. Intents allow us to choose which events their bot receives based on the data it needs to function, so it is best to enable the intents ahead of time to avoid future errors. If your announcement module, autoresponder module, etc. is not functioning correctly, follow the steps below:
**Step 1.** Go to the [Discord Developer Portal](https://discord.com/developers/applications) and select your bot's application.
**Step 2.** Under your bot's application, go to the **Bot** tab.
.png)
**Step 3.** Under the **Bot** tab, look underneath **Privileged Gateway Intents** and enable all the following three: Presence Intent, Server members Intent, & Message Content Intent.
## Resetting Your Bot's Token
If you need to reset your bot's token, you can follow the following steps to do so:
**Step 1.** Go to the [Discord Developer Portal](https://discord.com/developers/applications).
**Step 2.** Select the application (bot) you want to reset the token from and locate the 'Bot' tab.
.png)
**Step 3.** Scroll down to the blue Reset Token button and click it.
.png)
**Step 4.** Complete any confirmations or two-factor authentication pop-ups that appear, then click the 'Copy' button below your new bot token.
.png)
> **Important:** Your bot's token is the 'key' to your bot, never give this to anyone!
**Step 5.** Paste your new bot token in the [bot token setting](https://botghost.com/docs/general-settings-and-collaboration/settings#bot-token) on the [BotGhost dashboard](https://dashboard.botghost.com/dashboard/settings).
## Changing Your Bot's Name
If you are unhappy with your bot's username, you can always change it through BotGhost's dashboard. You can do this by doing the following steps:
**Step 1.** Go to the [BotGhost Dashboard](https://dashboard.botghost.com/dashboard).
**Step 2.** On the dashboard, go to the [settings page](https://dashboard.botghost.com/dashboard/settings).
**Step 3.** On the first section of the bot settings, you can change the bot's name. *Remember to click "Save"!*
.png)
## Changing Your Bot's Avatar
If you are unhappy with your bot's avatar, you can always change it through BotGhost's dashboard. You can do this by doing the following steps:
**Step 1.** Go to the [BotGhost Dashboard](https://dashboard.botghost.com/dashboard).
**Step 2.** On the dashboard, go the [settings page](https://dashboard.botghost.com/dashboard/settings)
**Step 3.** On the second section of the bot settings, you can change the bot's avatar. *Remember to click "Save"!*
.png)
## Restarting Your Bot
Your bot may need to restart your bot to have your bot function due to some unexpected errors. You can restart your bot by doing the following steps:
**Step 1.** Go to the [BotGhost Dashboard](https://dashboard.botghost.com/dashboard).
**Step 2.** On the dashboard, go the [settings page](https://dashboard.botghost.com/dashboard/settings).
**Step 3.** On the sixth section of the bot settings, you can restart your bot. Press the button **Restart Bot**. *Remember to click "Save"!*
.png)
---
# Advanced Practices
Source: https://botghost.com/docs/getting-started/standard-practices/advanced-practices
Do you need certain IDs to use in the command builder?
## How can I get a channel ID?
**Step 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.**
.png)
**Step 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**
.png)
*PC/Desktop*
#### **Mobile Users**
.png)
*Mobile*
**Step 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?
**Step 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.**
.png)
**Step 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**
.png) .png)
#### **Mobile Users**
.png) .png)
**Step 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?
**Step 1.** Firstly, add the custom emoji you want to use into your message bar
**Step 2.** Move your cursor behind the selected emoji
**Step 3.** Add a backslash **\** behind the emoji
**Step 4.** Send the message
**Step 5.** Copy the **numbers** from the returned format
*How to copy an emoji ID*
## Reading Discord API Documentation and Using it
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 [variables](https://botghost.com/docs/custom-commands-and-events/variables). You can send API Requests using the [Send an API Request](https://botghost.com/docs/custom-commands-and-events/actions/api-actions/send-an-api-request) action.
The example above shows an endpoint from the API that creates messages and is found in the [Discord API Documentation](https://discord.com/developers/docs/intro). 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.
Once you click on the create message endpoint you can start to implement it into the request block using the steps below.
**Step 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.
**Step 2.** Next you input the [request URL](https://botghost.com/docs/custom-commands-and-events/actions/api-actions/send-an-api-request#request-url). 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 [here](https://discord.com/developers/docs/reference).
**Step 3.** 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 [HTTP Headers](https://botghost.com/docs/custom-commands-and-events/actions/api-actions/send-an-api-request#http-headers) 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.
**Step 4.** 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 [Request Body](https://botghost.com/docs/custom-commands-and-events/actions/api-actions/send-an-api-request#request-body) section of your API Request. Instead, if the title says "Query String Params" (see example below), you will have to add them in the [URL Params](https://botghost.com/docs/custom-commands-and-events/actions/api-actions/send-an-api-request#url-params) 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. [Arrays](https://www.w3schools.com/js/js_json_arrays.asp) and [objects](https://www.w3schools.com/JS/js_json_objects.asp) are more complex data types)).
.png)
.png)
---
# Mobile Application
Source: https://botghost.com/docs/getting-started/mobile-application
Would you like to use BotGhost via an app? We offer you way to use BotGhost through an iOS app or icon on your home screen.
You can download the BotGhost App for free on the iOS App Store, or on Android through a Progressive Web App.
*You don't need to install this to use BotGhost, it's completely optional!*
Below you can see how to install it on [iOS](https://botghost.com/docs/getting-started/mobile-application#ios-app) or [Android](https://botghost.com/docs/getting-started/mobile-application#android-devices) device.
## iOS App
> **Warning:** Please note that the native BotGhost app is not available for Android devices.
The BotGhost app is available on the native iOS App Store to download for free.
**Step 1.** Go to the [BotGhost](https://apps.apple.com/us/app/botghost/id6757778695) app on the App Store.
**Step 2.** Press the "Get" button.
.png)
**Step 3.** You can now access the BotGhost dashboard directly from your home screen!.
## Android Devices App
**Step 1.** Go to the [BotGhost](https://botghost.com/) website and click on 'Create Bot' to log in.
**Step 2.** Click on the three dots at the top right corner of your screen.
**Step 3.** Click on 'Install App'.
**Step 4.** Click on 'Install' again to confirm.
**Step 5.** You can now use the app via your home screen or app selector!
---
# BotGhost Support
Source: https://botghost.com/docs/support/botghost-support
Do you require assistance? Read everything about it below!
## Discord Support Server
Our [Discord Server](https://discord.gg/botghost) boasts a community of over 150,000 members. Whether you need support with your bot, want to have a nice chat, or want to explore what others create using BotGhost, we are happy to welcome you. Our community members, community support team, and staff are here to help you whenever needed. Additionally, our Premium members and server boosters have the ability to create a private support thread with an extra premium touch for their questions or inquiries. To join our server and access the support resources, click [here](https://discord.gg/botghost)!
## Billing & Subscription Support
When you have a question or inquiry related to your (future) premium subscription, billing, or a payment you are about to make, (or made) you can reach out to us by creating a [ticket](https://help.botghost.com/support/tickets/new) in our [Help Center](https://help.botghost.com/support/home). A BotGhost employee will assist you with your inquiry.
## Help Center
May you have account related or minor billing / subscription related issues or questions, check out our [Help Center](https://help.botghost.com/support/home). Here you can find multiple articles that might help you to solve your inquiry.
---
# Frequently Asked Questions
Source: https://botghost.com/docs/support/frequently-asked-questions
On this page you can find a couple FAQs that might answer your question quickly!
This page will allow you to get a speedy answer to a frequently asked question you have. To view a frequently asked question, **browse the headers panel** displayed on the **right-hand side** and **select the question** you'd like to learn more about!
---
## How can I fix the "Integration Requires Code Grant" error when inviting my bot?
To resolve this error, follow these steps:
**Step 1.** Head to the [Discord Developer Portal](https://discord.com/developers/applications) and select your bot.
**Step 2.** From the left-hand panel, head to the Bot tab.
.png)
**Step 3.** Scroll down to the "Integration Requires Code Grant" toggle and disable it.
.png)
**Step 4.** Head back to the[BotGhost Dashboard](https://dashboard.botghost.com) and click the Invite button again.
## How can I create prefix/text commands or change my prefix?
Unfortunately, prefix commands are **no longer supported** due to policy changes by Discord. BotGhost uses slash `/` commands, which are built into and supported by Discord directly to allow for better functionality and more features. At the moment, we are not planning to change this. [Learn more](https://support-dev.discord.com/hc/en-us/articles/4404772028055-Message-Content-Privileged-Intent-FAQ).
## How can I fix the "...is thinking" message when running a custom command?
Custom commands will respond with "*Bot name* is thinking..." when **your command does not have a reply message**. Your command must include a [Send or Edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) block with the [reply to the command](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message#reply-to-the-command) [response type](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message#response-type) to avoid this response. All blocks in your command will remain fully functional regardless of this response.
## How can I fix my bot when it goes offline or has another issue?
To resolve common issues like an offline bot, you can [restart your bot](https://botghost.com/docs/general-settings-and-collaboration/settings#restart-bot) or [reset your bot's token](https://botghost.com/docs/support/frequently-asked-questions#how-can-i-reset-my-bot-token). Additionally, if you're a premium member, [disabling beta features](https://botghost.com/docs/general-settings-and-collaboration/settings#enable-beta-features) can often resolve issues with your bot. Bots that have not been [upgraded to a premium subscription](https://botghost.com/docs/premium/upgrade-your-bot) may go offline after 48 hours of inactivity.
## How can I use custom code inside my bot's commands and events?
BotGhost is a no-code Discord bot builder, and therefore **it is not possible to add custom code in your bot**. To build a custom system with your bot, you must use the no-code [Command & Event Builder](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder). At the moment, we are not planning to change this.
## How can I transfer an active premium subscription and bots?
Users with an active [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans), can transfer their premium subscription and bots by creating a [BotGhost Support](https://botghost.com/docs/support/botghost-support#billing-and-subscription-ticket).
## How can I reset my bot token?
To reset your bot token, follow these steps:
**Step 1.** Head to the [Discord Developer Portal](https://discord.com/developers/applications) and select your bot.
**Step 2.** From the left-hand panel, head to the Bot tab.
.png)
**Step 3.** Scroll down to the blue Reset Token button and click it.
.png)
**Step 4.** Complete any confirmations or two-factor authentication pop-ups that appear, then click the 'Copy' button below your new bot token.
.png)
> **Important:** Your bot's token is the 'key' to your bot, never give this to anyone!
**Step 5.** Paste your new bot token in the [bot token setting](https://botghost.com/docs/general-settings-and-collaboration/settings#bot-token) on the [BotGhost dashboard](https://dashboard.botghost.com/dashboard/settings).
## How can I fix the dashboard when it infinitely loads or has another issue?
If you're experiencing an issue like infinite loading while utilizing the [BotGhost Dashboard](https://dashboard.botghost.com), you can usually resolve it by **clearing your browser cache** for the BotGhost website. Click on any of the links below for an official support article on clearing cache specific to your browser.
- [Chrome](https://support.google.com/accounts/answer/32050)
- [Firefox](https://support.mozilla.org/en-US/kb/how-clear-firefox-cache)
- [Safari](https://support.apple.com/lv-lv/guide/safari/sfri11471/mac)
- [Edge](https://www.microsoft.com/en-us/edge/learning-center/how-to-manage-and-clear-your-cache-and-cookies?form=MA13I2)
- [Opera / Opera GX](https://blogs.opera.com/tips-and-tricks/2023/04/clean-browser-and-remove-trackers/)
- [Brave](https://support.brave.com/hc/en-us/articles/360048833872-How-Do-I-Clear-Cookies-And-Site-Data-In-Brave)
- [Vivaldi](https://help.vivaldi.com/desktop/tools/delete-browsing-data/)
Not seeing your browser in the list above? Try using a search engine to look up how to clear cached data with your browser.
## How can I send feedback, suggestions, and bug reports to BotGhost's team?
To send your feedback and reports to BotGhost, you can [join our Discord server](https://discord.gg/botghost) and navigate to the appropriate channels for the type of information you'd like to send. Be sure to read through the information provided in that channel before sending your post.
---
## Question Not Listed
If you can't find your question anywhere on this page, it might be listed somewhere else in the documentation. To find it, you can **use the search bar in the top-right corner** to look up keywords for your question. If you still can't find the answer to your question, please check out the [BotGhost Support](https://botghost.com/docs/support/botghost-support) page where you can find the assistance you need.
---
# Other FAQs
Source: https://botghost.com/docs/support/frequently-asked-questions/other-faqs
On this page you can find a couple FAQs that might answer your question quickly!
Below you may find some other FAQs that are not listed in the [Frequently Asked Questions](https://botghost.com/docs/support/frequently-asked-questions) page.
**How can I listen to music with BotGhost?**
You can listen to music in your Discord servers using the Music Module You can use [pre-built commands](https://botghost.com/docs/fun-modules/music), or you may build your own systems that use music through the [Music Actions](https://botghost.com/docs/custom-commands-and-events/actions/music-actions) and [Variables](https://botghost.com/docs/custom-commands-and-events/variables#music-variables) available in the [command and event builders](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder).
**How do I remove the "Made with BotGhost" watermark / remove the bot's status?**
To remove the "Listening to π» Made with BotGhost.com π»" status/watermark or change it to something of your own, access the [status module on the BotGhost Dashboard](https://dashboard.botghost.com/dashboard/status) and modify its settings. You can learn more about how to do this in the [status module documentation page](https://botghost.com/docs/general-settings-and-collaboration/status).
Please note this **requires** a (free) **premium** subscription. Free users cannot change their status.
**Why does my bot send "Interaction failed"?**
If you always/regularly get this error when using a command, you can fix it by regenerating your bot token.
You can regenerate your bots token by heading over to the [**Discord Developer Portal**](https://discord.com/developers/applications) **> Applications > Select your application (bot) > Bots (side menu option)**.
From here you can select 'Reset Token' to regenerate your bots token, once you have the new token don't forget to paste it into your bots settings page on the [BotGhost Dashboard](https://dashboard.botghost.com/dashboard/settings).
Additionally, you may encounter this issue if you have filled in the "Interactions endpoint URL" setting in the Discord Developer Portal. Double check in the "General Information" section of your application's settings that you didn't fill in this option.
.png)
**My payment method is not working**
You can contact the BotGhost support team for assistance with your payment method issue. reach us out at our [Help Center](https://help.botghost.com/support/home) for help with billing, premium, or subscription related issues or questions.
**Why can't I invite my bot?**
Inviting your bot is usually quite easy, although sometimes you may receive an error regarding "Bot requires a code grant." This is due to the "Requires OAuth2 Code Grant" setting enabled. You can fix this by doing the following:
1. Go to the [Discord Developer portal](https://discord.com/developers/applications) and select your bot's application.
2. Under your bot's application, go to the **Bots** tab.
3. Under the **Bots** tab, look underneath **Authorization Flow** and locate **REQUIRES OAUTH2 CODE GRANT**.
4. Disable **OAUTH2 CODE GRANT**.
5. Retry inviting your Discord bot.
**How can I verify my bot?**
Discord has a verification program, which can be found in the [Discord Developer Portal](https://discord.com/developers/applications) > Select your application (bot) > App Verification. This page allows you to view the status of your application and ensure you meet all requirements for it. Once you meet all requirements, you can send a request to verify your application (bot).
Discord's verification team will review your application. If your application is approved, your bot will receive the verified checkmark.
**What is an API?**
An API is a tool that websites can use to communicate with each other. You can use it in BotGhost to retrieve information or take action on another site. Check out the [Send an API Request](https://botghost.com/docs/custom-commands-and-events/actions/api-actions/send-an-api-request) page for more.
**What is {TOKEN_SECRET}?**
`{TOKEN_SECRET}` is a variable you can use in the 'Send an API request' block in place of your actual bots token when using a discord API endpoint. For security purposes, it can only be used in the `Authorization` field.
**How many commands and events can I create?**
Free users are limited to 3 active custom commands and 3 custom events. You can use more by disabling unused commands or upgrading to a premium subscription. Premium user have no set limit for active commands and can create and deploy as many commands as they want.
**How to delete default commands?**
It's not possible to delete default BotGhost commands. However, you can disable them. To disable the built-in command, you can go in the module they belong to and press the switch to off to disable the command, or disable the whole module.
**Why can't I see commands in my server?**
To see your commands after saving them, you'll need to refresh your Discord client. You can do so on mobile by closing and re-opening the app, or on PC by pressing Ctrl/Cmd + R.
If only certain server members are encountering this issue, ensure they have access to the command. You can check this out by going in the "Integrations" page in your server's settings.
**How to hide commands from certain channels or roles?**
To hide commands from certain roles and channels, you can go to Server Settings > Integrations > Your Bot Integration. Select a command and add roles and channels. You can set them to visible or hidden.
**How to get more / reset data storage?**
The only way to increase the free limit of 500 data storage usages per month is by upgrading your bot(s) to premium from free. It is not possible to purchase or claim more than 500 data storage usages per month besides having premium. This automatically resets on the first day of every month and cannot be manually reset.
**How do I make a bot that nukes the server?**
Nuke / Raid bots are against Discord ToS (Terms of Service). We are unable to assist in creating / advising users to create functions, commands and events that are in breach of Discord's Terms of Services.
**Does BotGhost have a YouTube channel / tutorials?**
You can view all tutorials and videos on our [YouTube channel](https://youtube.botghost.com).
**How do I make my image to a link so I can use it as welcome banner?**
To set a background, use the link of your image in the module settings. It is not possible to upload an image as a file on BotGhost.
Here are some steps how to convert an image into a link:
1. Find an "image to link" converter on the Internet. For example: [Imgur](https://imgur.com/upload)
2. Upload your image to the site you found.
3. Copy the link they give you.
4. Paste this link into your BotGhost module.
**Who is the creator of BotGhost?**
Tomtoise is the founder and main developer of BotGhost.
**How can I calculate something in my custom command?**
To calculate something in your custom command, you can use the "Run Equation on Variable" action in the Command Builder. This action allows you to run any equation on the value of a custom variable.
You can use the `{solve_equation[EQUATION]}` variable built into BotGhost if you don't need to save it directly. Replace "1+1" with the equation you want to solve. Your bot will automatically replace the variable with the equation result.
## BotGhost Server FAQs
All questions below are related to our [Discord server](https://discord.gg/botghost).
**Where can I claim my premium role?**
To claim your Premium Role, navigate to [this message](https://discord.com/channels/822426820447567872/822874663196688404/1432888957477322774) and click the "Get Premium Roles" button, which will automatically grant you the appropriate roles if you are eligible. Only users who have purchased a subscription or have won a subscription from a giveaway or event can claim the premium role.
*Free premium users cannot claim this role.*
**How can I appeal a server ban?**
To appeal any server mutes or bans taken against your account, please head over to our dedicated [appeals server](https://discord.gg/jzRWvKR92k.). Once youβve joined, you can submit an appeal to have your case reviewed by our moderation team.
**How to join the CS (Community Support) team?**
If youβre interested in joining the Community Support team, keep an eye on the Applications Channel. Any future opportunities will be posted there whenever we are looking for new members to join the team.
**How can I report BotGhost server staff?**
To report BotGhost staff members, please open a Modmail thread by visiting the embed at [this link](https://discord.com/channels/822426820447567872/1439813606962106512) and selecting the option to contact our Server Staff Team.
**What are the boosting perks?**
You can learn about this server's boosting perks [here](https://discord.com/channels/822426820447567872/879733469452836864/1090254854410227792). Please note that boosting the server does *not* award you with premium.
**How do I become moderator?**
The Moderation Team is tasked with upholding enforcing the server rules. You can join the team by applying for a moderator position. Opportunities typically arise every few months based on the server's requirements. Keep an eye on the Applications channel. Any future opportunities will be posted there whenever we are looking for new members to join the team.
**How can I become Manager?**
Managers are hand-picked by the Staff Team based on experience and performance; you cannot apply directly for these positions. However, you can apply to join the Community Support or Moderation teams whenever opportunities arise.
**How can I form an affiliation or partnership with BotGhost?**
You can check out the Affiliate Program here: [https://botghost.com/affiliate](https://botghost.com/affiliate)
---
# Priority Hosting
Source: https://botghost.com/docs/premium/priority-hosting
Check the following hyperlinks for quick support regarding your priority hosting subscription.
Priority Hosting is designed primarily for larger bot developers with bots in thousands of servers who need enterprise-grade performance and reliability.
The [Discord bot hosting](https://botghost.com/discord-bot-hosting) page compares Free, Premium, and Priority Hosting side by side.
The specialized infrastructure of priority hosting ensures your high-traffic bots receive the dedicated resources, processing power, and reliability needed to serve large communities β without performance degradation.
> **Note:** Please keep in mind that Priority Hosting is not the same as [Premium](https://botghost.com/docs/premium/our-premium-features)!
## Priority Hosting Features
| Feature | Free / Premium | Priority |
| --- | --- | --- |
| Create Unlimited Bots | **β** | **β** |
| 24/7 Hosting | **β** | **β** |
| Server pods | 1β2k bots | **~10 bots** |
| Button / Menu Retention | 30 days | **365 days** |
| Monthly Q&As with staff/founder | β | **β** |
| Early access to features via alpha.botghost.com | β | **β** |
| Priority bug fixes and feedback influence | β | **β** |
| Real-time downtime and maintenance alerts | β | **β** |
## Priority Hosting Links
For all information about our available payment methods, subscriptions and refund and cancellation policies, check out our [Help Center](https://help.botghost.com/support/home).
> **Note:** Should you have any questions about BotGhost's billing or subscription, please check out our [Help Center](https://help.botghost.com/support/home).
---
# Our Premium Features
Source: https://botghost.com/docs/premium/our-premium-features
View a list of features you can access with a BotGhost Premium subscription.
With a Premium Subscription you can access many exclusive BotGhost features, including removed limits, customized branding, and unlocked modules. These features will allow you to customize your bot with great potential and possibility. Below you can find information about some of these exclusive features.
## General Bot Features
| Feature | Free | Premium |
| --- | --- | --- |
| Create Unlimited Bots | 1 | **β** |
| Servers | Up to 5 servers | **Unlimited servers** |
| 24/7 Hosting | **β** | **β** |
| [Beta Features Access](https://botghost.com/docs/premium/beta-features) | β | **β** |
| [Collab](https://botghost.com/docs/general-settings-and-collaboration/collab) | **β** | **β** |
| [Status](https://botghost.com/docs/general-settings-and-collaboration/status) | β | **β** |
## Commands & Events
| Module | Free Access | Premium Access |
| --- | --- | --- |
| [Custom Commands](https://app.gitbook.com/s/-Lm_hW5MApY3J0lRhi0M/custom-commands-and-events) | Up to 3 commands | **Unlimited commands** |
| [Custom Events](https://app.gitbook.com/s/-Lm_hW5MApY3J0lRhi0M/custom-commands-and-events) | Up to 3 events | **Unlimited events** |
| [Timed Events](https://botghost.com/docs/custom-commands-and-events/events/timed-events) | **β** | **β** |
| [Data Storage](https://botghost.com/docs/custom-commands-and-events/data-storage) | Up to 500 calls per month | **Unlimited usage** |
| [Webhooks](https://botghost.com/docs/custom-commands-and-events/events/webhooks) | **β** | **β** |
| [IFTTT](https://botghost.com/docs/custom-commands-and-events/ifttt) | **β** | **β** |
| [Transcripts](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/create-a-transcript) | **β** | **β** |
| [Music Actions](https://botghost.com/docs/custom-commands-and-events/actions/music-actions) | β | **β** |
| Add Commands & Events in Supported Modules | β | **β** |
| Edit Commands & Events in Supported Modules | Limited Changes | **β** |
## Server Management
| Module | Free Access | Premium Access |
| --- | --- | --- |
| [Modmail](https://botghost.com/docs/server-management/modmail) | β | **β** |
| [Verification](https://botghost.com/docs/server-management/verification) | **β** | **β** |
| [Discord Automod](https://botghost.com/docs/server-management/discord-automod) | β | **β** |
| [Auto-React](https://botghost.com/docs/server-management/auto-react) | β | **β** |
| [Sticky Roles](https://botghost.com/docs/server-management/sticky-roles) | β | **β** |
| [Statistic Channels](https://botghost.com/docs/server-management/statistic-channels) | β | **β** |
| [Welcomer](https://botghost.com/docs/server-management/welcomer) | **β** | **β** |
| [Welcomer - Welcome Card](https://botghost.com/docs/server-management/welcomer#welcome-card) | β | **β** |
| [Emoji Manager](https://botghost.com/docs/server-management/emoji-manager) | β | **β** |
| [Polls Filter](https://botghost.com/docs/server-management/polls-filter) | **β** | **β** |
| [Moderation](https://botghost.com/docs/server-management/moderation) | **β** | **β** |
| [Moderation - Auto-Punishments](https://botghost.com/docs/server-management/moderation#auto-punishment-settings) | Up to 1 | **Up to 10** |
| [Tickets](https://botghost.com/docs/server-management/tickets) | **β** | **β** |
| [Tickets - Panels](https://botghost.com/docs/server-management/tickets#panels) | **β** | **Up to 50** |
| [Tickets - Transcripts](https://botghost.com/docs/server-management/tickets#transcripts) | **β** | **Up to 50** |
| [Tickets - Connected Panels](https://botghost.com/docs/server-management/tickets#connected-panels) | β | **β** |
| Tickets - Advanced Features | β | **β** |
## Messages
| Module | Free Access | Premium Access |
| --- | --- | --- |
| [Reaction Roles](https://botghost.com/docs/messages/reaction-roles) | Up to 3 slots | **Up to 30 slots** |
| [Global Chat](https://botghost.com/docs/messages/global-chat) | β | **β** |
| [Polls](https://botghost.com/docs/messages/polls) | β | **β** |
| [Media Channels](https://botghost.com/docs/messages/media-channels) | β | **β** |
| [Timed Messages](https://botghost.com/docs/messages/timed-messages) | Up to 2 slots | **Up to 20 slots** |
| [Autoresponder](https://botghost.com/docs/messages/autoresponder) | Up to 3 slots | **Up to 100 slots** |
| [Sticky Messages](https://botghost.com/docs/messages/sticky-messages) | β | **β** |
| [Embed Builder](https://botghost.com/docs/messages/embedbuilder) | **β** | **β** |
## AI
| Module | Free Access | Premium Access |
| --- | --- | --- |
| [ChatGPT](https://botghost.com/docs/ai/chatgpt) | β | **β** |
| [Image Generation](https://botghost.com/docs/ai/image-generation) | β | **β** |
## Game Integrations
| Module | Free Access | Premium Access |
| --- | --- | --- |
| [Roblox Verification](https://botghost.com/docs/game-integrations/roblox-verification) | β | **β** |
## Community Engagement
| Module | Free Access | Premium Access |
| --- | --- | --- |
| [Starboard](https://botghost.com/docs/community-engagement/starboard) | 1 board | **Up to 5 boards** |
| [Starboard - Star Rewards](https://botghost.com/docs/community-engagement/starboard#star-rewards) | β | **β** |
| [Starboard - Autostar Channels](https://botghost.com/docs/community-engagement/starboard#autostar-channels) | β | **β** |
| [Leveling](https://botghost.com/docs/community-engagement/leveling) | **β** | **β** |
| [Leveling - Level Card](https://botghost.com/docs/community-engagement/leveling#level-card-settings) | β | **β** |
| [Leveling - Voice XP](https://botghost.com/docs/community-engagement/leveling#voice-xp-settings) | β | **β** |
| [Leveling - Role Rewards](https://botghost.com/docs/community-engagement/leveling#role-rewards) | Up to 3 | **Up to 100** |
| [Leveling - XP Boosters](https://botghost.com/docs/community-engagement/leveling#xp-boosters) | Up to 1 | **Up to 100** |
| [Temp Voice Channels](https://botghost.com/docs/community-engagement/temp-voice-channels) | β | **β** |
| [Invite Tracker](https://botghost.com/docs/community-engagement/invite-tracker) | β | **β** |
| [Suggestions](https://botghost.com/docs/community-engagement/suggestions) | β | **β** |
| [Question Of The Day](https://botghost.com/docs/community-engagement/question-of-the-day) | β | **β** |
## Fun
| Module | Free Access | Premium Access |
| --- | --- | --- |
| [Counting](https://botghost.com/docs/fun-modules/counting) | **β** | **β** |
| [Giveaways](https://botghost.com/docs/fun-modules/giveaways) | **β** | **β** |
| [Economy & Minigames](https://botghost.com/docs/fun-modules/economy-and-minigames) | **β** | **β** |
| [Economy & Minigames - Economy Roles](https://botghost.com/docs/fun-modules/economy-and-minigames#economy-roles) | Up to 1 | **Up to 10** |
| [Birthdays](https://botghost.com/docs/fun-modules/birthdays) | **β** | **β** |
| [Music](https://botghost.com/docs/fun-modules/music) | β | **β** |
## Utilities
| Module | Free Access | Premium Access |
| --- | --- | --- |
| [Translation](https://botghost.com/docs/utility/translation) | β | **β** |
| [Weather](https://botghost.com/docs/utility/weather) | **β** | **β** |
This page is for informational purposes only, and the listed information may be inaccurate or out of date. No rights are associated with the information provided on this page.
> **Note:** Should you have any questions about BotGhost's billing or subscription, please check out our [Help Center](https://help.botghost.com/support/home).
---
# Premium & Priority Hosting Plans
Source: https://botghost.com/docs/premium/premium-and-priority-hosting-plans
The following Payment Methods can be used to purchase a Premium subscription
## Premium & Priority Hosting Plans
We have several different subscription plans for you to choose from to match your expectations and preferences. You can buy a premium or priority hosting subscription by clicking on the 'Premium' and 'Priority Hosting' page in the left menu on the [BotGhost dashboard](https://dashboard.botghost.com/dashboard).
### Single Bot Subscriptions
The Single Bots Package provides you with **one premium token** that can be used to upgrade **one** of BotGhost's bots to the premium version. This subscription is availble in both monthly and yearly.
**Monthly Single Bot** - The Monthly Single Bot subscription is billed monthly, and grants you access to BotGhost's premium features to one bot as long as the subscription is not cancelled.
**Yearly Single Bot** - The Yearly Single Bot subscription is billed yearly, and grants you access to BotGhost's premium features to one bot as long as the subscription is not cancelled.
### Unlimited Bots Subscriptions
The **Unlimited** Bots Package provides you with an **infinite number of premium tokens** that can be used to upgrade any of BotGhost bots to the premium version. This subscription is availble in both monthly and yearly.
**Monthly Unlimited Bots** - The Monthly Unlimited Bots plan is billed monthly, and grants you access to BotGhost's premium features to all your bots as long as the subscription is not cancelled.
**Yearly Unlimited Bots** - The Yearly Unlimited Bots plan is billed yearly, and grants you access to BotGhost's premium features to all your bots as long as the subscription is not cancelled.
### Priority Hosting
Priority hosting upgrades your entire bot fleet to our exclusive high-performance servers with enhanced features and VIP community access. Ideal for serious developers with bots in thousands of servers requiring enterprise-grade reliability available in both monthly and yearly.
**Monthly Priority Hosting** - The Monthly Priority Hosting plan is billed monthly, and grants you access to BotGhost's priority hosting features to all your bots as longas the subscription is not cancelled.
**Yearly Priority Hosting** - The Yearly Priority Hosting plan is billed yearly, and grants you access to BotGhost's priority hosting features to all your bots as long as the subscription is not cancelled.
> **Warning:** Prices can be found on the 'Premium' and 'Priority Hosting' page in the left menu on the [BotGhost dashboard](https://dashboard.botghost.com/dashboard) and may vary over time. All available plans are listed in USD; any other currency will be automatically converted during the checkout process. Your bank or the payment method you're using is responsible for the exchange rate and possible additional fees. Contact your bank or the payment service you're using for more information on this.
> **Note:** Should you have any questions about BotGhost's billing or subscription, please check out our [Help Center](https://help.botghost.com/support/home).
---
# Upgrade Your Bot
Source: https://botghost.com/docs/premium/upgrade-your-bot
Not able to figure out how you can upgrade your bot to premium? Below you can find the instructions!
## How to upgrade your bot
### *Premium Subscriptions purchased post (after) March 15th 2025:*
**Just upgraded to a premium subscription? Awesome!**
All the bots on your account have been automatically upgraded, no extra steps needed. Just refresh your browser, and start enjoying all the premium features of BotGhost!
> **Note:** **The following bots are not upgraded:**
>
> - Bots that are already upgraded with premium
> - Bots that you are a collaborator of. Only bots created on your BotGhost account can be upgraded with your Premium subscription.
> **Note:** Should you have any questions about BotGhost's billing or subscription, please check out our [Help Center](https://help.botghost.com/support/home).
### *Premium subscriptions purchased pre (before) March 15th, 2025:*
> **Note:** The following bots **can't** be upgraded:
>
> - Bots that are already upgraded with premium,
> - Bots that you are a collaborator of. You can only upgrade the bots on your BotGhost account.
>
> If your bot is upgraded with premium, you must wait till this runs out to use your (other) premium subscription.
Just purchased a premium subscription and want to upgrade your bot? Follow these steps to upgrade your bot:
**Step 1.** First, you'll need to locate your [BotGhost Dashboard settings](https://btghst.info/settings) in order to upgrade your bot:
.png)
**Step 2.** At the top of your settings page, you should see an orange box with the message 'Premium Tokens Available'. To activate premium on that specific bot, press the 'Upgrade Bot' button!
.png)
*Note: Ensure you've selected the right bot before interacting with this button*
## Experiencing issues with upgrading your bot
**W**e're sorry to hear that you are experiencing this issue. Please contact us via our [Help Center](https://help.botghost.com/support/home). We're happy to assist you further!
> **Note:** Should you have any questions about BotGhost's billing or subscription, please check out our [Help Center](https://help.botghost.com/support/home).
---
# Beta Features
Source: https://botghost.com/docs/premium/beta-features
Are you interested in testing our newest features? Read here how you can turn on beta features!
> **Warning:** An active [Premium](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) subscription is required in order to enable Beta Features.
## How to enable beta features?
**Step 1.** First, you'll need to locate your [BotGhost Dashboard settings](https://btghst.info/settings) in order to enable this feature:
.png)
**Step 2.** Once you've entered the settings page, scroll down till you see the 'Bot Options' section. Underneath the 'Restart Bot' tab there's an option called 'Enable Beta Features'. Click on the toggle till it's orange to enable beta features for your bot.
.png)
## What is beta?
Once enabled, your bot will be connected to the BotGhost beta servers and you will get early access to newly released features before anyone else does.
**Note:** These features are stable but still require user testing so you may experience bugs and lag during use. You can always turn this setting off in case you're no longer interested.
## When are beta features announced?
Newly released beta features will always be announced via our [Discord server](https://discord.gg/botghost) first, but you'll have access to them straight away. You can also report bugs through our #bugs channel in our Discord server and share feedback with our developers!
> **Important:** As beta features is solely for beta additions to BotGhost, you may experience bugs and performance issues while beta mode is enabled. You can disable beta features at any time via the [settings page](https://dashboard.botghost.com/dashboard/settings) on the bots dashboard.
---
# Settings
Source: https://botghost.com/docs/general-settings-and-collaboration/settings
Your Bot's Settings and Presence
The [settings](https://dashboard.botghost.com/dashboard/settings) page in the dashboard allows you to manage your bot's general settings, view and update them. Below you may find some information on each section of the page
## Bot Settings
.png)
These are the general settings of your bot, that determine how your bot's profile appears.
#### Bot Name
This shows your bot's display name. You can this field to update the bot's display name. Preferences are saved automatically: you don't need to click on "Save changes" when updating it. This can also be updated from the [Discord Developer Portal](https://discord.com/developers/applications).
#### Bot Avatar
Here you can update your bot's icon. Click on the "Choose file" button to pick a file from your files archive and upload it to BotGhost. Preferences are saved automatically: you don't need to click on "Save changes" when updating it. This can also be updated from the [Discord Developer Portal](https://discord.com/developers/applications).
#### [π] Set Status Message
Update your bot's status to one of your liking. This requires a premium subscription.
#### Bot Presence
Change your bot's presence. Free for all users. The presence can also be changed via the [Change the Bot's Status](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/change-the-bots-status) action in the command and event builders.
| Presence | How It Looks |
| --- | --- |
| Online |  |
| Idle |  |
| Do Not Disturb |  |
| Invisible |  |
> **Warning:** Invisible makes your bot look offline in Discord, even though it is running and commands still work.
## Bot Options
.png)
#### Bot Token
This field contains the token of the bot and allows you to change it if you regenerated it from the [Discord Developer Portal](https://discord.com/developers/applications). Preferences are saved automatically: you don't need to click on "Save changes" when updating it.
#### Bot Status
This allows you to Stop or Start the bot. You can also see the current online status (Online/Offline)
#### Restart Bot
The "Restart bot" button allows you to quickly stop and start your bot again. You may use it if you're experiencing issues with the bot.
#### Remove Bot
This button allows you to permanently delete your bot and its connected data. **This action is irreversible and cannot be undone.**
#### [π] Enable Beta Features
Enable this option to enable beta features on your bot. Note that some of these features may be unstable, since they're still under a testing phase. If you're experiencing issues, consider disabling this option. This option is available only to premium users, see [Beta Features](https://botghost.com/docs/premium/beta-features) for more info. Preferences are saved automatically: you don't need to click on "Save changes" when updating it.
## Account Options
.png)
#### Log Out
Logs you out from your current Discord account. You may use it if you want to switch accounts and use another one.
## Top.gg Integration
.png)
#### Top.gg Token
This setting will automatically post your bot's stats to Top.gg if it has been provided with the token from your Top.gg Dashboard.
## Privileged Intent Options
.png)
Your bot requires certain permissions in order to work as intended. These permissions can be granted to your bot from the [Discord Developer Portal](https://discord.com/developers/applications) in the "Bot" section.
.png)
By default, BotGhost automatically sets all intents to "Auto" to automatically adapt them basing on what your bot needs to run. If you however want to force enable / disable one or more of them, you can do that here. For example, you can set the "Server Members Intent" to "Always Disable", allowing you to disable it on the Discord Developer Portal. If this change stops your bot from running, this means the bot requires this intent to work, and you should turn it back on.
Below, you may find some information on each intent.
| Intent | Details |
| --- | --- |
| #### Presence Intent - GUILD_PRESENCES | Allows the bot to receive presence updates. For example, when the status of a user changes. |
| #### Server Members Intent - GUILD_MEMBERS | Allows your bot to receive updates on your server members. For example, when an user joins or leaves the server (which makes this intent required for welcome / leave messages). |
| #### Message Content Intent - MESSAGE_CONTENT | Allows your bot to read messages on your server. For example, you need this intent if you're using the Autoresponder module. |
All intents can be updated to the following states:
| State | Details |
| --- | --- |
| Auto | BotGhost automatically determines if the intent is required for yout bot to work.
Note that this only checks if there are any enabled modules or events that require this intent. Variables like `{Member.presence}` (check out the [Member Object](https://botghost.com/docs/custom-commands-and-events/variables#member-variable) page for more information) require you to manually set the intent to "Always Enable", unless you already have one or more events that make use of the required intent. |
| Always Enable | Set the intent's state this option if you want the selected intent to always be required for your bot. |
| Never Enable | Pick this option if you want the intent to never be enabled on your bot. |
> **Important:** Disabling certain privileged intents will cause some bot functions to not work correctly. Update them at your own risk.
## Subscription Options
.png)
Here you may view your subscriptions information and update them on the Chargebee portal by clicking on the "Manage Subscription" button. See Broken link for more info.
## Claim a Premium Code
.png)
If you received one, you may claim the premium code from this section. Make sure you're on the correct bot before claiming it. If it's a `GIFT` code, headover to the [Gifting](https://dashboard.botghost.com/dashboard/gifting) page instead and claim it here.
---
# Collab
Source: https://botghost.com/docs/general-settings-and-collaboration/collab
With these features, you can invite others to edit and work on your bot.
## Before Using this Feature!
> **Important:** **MULTIPLE USERS (TWO OR MORE)** **CANNOT** **WORK ON A BOT SIMULTANEOUSLY.**
>
> If a user with an older version of the dashboard saves their changes, it will override the previously saved version. We can't revert the lost progress if this happens!
> **Warning:** **Premium users** **cannot** **use their premium tokens to upgrade bots created on other accounts.**
>
> Premium users can't use their subscription to upgrade a bot they are a collaborator to. This is to prevent users from selling BotGhost bots, which is against our [***terms of service***](https://botghost.com/tos).
## Collaborations
Using Collab, known as co-create by older members of BotGhost, you can invite others (collaborators) to edit and work on your bot. This feature can be used to grant the admins, co-owners, or anyone else access to the bot. Collaborators don't need a BotGhost account to accept an invite link.
## Amount of Collaborators
All BotGhost users, both free and Premium, can invite an unlimited number of collaborators to any bot they have.
## Limitations of Collaborators
Collaborators can't:
- Delete the bot
- View or change the bot's token
- Manage the bot's Premium subscription
- Access the Collaboration page
## Invite Link
You can create an invite link to invite collaborators to your bot. You can either 'Copy' the current invite URL or 'Generate' a new one. When you regenerate the invite URL, the old one will become invalid and unusable. Collaborators invited with the old URL will not be removed when the URL is regenerated.
## Collaborators
You can see who can currently edit your bot as a collaborator. Use the 'Remove' button to remove a collaborator. Once removed, the collaborator can no longer access the bot from their dashboard, unless they use the (new) invite link again.
This tab **only shows** collaborators for your currently selected bot. You can switch bots using the menu in the top left corner of your dashboard.
> **Note:** Anyone using the current invite URL can join/rejoin as a collaborator, even if you've removed them earlier.
.png)
## Bot Collaborations
You can see which bots you are a collaborator on. Use the 'Leave' button to remove a bot from your dashboard. Once removed, you can no longer access the bot, unless you accept the invite URL of the bot again.
> **Important:** Users granted access to your bot can do everything you can do on your bot, *except for a few limitations listed at the top of this page*. Ensure you do not grant access to people you don't trust!
>
> We can't revert changes made by collaborators to your bot's features or settings. Use this module at your own risk.
---
# Status
Source: https://botghost.com/docs/general-settings-and-collaboration/status
Change the "Listening to π» Made with BotGhost.com π»" status to something of your own!
.png)
> **Warning:** This module requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The [Status module](https://dashboard.botghost.com/dashboard/module/42056fd5-1c1d-4f89-8db7-794fe732424c/status) allows you to change the status on your bot to something of your own. You can also configure a command that allows you to change it directly from your server.
## Settings
### Status Mode and Settings
.png)
#### Status Mode
This setting allows you to set the status mode you prefer. Below you may find some information on each mode.
**Disabled**
When selecting this option, the status of the bot will be disabled, and no status will be shown in the bot's profile.
.png)
**Fixed**
The fixed option allows you to set your bot's status in a fixed state, which means it will always remain the same until changed from the dashboard.
.png)
#### Status Type
This setting allows you to set the status type. You can set it to "Listening", "Playing" or "Watching".
.png)
#### Status Text
Here, you can set your own custom text for the status, and will appear right next to the selected status type.
.png)
**Rotating**
The Rotating mode allows the bot to cycle through several statuses in the order they were added at a specified duration.
.png)
### Adding Rotating Statuses
Once you set the status mode to "Rotating" a new menu will appear, allowing you to setup up to 100 rotating statuses. Below you can find all available settings.
.png)
#### Status Duration
The status duration field allows you to input the time in seconds you want the status to show in the bot's profile. The minimum duration is 30 seconds, and the maximum is 86400 seconds (1 day)
.png)
#### Remove Status
Here you may toggle whether the bot will have a status/presence showing during this status rotation. Turn the option on to remove the status.
.png)
#### Status Type
This setting allows you to set the status type. You can set it to "Listening", "Playing" or "Watching".
.png)
#### Status Text
Here, you can set your own custom text for the status, and will appear right next to the selected status type.
.png)
> **Note:** To save the rotating status's settings, you need to click "Add" in the bottom-right corner of the settings. This will reset the fields so you can set up another rotating status.
### Viewing Active Rotating Statuses
You can edit all active rotating statuses through a list right below the menu.
> **Note:** To save the edits you made on the rotating status's settings, you need to click "Edit" in the bottom-right corner of the settings.
.png)
**Command**
This mode enables a `/status` command that can be used in your server to update the status of your bot.
#### Embeds Color
This setting allows you to customize the color of responses of the bot.
.png)
#### Status Command Channel Restrictions
You can setup channel restrictions to allow the usage of the `/status` command only in certain channels.
| Blacklist Type | Information |
| --- | --- |
| No channel restrictions | Set this blacklist type if you want the command to work in all channels. |
| Disable for these channels... | Set this blacklist type if you want the command to work in all channels except the channels provided in the menu below. |
| Enable for these channels... | Set this blacklist type if you want the command to work only in the channels provided in the menu below. |
.png)
#### Status Command Role Restrictions
You can setup role restrictions to allow the usage of the `/status` only to certain roles.
| Blacklist Type | Information |
| --- | --- |
| No role restrictions | Set this blacklist type if you want everyone to be able to use this command. |
| Disable for these roles... | Set this blacklist type if you want the command to work for all users, except users with at least one of the roles provided in the menu below. |
| Enable for these roles... | Set this blacklist type if you want the command to work only for users with at least one of the roles provided in the menu below. |
.png)
---
## Commands
In this area, you can view and modify the commands of the Status module. Below you may find some information on each command of the module.
.png)
**/status**
The `/status` command allows you to update or reset the status of the bot from your Discord server. The "Command" mode is required to be enabled in the settings page of the module.
.png)
## Events
In this area, you can view and modify the events of the Status module. Below you may find some information on each event of the module.
.png)
**Restarts Handler**
This event updates the status of the bot when it is restarted.
**Updates Handler**
This event makes sure the status is updated when changes are saved or the status is updated through the dashboard.
**Rotating Status Handler**
This timed event allows the rotating status feature to work as intended and update the status when the set time has passed. Make sure to not delete the associated timed event in the [timed events](https://botghost.com/docs/custom-commands-and-events/events/timed-events) module.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intented.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Marketplace
Source: https://botghost.com/docs/general-settings-and-collaboration/marketplace
Get the perfect commands for your server, already built for you.
> **Note:** Make sure to always follow the marketplace guidelines while using the website. You can check all the marketplace guidelines [here](https://botghost.com/market/guidelines).
## What is BotGhost Marketplace?
BotGhost Marketplace is a service for sharing and importing custom BotGhost commands and bots. With the BotGhost marketplace, you can now find the commands you need faster than ever before. You can additionally share your hard-made custom commands with others to import into their own bots.
## Add Commands with Marketplace
#### Step 1. Select a Command
On the [BotGhost Marketplace](https://botghost.com/market) page, click the top right **Add Command**. Once on the add command page, you will get a drop-down menu where you select a command you have made with your bot(s). It will show a list full of all of the custom commands you have made across all bots.
.png)
#### Step 2. Add Commands Details
**Select a Command:** Add a name for your command. This will be displayed on the main page and in the search bar. Ensure that the name of the command is related to its function.
**Add Details:** Add a tagline for your command. This will be the 'short description' if displayed on the main page. It is best to include a short description of your command to entice users into viewing it.
**Long Description:** Add a long description for your command. This will provide a detailed explanation of your command when someone views your command. It is best to include all the features of the commands to entice users to import your command.
**Add Tags:** Add tags for your command. This is important to get more views on your command. Adding tags to your command will boost it being seen in the search and main page. This is one of the most important aspects of your commands to reach other users.
**Add Images:** Add images for your command. Show off your command in image form to all viewers to see, these images will need to be approved by a staff member! Make sure to keep all images following the [BotGhost Market Guidelines](https://botghost.com/market/guidelines).
## Edit Commands with Marketplace
If you have something you would like to change about your command, you can do this by editing your command. You can do this by doing the following:
1. Click your profile on the top right corner. This will direct you to your profile and list all the commands you've posted.
2. Select the command you would like to edit and click the **Edit** button. Once in the edit page, you can change any setting of the command you would like.
## Delete Commands with Marketplace
If you do not like the command you've posted, you can always delete it. You can do this by doing the following:
1. Click your profile on the top right corner. This will direct you to your profile and list all the commands you've posted.
2. Select the command you'd like to delete, click the **Edit** button. Once in the edit page, scroll down and you will see an option to remove the command.
## Import Commands with Marketplace
If you find a command you like on BotGhost Marketplace, you can do this by doing the following:
1. Select the command you would like to import and click the **Add Command** button.
2. Once pressed the button, select which bot you would like the command to be added.
3. Congratulations! The command should have been added on your bot via Custom Command module. You can check via Dashboard.
---
# Command & Event Builder
Source: https://botghost.com/docs/custom-commands-and-events/command-and-event-builder
Create your very own commands and events!
[YouTube video](https://www.youtube.com/watch?v=lv7D-983yMU)
Hint: Watch this video to find out how to use the command builder or follow the steps below:
The Custom [Commands](https://dashboard.botghost.com/dashboard/customcommands) & [Events](https://dashboard.botghost.com/dashboard/customevents) modules allow you to create custom commands or run actions when something happens on your server.
The [Discord bot command builder](https://botghost.com/discord-bot-command-builder) page gives a shorter tour of what you can build with it.
## The "Tree" - Actions, Options and Conditions
When you have entered the command builder, you will be able to add and connect [actions](https://botghost.com/docs/custom-commands-and-events/actions) to the main yellow block. These actions will make your bot take actions (such as reply, set variables or send API Requests), they run in the order they are connected, starting at the yellow base block. You can also add [options](https://botghost.com/docs/custom-commands-and-events/options) to your command, they can be used to input values when using the command in Discord, they can be referred to as {option_option-name}. [Conditions](https://botghost.com/docs/custom-commands-and-events/conditions) can be used to run different actions basing on the result of a comparison between two or more values, splitting the tree in more branches.
## The Sidebar
.png)
The sidebar is the section of your builder that allows you to add blocks, variables to your tree or view or update information.
It consists of 6 sections: the first one, is dedicated to all [options](https://botghost.com/docs/custom-commands-and-events/options), [actions](https://botghost.com/docs/custom-commands-and-events/actions) and [conditions](https://botghost.com/docs/custom-commands-and-events/conditions) you can add to your tree. Variables allows you to view or edit your [custom variables](https://botghost.com/docs/custom-commands-and-events/data-storage) or create more. You can also check out all error logs in the Error Logs tab, represented by the red icon. The fourth section allows you to view the list of your commands or events while being in the command and event builder respectively. The timed events section allows you to, just like variables, view, edit and create [timed events](https://botghost.com/docs/custom-commands-and-events/events/timed-events). Last but not least, there's a section to view all your [templates](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder/sharing-commands-and-events#templates).
## Connecting Blocks
### Desktop / PC
Simply press and hold the top circle on the action block to start the connection line, from here you can simply drag the connection line to the connection circle on the bottom of the block you wish to connect your action to, to complete the circuit and connect the blocks together.
.gif)
### Mobile
Simply press the top circle on the action block to start the connection line, from here you can simply press the connection circle on the bottom of the block you wish to connect your action to, to complete the circuit and connect the blocks together.
## Variables and Data storage
Variables are the first step in unlocking the ability for your bot to be better used in multi-server settings. Custom variables allow you to store data to be used by your bot through creating custom Global, Server Specific, Channel Specific or User specific variables. You can read more information about them in the [Variables](https://botghost.com/docs/custom-commands-and-events/variables) and [Data Storage](https://botghost.com/docs/custom-commands-and-events/data-storage) pages.
## Block Labels
When adding blocks to the command/event builder, you will notice every block has a setting called 'Label'. This will change the name of the block from its default name to something of your choice, this is incredibly handy for pointing out key parts of the command/event, or if you are working with multiple [Collab](https://botghost.com/docs/general-settings-and-collaboration/collab) users.
.png)
## More about the BotGhost Builder
| Page | Info |
| --- | --- |
| [sharing-commands-and-events.md](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder/sharing-commands-and-events) | Learn how to share commands or copy trees across your commands and events! |
| [advanced-options.md](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder/advanced-options) | Learn how to use BotGhost's builder advanced customization options and keybinds! |
## Command Builder
### How to create a command
**Step 1.** To create a custom command, first head over to the [command builder](https://dashboard.botghost.com/dashboard/customcommands) on the dashboard.
**Step 2.** To create a new custom command, click on the big "Command Builder" box to open the Command Builder itself.
**Step 3.** Click on the yellow block: it represents the start of the command, and includes all general settings for your custom command. Ensure to assign your command a unique name and a description.
**Step 4.** After that, you can customize the settings of your command, you can view some information on these settings below.
| Setting Name | Function |
| --- | --- |
| Hide bot's replies | Toggle to hides the replies of the bot from everyone except the person who triggered the command. |
| Cooldown | The cooldown of the command, this can be set to user specific or for the whole server. |
| Permission Options | Here you can select roles that are allowed to use the command, banned roles, required permissions to use the command an/or banned channels. |
**Step 5.** You can now add [actions](https://botghost.com/docs/custom-commands-and-events/actions), [options](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder#options) and [conditions](https://botghost.com/docs/custom-commands-and-events/conditions) to your command by dragging blocks from the left sidebar on the command builder and [connect](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder#connecting-blocks) them together.
### Options
Options are the purple in color blocks and are used for users to input values into the command, which can then be referenced anywhere within the command with the variable {option_option-name}. Options function when a command is about to be executed, which creates fields to be able to input values into. Additionally, options are automatically connected to the command when added. They are also only available in the command builder but are not required to be in the command. Check out the [options](https://botghost.com/docs/custom-commands-and-events/options) page to learn more.
### Subcommands
.png)
Subcommands are a great way to group your commands into small categories. You can for example use "economy" as the first word of all the commands of your economy system to group them together. To do so, simply add in the trigger the name of the "category" you want the command to be in with a space, followed by the command's name. You can have up to 25 subcommands per command.
> **Important:** You cannot have a command with the same name of a subcommand "category". This means that if you have two subcommands named `/item add` and `/item remove`, you cannot have a command named `/item`.
.png)
.png)
## Event Builder
Events can be used to execute actions when an something happens in your Discord server. You can let them trigger with channel creations & deletions, when a user gets kicked or banned, when a role is created or deleted and much more!
### How to create an event
**Step 1.** To create a custom event, first head over to the [Custom Events](https://dashboard.botghost.com/dashboard/customevents) module on the dashboard.
**Step 2.** Then click on the big "Event Builder" box to open the builder.
**Step 3.** Now select an event type, this will determine on what will trigger your event. For instance, if a user joins your server, you can then have the bot greet them, like the announcement module, and DM them.
**Step 4.** You can now add [actions](https://botghost.com/docs/custom-commands-and-events/actions) and [conditions](https://botghost.com/docs/custom-commands-and-events/conditions) to your event by dragging blocks from the left sidebar on the command builder and [connect](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder#connecting-blocks) them together.
To learn more about custom events, visit the [events](https://botghost.com/docs/custom-commands-and-events/events) page.
---
# Sharing Commands and Events
Source: https://botghost.com/docs/custom-commands-and-events/command-and-event-builder/sharing-commands-and-events
## Share Codes
Share codes can be used to create a copy of a custom command or event. You can use it to import custom commands and events into other bots, or even other accounts. These share codes have different formats, a code that starts with "CMD" is a custom command while a code that starts with "EVENT" is a custom event. The steps below work for either a command or event.
### Sharing a command to someone
To share a command to someone, you first need to create a share code. You can do so by pressing the "Generate Share Code" button on your custom command from the builder menu.
### Importing a Command
To import a custom command, you can create a new command and press "Import command", you can then paste a share code. Then press "Import", it will then import a copy of the command.
## Templates
Block Templates can be used to share a group of blocks from the command and event builder across your all of your bots. The blocks you can save include actions and conditions.
### Creating and Saving a Template
To create a block template, you must hold the SHIFT key on your keyboard and use your mouse's left click to select the blocks you would like to save into your new template. After selecting the blocks you'd like to save, let go off your mouse's left click and then press the "Save as Template" button in the bottom right of the builder.
After pressing the "Save as Template" button, a menu will appear to finish saving. Here you may chose to edit an existing template you've created or create a brand new one. If you select to edit an existing template, your currently selected blocks will override the previous blocks and delete the previous blocks. The final step of saving your template is providing a name and description for the template. After doing so, you may press the "Save Template" button to finish the process of creating your block template.
.png)
### Importing a Template
In order to use one of your created block templates in the command and event builder, you must click on the "Block Templates" button in the bottom left of the builder. After pressing this button, all of your created templates will appear here, you may click and drag onto one of your templates and drop it inside of your builder to add the template's saved blocks into your current command or event.
### Deleting a Template
If you would like to delete one of your saved template's you must open the templates menu by clicking on the "Block Templates" button in the bottom left of the builder. After doing so, find the template you would like to delete and click on it. Once you click on your template you want to delete, a menu will appear making you confirm the deletion of your template, here you must press the "Delete Template" button to officially delete your template.
---
# Advanced Options
Source: https://botghost.com/docs/custom-commands-and-events/command-and-event-builder/advanced-options
## Settings
The command and event builders have some settings to customize the builder to your liking. They can be found by pressing the "Settings" button in the top left of the builder.
When you open the settings page you will be able to switch to the general settings, block colors, block defaults and keybinds sections with the menu on the left.
You can also restore the settings to their default by pressing the button in the bottom left.
.png)
### General Settings
| Available Setting | Function |
| --- | --- |
| Auto Save [π] | Automatically saves your command or event with a selected interval. |
| Mobile Builder [Experimental] | Enables the new mobile builder interface, better for mobile users. The desktop mode will remain the same when this is enabled. |
| Hide Legacy Reply Actions | Hides the old reply actions when enabled. Learn more about those blocks [here](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions). |
### Block Colors
This setting will change the default colors of the [action](https://botghost.com/docs/custom-commands-and-events/actions), [condition](https://botghost.com/docs/custom-commands-and-events/conditions), [option](https://botghost.com/docs/custom-commands-and-events/options), root and selected blocks.
.png)
### Block Defaults
| Available Setting | Function |
| --- | --- |
| Default Embed Color | Select a default colour for embeds, new embeds will have this color by default |
| Default Condition Type | Select a default [comparison type](https://botghost.com/docs/custom-commands-and-events/conditions/comparison-condition#comparison-type) for conditions to be set to |
### Keybinds
Keybinds allow you to quickly perform specific actions while using the command builder. The available keybinds are listed in the table below.
> **Note:** Keybinds require a physical keyboard to function.
**Windows/ChromeOS**
| Keybind | Operation | Description |
| --- | --- | --- |
| Del or Backspace | Delete Blocks | Deletes the selected block(s). |
| Ctrl + C | Copy Block | Copies the selected block or selected text to your clipboard. Cannot be used with the [Mass Select](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder/advanced-options#bulk-operations) feature. |
| Ctrl + V | Paste Block | Pastes the copied block or copied text into the builder. |
| Ctrl + S | Save Command / Event | Triggers a save on your command or event. |
| Ctrl + Z | Undo | Undoes the most recent block addition or connection. This means the last block you added / connected will be removed from the tree. |
| Ctrl + Y | Redo | Redoes the most recent block deletion or undo. This keybind can be used on up to 100 of your most recent block deletions, which persist through saves. |
| Shift + Drag | [Mass Select](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder/advanced-options#bulk-operations) | Allows you to select multiple blocks at a time by dragging your cursor over each of the blocks you wish to select. |
**MacOS**
| Keybind | Operation | Description |
| --- | --- | --- |
| delete | Delete Block | Deletes the selected block(s). |
| Cmd + C | Copy Block | Copies the selected block or selected text to your clipboard. Cannot be used with the [#mass-select](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder/advanced-options#mass-select) feature. |
| Cmd + V | Paste Block | Pastes the copied block or copied text into the builder. |
| Cmd + S | Save Command / Event | Triggers a save on your command or event. |
| Cmd + Z | Undo | Undoes the most recent block addition or connection. |
| Cmd + Y | Redo | Redoes the most recent block deletion or Undo. This keybind can be used on up to 100 of your most recent block deletions, which persist through saves. |
| Shift + Drag | [Mass Select](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder/advanced-options#mass-select) | Allows you to select multiple blocks at a time by dragging your cursor over each of the blocks you wish to select. |
## Bulk Operations
In the [Command and Event Builder](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder/advanced-options#command-builder), you can select multiple blocks at once. This feature will allow you to move them, duplicate them, save them as a Block Template, and even delete them. To perform a Mass Select you can hold down the shift key, left click, and drag your cursor over the blocks you wish to select.
.gif)
There are 4 operations you can perform on mass-selected blocks. Below you can find detailed information on each operation and how to use it.
| Operation | How to Use | What it Does |
| --- | --- | --- |
| Deselect | Click the gray "Deselect" button at the bottom of the screen. | Removes the selection from the selected blocks, and the buttons from the bottom of the screen. |
| Save as Template | Click the red "Save as Template" button at the bottom of the screen. | Saves the selected blocks as a Block Template. This will also deselect the blocks. Check out the [#templates](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder/sharing-commands-and-events#templates) page for more info. |
| Duplicate Blocks | Click the gray "Duplicate Blocks" button at the bottom of the screen. | Creates an identical copy of the selected blocks to their right. This will also deselect the blocks. |
| Delete Blocks | Click the Delete key or Backspace key on your physical keyboard. | Removes the selected blocks from the command or event. This will also deselect the blocks. |
---
# Message Builder
Source: https://botghost.com/docs/custom-commands-and-events/message-builder
The Message Builder module allows you to create Discord messages and embeds visually without writing code. It provides a live preview, full embed configuration, and the ability to save completed messages as templates that can be reused throughout your bot. Messages built here follow Discordβs structure and limits, and the editor includes validation to help ensure the final result matches what will be sent.
The builder supports message content and up to ten embeds per message. Embeds can include titles, descriptions, fields, colors, images, thumbnails, and timestamps.
### Sending your messages
Messages created in the Message Builder can either be sent directly from the message builder page or you can save them as templates and use them inside commands and events. Templates can be loaded in the [Send or edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) action, allowing you to send or update messages directly through your bot. Once a template is loaded, its structure and embed configuration are applied automatically. Templates can be edited or overwritten at any time from the Message Builder.
For the full list of available message and embed inputs, check out [Message Content](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message#message-content).
---
# Card Studio
Source: https://botghost.com/docs/custom-commands-and-events/card-studio
Design image cards, like welcome cards, rank cards and profiles, and send them from any command or event.
Card Studio is where you design image cards: pictures with a member's name, avatar and anything else you add. Your bot draws the card and sends it in a message.
You can use cards in two places:
- The [Welcomer](https://botghost.com/docs/server-management/welcomer), for welcome, goodbye and boost cards.
- The **Make an Image Card** block, in any command or event.

*A card your bot sent*
> **Note:** **Make an Image Card** needs Premium in your own commands and events. Cards in the Welcomer are free.
## Send a card from a command
### Step 1: Add the block
Open your command in the builder. Under **Actions**, find **Make an Image Card** and drag it into your command.
### Step 2: Pick a design
Click the block to open its settings. Keep **Design it here** and pick a template, or press **Open Card Studio** to make your own.

- **A** **Design it here**: the design is kept in this block.
- **B** **Open Card Studio**: change anything on the card.
- **C** Templates. Search them, or pick a type like Welcome or Goodbye.
### Step 3: Choose whose card it is
Scroll down to **Whose card**. Pick who goes on the card: usually the member who used the command, or a member by their ID.

- **A** **Whose card**: whose avatar, name and member number go on the card.
- **B** **Save it as**: the name of the card. `card` gives you `{card}`.
- **C** **How to send it**: the block makes the picture, a message sends it.
### Step 4: Send it in a message
Add a **Send or Edit a Message** block after the card block. Put `{card}` in that message, either in an embed's **Image** field or on a line of its own.
Press **Copy {card}** in the block's settings to copy it.
> **Note:** Making two cards in one command? Give each one its own name under **Save it as**, like `rank` and `badge`. Then use `{rank}` and `{badge}`.
## Design a card
Press **Open Card Studio** to open the designer. Every change shows on the card straight away.

- **A** **Templates**: ready made designs to start from.
- **B** **Layers**: every piece of the card. Click one to change it, or press the eye to hide it.
- **C** **Add a layer**: text, an avatar, an image, a shape, a badge, a bar or a grid. Click one, or drag it onto the card.
- **D** The card. Drag pieces to move them. Double-click text to type on the card.
- **E** Settings for the layer you picked, like its text, font and colours.
- **F** **Send me a test**: your bot DMs you the card.
When you're done, press **Done** or click outside. Your changes are kept.
### Put member info on the card
Text layers can use variables, like `{user_name}` or `{member_number_ordinal}`. Under the text box, press **Add a variable** to see them all.
### Save your own templates
Made a design you like? Press **Your templates** at the top to save it, then use it on any other card.
## Your own pictures
Image and background layers can use a picture from a link on any plan. With Premium, you can also upload pictures from your computer.
| Plan | Pictures you can keep | Space | Uploads a day |
| --- | --- | --- | --- |
| Premium | 25 | 50 MB | 15 |
| Priority Hosting | 100 | 250 MB | 50 |
Each picture can be up to 8 MB. Delete pictures you don't need under **Your pictures** to make room.
---
# Actions
Source: https://botghost.com/docs/custom-commands-and-events/actions
These blocks are blue in color and are the heart of the command builder, as they define the behaviour of the bot. An action block can execute a wide range of actions such as sending messages, making API calls, managing the guild etc. By connecting action blocks together, you can create things like conversational flows that respond to user inputs and carry out specific tasks and more.
## Connecting Action Blocks
You can connect action blocks by following these simple steps:
### Mobile
Simply press the top circle on the action block to start the connection line, from here you can simply press the connection circle on the bottom of the block you wish to connect your action to, to complete the circuit and connect the blocks together.
.gif)
### Desktop/PC
Simply press and hold the top circle on the action block to start the connection line, from here you can simply drag the connection line to the connection circle on the bottom of the block you wish to connect your action to, to complete the circuit and connect the blocks together.
.gif)
## Helper Text
Helper text is a very useful tool if you are looking for a way to add notes to actions and conditions in your command or event builder.
.png)
Helper text can be enabled by pressing the "Add Helper Text" button. You can then enter your text, select a colour, an icon and choose on what side of the block the text will show.
.png)
## Actions List
| Action Type | Information |
| --- | --- |
| [message-actions](https://botghost.com/docs/custom-commands-and-events/actions/message-actions) | Message actions allow you to reply to an user's interaction. For example, you can use them when a command is used, an event has been triggered or a button / select menu has been clicked. |
| [custom-variable-actions](https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions) | You can use custom variable actions to update and assign data to your [custom variables](https://botghost.com/docs/custom-commands-and-events/data-storage). |
| [api-actions](https://botghost.com/docs/custom-commands-and-events/actions/api-actions) | API actions allow you to interact with external services and post / retrieve data. |
| [loop-actions](https://botghost.com/docs/custom-commands-and-events/actions/loop-actions) | Using loop actions, you can easily run a set of actions multiple times. |
| [voice-actions](https://botghost.com/docs/custom-commands-and-events/actions/voice-actions) | Voice actions allow you to run common actions such as joining a voice channel or muting an user. |
| [role-actions](https://botghost.com/docs/custom-commands-and-events/actions/role-actions) | With role actions you can update an user's role or create / update a given role. |
| [channel-actions](https://botghost.com/docs/custom-commands-and-events/actions/channel-actions) | Channel actions allow you to create a channel or update an existing one. |
| [thread-and-forum-actions](https://botghost.com/docs/custom-commands-and-events/actions/thread-and-forum-actions) | Thread actions allow you to create a thread or update an existing one. |
| [server-actions](https://botghost.com/docs/custom-commands-and-events/actions/server-actions) | With the help of those actions you can do general server actions such as updating an user's nickname, banning them from the server or creating a server invite. |
| [other-actions](https://botghost.com/docs/custom-commands-and-events/actions/other-actions) | This section contains miscellanous and more advanced actions, such as waiting before the next action, setting a command specific variable or manipulating some text using special functions. |
---
# Message Actions
Source: https://botghost.com/docs/custom-commands-and-events/actions/message-actions
The command builder offers multiple message actions. They allow you to send reply to the current interaction (command, button, select menu or even event trigger), send messages to a channel or a user or delete / update existing messages. Below you may find some general information about each block. Click on its name for more information.
| Block | Information |
| --- | --- |
| [send-or-edit-a-message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) | The Send or Edit a message allows you to send a fully customizable message as a response, to a channel or as a DM. You can also attach buttons and select menus to it. With this action you can even edit a message that was previously sent by the bot. |
| [edit-a-button-or-select-menu.md](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/edit-a-button-or-select-menu) | The Edit a Button or Select Menu action allows you to update one or more components (buttons or select menus) of a message you've previously sent with your command or event. |
| [send-a-form.md](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-a-form) | The send a form action allows you to send to the user who ran a command, clicked a button or a select menu a custom form (also known as modal) in which the user can fill some inputs. |
| [delete-a-message.md](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/delete-a-message) | The delete a message action allows you to delete a message or a reply. You can either select one that gets sent through the same command / event or provide a specific message ID. |
| [publish-a-message.md](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/publish-a-message) | The publish a message action allows you to publish messages sent in announcement channels given their ID. |
| [react-to-a-message.md](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/react-to-a-message) | This action allows you to react with a Discord or custom emoji to any message. |
| [pin-a-message.md](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/pin-a-message) | The pin a message action allows you to pin a message that has been sent with the same command / event. |
| [create-a-transcript.md](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/create-a-transcript) | With the create a transcript action you can create a powerful transcript of up to 1000 messages. |
---
# Send or Edit a Message
Source: https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message
.png)
The Send or Edit a Message action lets you send a message or edit an already existing message with content, embeds, or components.
## Message Builder
The Message Builder allows you to create a message for your bot to send when the action is ran. You can build it via a traditional message builder or by using the more flexible and customizable Components V2.
.png)
**Message Builder**
The message builder allows you to build a message with content, valid embeds, or components.
.png)
### Message Content
The message content is the plain text attached to your message, has a max of 2000 characters. It can contain mentions that will ping the user / role. However, if the [Response Type](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message#response-type) is set to a reply, no ping will be issued.
.png)
### Embeds
Embeds are a stylish way to show content with your bot. Below you may find information on each part of an embed.
.png)
.png)
#### Author
**Author**
The author text inside of your embed which appears at the top of your embed, has a limit of 256 characters.
**Author URL**
The link that users can press on the author text in order to be redirected to the URL.
**Author Icon URL**
The link that will display as the image next to the author, must be a valid URL of an image.
#### Basic Fields
.png)
**Title**
The title of your embed which appears as the largest text of all embed parts, has a limit of 256 characters.
**Description**
The main text of your embed which is in the center, has a limit of 4096 characters.
**URL**
The title URL for your embed, that users can press on the author text in order to be redirected to the URL.
#### Embed Color
.png)
**Picker**
The HEX color picker for your embed, you may insert a valid HEX code or select one using the small color menu.
**Color**
The decimal number for the color of your embed. You can use this if you want to use a variable as a color. When left blank, the color in the picker will be used.
#### Fields
Fields are a type of content you can add right below the description of your embed. You can add up to 25 fields per embed, and give each one a name and a value
.png)
> **Note:** Click "Add Field" in your embed's settings to add a new field. Below you may find a list of all settings you can use for your field.
**Name**
A title for your field. The maximum length is 256 characters.
**Value**
The value is basically the content to show inside the field. The max length is 1024 characters.
**Inline Field**
Enable this option to make the field appear inline with the previous one, instead of adding it below.
#### Images
.png)
**Image URL**
The URL for the image that will appear in the bottom of your embed.
**Thumbnail URL**
The URL for the image that will appear in the top right of your embed.
#### Footer
.png)
**Footer Text**
The text that will appear in the bottom of your embed, which has a limit of 2048 characters.
**Footer Icon URL**
The URL for the image that will appear in the bottom right of your embed, left of the footer text.
#### Time
.png)
**Timestamp**
The timestamp of your embed which will appear in the bottom next to your footer, you can select the time here with a menu.
**Timestamp Variable**
The timestamp variable of your embed which will appear in the bottom next to your footer, you can input a variable that is either ISO or UNIX in order to display a timestamp. You can use this if you want to use a variable as a timestamp, if you'd like to display the current time you can use the `{time_now_unix}` variable here.
#### Other
**Hide Embed**
Option to save embeds for later and not make them appear, input "true" in the text box in order to do this.
**Components V2**
Components V2 allows you to build a more structured and customizable message, allowing you to put embeds (which are named containers instead), plain content, attachments, buttons and select menus in the order you prefer.
Fields such as titles or footers do not exist in this version of the message builder, and are replaced by headers and subtexts respectively. Learn more [here](https://support.discord.com/hc/en-us/articles/210298617-Markdown-Text-101-Chat-Formatting-Bold-Italic-Underline).
.png)
#### Components
Messages are built with elements named "components". To add a component, simply drag it to the canvas in the position you wish it to appear, or select it from the suggested options. You can then configure it from the right sidebar.
There are various components, divided in 3 main sections:
| Type | Description |
| --- | --- |
| [Layout](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/layout) | Layout blocks, such as containers, define how other components should appear and how the message should look. |
| [Content](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/content) | Content components allow you to display actual information, such as text or attachments. |
| [Interactive](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/interactive) | Components that can be pressed by users: buttons and select menus |
.png)
### Response Type
The send or edit a message action offers multiple response types, which allow you to decide where and how your message should be sent. There are 4 categories of response types, all of them are listed and explained below.
**Reply**
| Response Type | Information |
| --- | --- |
| [#reply-to-the-command](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message#reply-to-the-command) | The message will simply reply to the command / event or the most recent interaction. |
| [#reply-to-a-specific-message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message#reply-to-a-specific-message) | The message will reply to a specific message and ping the author of the message it replies to. |
| [#send-the-message-to-the-channel-the-command-was-used-in](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message#send-the-message-to-the-channel-the-command-was-used-in) | The message will be sent to the channel where the command was used in, the event was triggered in or the last interaction was triggered in. |
---
### Reply to the command
The message will simply reply to the command / event or the most recent interaction.
.png)
---
### Reply to a specific message
The message will reply to a specific message and ping the author of the message it replies to.
.png)
#### Channel ID
Here you can set the ID of the channel where the message you're replying to is in. You can do this by pasting an ID directly from Discord (learn how [here](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID)) or using a variable that returns a channel ID. These can be easily added through the variable selector by clicking the **Clipboard** button.
#### Message ID
Here you can set the ID of the message the message will reply to. You can do this by pasting an ID directly from Discord (learn how [here](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID)) or using a variable that returns a message ID. These can be easily added through the variable selector by clicking the **Clipboard** button.
---
### Send the message to the channel the command was used in
The message will be sent to the channel where the command was used in, the event was triggered in or the last interaction was triggered in.
.png)
### Send the message in a new forum post
The message will be sent as a new forum post. From here, you can select a forum channel the command/event created from a block, select one manually, or input its channel ID. Then, give the forum post a title and optionally add some tags to it.
**Specific**
| Response Type | Information |
| --- | --- |
| [Send the message to a specific channel](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message#send-the-message-to-a-specific-channel) | The message will be sent to a specific channel from an ID of a channel. |
| [Send the message to a channel option](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message#send-the-message-to-a-channel-option) | The message will be sent to the selected channel in a [channel option](https://botghost.com/docs/custom-commands-and-events/options/channel-option). |
| [Send the message in a new forum post](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message#send-the-message-in-a-new-forum-post) | Send the message in a forum post. |
---
### Send the message to a specific channel
The message will be sent to a specific channel from an ID of a channel.
.png)
#### Channel ID
Here you can set the ID of the channel where the message will be sent to. You can do this by pasting an ID directly from Discord (learn how [here](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID)) or using a variable that returns a channel ID. These can be easily added through the variable selector by clicking the **Clipboard** button.
---
### Send the message to a channel option
The message will be sent to the selected channel in a [channel option](https://botghost.com/docs/custom-commands-and-events/options/channel-option).
.png)
#### Channel Option
The [channel option](https://botghost.com/docs/custom-commands-and-events/options/channel-option) of a text channel, such as `{option_channel}`. If you want to use a variable, use the [Send the message to a specific channel](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message#send-the-message-to-a-specific-channel) response type
---
### Send the message in a new forum post
The message will be sent to a new form post created in the specified forum channel.
.png)
#### Forum ID
Here you can set the ID of the forum that the post will be created in. You can do this by pasting an ID directly from Discord (learn how [here](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID)) or using a [variable](https://botghost.com/docs/custom-commands-and-events/variables) that returns a channel ID. These can be easily added through the variable selector by clicking the Clipboard button.
#### Post Title
The title for the new forum post. You can use plain text or variables that return plain text here.
**Direct Message**
| Response Type | Information |
| --- | --- |
| [#direct-message-the-user-who-used-the-command](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message#direct-message-the-user-who-used-the-command) | The message will be sent directly to the user who used the command, triggered the event, pressed a button, or selected a menu. |
| [#direct-message-a-user-option](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message#direct-message-a-user-option) | The message will be sent directly to the user who was selected in a [user option](https://botghost.com/docs/custom-commands-and-events/options/user-option). |
| [#direct-message-a-specific-user](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message#direct-message-a-specific-user) | The message will be sent directly to the specified user ID. |
---
### Direct message the user who used the command
The message will be sent directly to the user who used the command, triggered the event, pressed a button, or selected a menu.
.png)
---
### Direct message a user option
The message will be sent directly to the user who was selected in a [user option](https://botghost.com/docs/custom-commands-and-events/options/user-option).
.png)
#### User Option
The user option that will be directly message, such as `{user_option}`.
.png)
---
### Direct message a specific user
The message will be sent directly to the specified user ID.
.png)
#### DM User ID
The user ID of a member inside of your server that will be getting the DM.
.png)
**Edit**
| Response Type | Information |
| --- | --- |
| [#edit-a-message-sent-by-another-action](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message#edit-a-message-sent-by-another-action) | The message you created will be the edited version of a previous sent message in your command or event's tree. |
| [#edit-a-specific-message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message#edit-a-specific-message) | The message you created will edit another previously sent message with a channel and message ID. |
---
### Edit a message sent by another action
The message you created will be the edited version of a previous sent message in your command or event's tree.
.png)
#### Response Action
The message action from your tree that will be edited to the message you have setup.
.png)
#### Keep Components
This option allows you to keep the buttons or select menu options of the original message you're editing.
.png)
---
### Edit a specific message
The message you created will edit another previously sent message with a channel and message ID.
.png)
#### Channel ID
Here you can set the ID of the channel where the message you're replying to is in. You can do this by pasting an ID directly from Discord (learn how [here](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID)) or using a variable that returns a channel ID. These can be easily added through the variable selector by clicking the **Clipboard** button.
#### Message ID
Here you can set the ID of the message the message will reply to. You can do this by pasting an ID directly from Discord (learn how [here](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID)) or using a variable that returns a message ID. These can be easily added through the variable selector by clicking the **Clipboard** button.
.png)
#### Keep Components
This option allows you to keep the buttons or select menu options of the original message you're editing.
.png)
## Optional Variable
You can also create your own variable that can be used anywhere in the command to get the ID of the message sent by the action. This is useful when using [Send an API Request](https://botghost.com/docs/custom-commands-and-events/actions/api-actions/send-an-api-request) in your command / event and you need the ID of the message. Make sure that the name of the variable does not correspond to the name of a default variable or of an another action.
You can copy the variable by clicking the clipboard icon in the section right below the optional variable field.
.png)
## Allowed Mentions
In this section you can control which mentions are allowed to ping users. By default, all mentions have been allowed. If you want to change this, press the "Configure Mentionables" button to configure it. This setting is optional.
.png)
**Simple Mode**
Simple mode is shown by default when you press the "Configure Mentionables" button above.
.png)
### Allowed Mention Types
#### @everyone and @here
This toggle will enable or disable the @everyone and @here mentions for the message.
#### Role Mentions
The role mentions toggle will enable or disable @role mentions for the message.
#### User Mentions
This toggle will enable or disable the @user mentions in the message.
**Advanced Mode**
Advanced mode can be accessed by selecting it in the Configuration Mode.
.png)
### Specific Mentionables
#### Allowed role IDs
In this field you can enter role IDs or variables that are allowed to be pinged in the message. Seperate each with a comma (`,`).
#### Allowed user IDs
In this field you can enter user IDs or variables that are allowed to be pinged in the message. Seperate each with a comma (`,`).
#### Mention Replied User
Enabling this option will allow the user the bot is replying to to be pinged.
## Adding Components
> **Note:** This feature is only available while using the Message Builder mode. If you wish to add buttons or menus while using the Components V2 mode, add an [Action Row](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/layout#action-row) and a [component](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/interactive) (button or select menu) through the [Components V2 Builder](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message#components-v2).
In order to add a button or select menu to your message, you must click on either of the buttons on your "Send or Edit a Message" action block.
### Adding a Button
If you would like to add a button, you must press the button in the bottom left of your block with the plus sign titled "Button". After you press this, a button will be added to your message and will be attached to it. For more information about buttons, check out the [Button](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/interactive/button) page.
.png)
### Adding a Select Menu
If you would like to add a select menu, you must press the button in the bottom right of your block with the plus sign titled "Menu". After you press this, a select menu will be added to your message and will be attached to it. For more information about Select Menus, check out the [Select Menu](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/interactive/select-menu) page.
.png)
## Requirements and Limits
Inside of your message, there are requirements and limits that Discord has in place. Your message must follow these requirements and limits in order for it to function properly.
**Message Builder**
### General
- Your message must include valid message content, an embed, or a component in order for your message to send.
### Message
- You may only have up to 10 embeds on your message.
- The total number of characters in the title, description, field.name, field.value, footer.text, and author.name fields across all embeds in a message must not go above 6000 characters.
- When adding an embed, at least one of the following fields is required: title, description, or author.
- If you have a footer icon, you must have footer text.
- If you have a author icon, you must have a author text.
- Each embed field requires a title and some content.
- Single spaces cannot bypass any of the requirements listed above.
### Components
- You can only have up to 5 action rows.
- You can only have up to 5 buttons per row.
- You can only have 1 select menu per row.
- You can't have a select menu and a button in the same row.
**Components V2**
### General
- All messages require at least one component
- You can add up to 40 components
### Layout
- Containers must contain at least 1 component, which can be anything but another container.
- Sections must contain from 1 to 3 text containers.
- Sections must contain one accessory, which can be a image or a button.
- You can have up to 5 action rows.
- Action rows can contain one or more buttons or a select menu, but not both at the same time.
### Content
- Text display can contain up to 4000 characters.
- You can add up to 10 images to a media gallery.
### Interactive
- You can add up to 5 buttons to an action row.
- You can only add one select menu to an action row.
---
# Layout
Source: https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/layout
Layout components allow you to adjust the layout of a Components V2 message. There are four types of layout components:
| Component | Description |
| --- | --- |
| [Container](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/layout#container) | Root container for components. |
| [Section](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/layout#section) | Text with required accessory (button/image). |
| [Separator](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/layout#separator) | Visual divider between content. |
| [Action row](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/layout#action-row) | Container for buttons (max 5) |
---
## Container
.png)
Containers can be used to create a container around a collection of components. They can optionally have an accent color set or be a spoiler.
.png)
### Accent Color
Optionally enter the hex color of the accent bar. Any variables that return a hex color can be used here.
.png)
### Spoiler
If this value is set to `true`, the container will appear as a spoiler (blurred out). Defaults to false. Variables can be used here.
.png)
---
## Section
.png)
A section is a component that allows you to contextually associate up to three text components with either an thumbnail image or a button.
.png)
---
## Separator
.png)
Separators can be used to visually separate two components with vertical padding and an optional divider line.
.png)
### Spacing Size
Separators can have either small or large spacing size. Set this to `SMALL` to create a compact visual break. Set it to `LARGE` to create a more prominent divider. Variables that return either `SMALL` or `LARGE` can be used here. Defaults to small spacing.
.png)
### Show Divider Line
Set this to `true` to create a small divider line in between sections. Variables that return either `true` or `false` can be used here. Defaults to false.
.png)
---
## Action Row
.png)
Action rows are containers for components and can contain up to five buttons or a single select menu. A maximum of five can be present in a single message.
.png)
---
# Content
Source: https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/content
Content components define what appears visually inside your message - including text, media, and files.
They represent the main body of your message and are used to display information to users.
### Component Overview
| Component | Description |
| --- | --- |
| [Text Display](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/content#text-display) | Markdown text content |
| [Media Gallery](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/content#media-gallery) | Multiple images in a grid layout |
| [File](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/content#file) | Display for attached files |
---
## Text Display
.png)
Text Displays are used to show formatted text within a message. They support Discord Markdown, mentions, emojis, and variables.
.png)
### Content
Enter the text to display. Supports Markdown formatting and variables.
.png)
### Character Limit
The character limit for a Text Display is 4000 characters.
---
## Media Gallery
.png)
The Media Gallery component lets you display **multiple images** in a grid layout, ideal for showing collections, previews, or thumbnails.
.png)
### **Images**
Add one or more image URLs or variables returning image links.
.png)
### Image Description
Optional text shown as the image description or alternative text. Supports variables.
.png)
### Spoiler
If this value is set to `true`, the Images will appear as a spoiler (blurred until revealed). Defaults to false, Variables can be used here.
.png)
### Image Limit
The Image Limit for a Media Gallery is 10 images.
---
## File
.png)
The File component lets you attach files to a message, ideal for sharing documents, archives, or other downloadable content.
.png)
### File
Provide a direct file URL or upload a file. Variables that return a file URL can also be used.
.png)
### Spoiler
If this value is set to `true`, the File will appear as a spoiler (blurred until revealed). Defaults to false, Variables can be used here.
.png)
### Storage
Uploaded files are securely stored on **BotGhostβs S3 servers**.
### File Information
Discord automatically detects and displays the file type.
The file name and size are extracted automatically.
---
# Interactive
Source: https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/interactive
Interactive components let users interact directly with a message. This category includes [Buttons](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) and [Select Menu](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/interactive/select-menu), which allow users to trigger actions or make selections.
### Component Overview
| Component | Description |
| --- | --- |
| [Button](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/interactive/button) | Clickable element that triggers an action or opens a link. |
| [Select Menu](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/interactive/select-menu) | Dropdown menu for selecting one or more options. |
Both components are automatically wrapped in an **Action Row** when using Components V2 and have their own pages with detailed settings.
Buttons and select menus are created directly inside the builder:
- Dropping one onto the canvas automatically creates an Action Row
- Each Action Row can contain up to 5 buttons or 1 select menu (not both)
- Buttons can also be added as accessories inside sections
- The builder automatically validates and prevents invalid configurations
---
# Button
Source: https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/interactive/button
.png)
Inside of the Send or Edit a Message block, you can add buttons onto your message.
## Button Text
Assign some text that will show in the button.
.png)
## Emoji ID
The emoji that will appear on the button on your message, you must provide a valid emoji id or a unicode formatted emoji for default discord emojis. This is an optional setting.
.png)
## Button Style
The style of your button, you can choose between 5 types of styles. The Link button allows you to redirect users to a custom link when the button is clicked.
.png)
## Custom Button Style
You can also use variables to determine the color of your button. Set the value to the color "Name" in the table below. Leave empty to follow the button style selected in the [Button Style](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/interactive/button#button-style) setting.
.png)
**Action Button**
Below you may find some information on clickable buttons and their settings. The table below shows a list of all available button styles and their name, which can be used in the [Custom Button Style](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/interactive/button#custom-button-style) setting.
| Color | Name | Example |
| --- | --- | --- |
| Blue | `PRIMARY` | .png) |
| Grey | `SECONDARY` | .png) |
| Red | `DANGER` | .png) |
| Green | `SUCCESS` | .png) |
## Show Button Replies
The option to decide if interaction replies to the button are public as in visible to all users, or hidden and only can be seen by the user who caused the reply.
.png)
**Link Button**
Link buttons redirect to a custom link when clicked. They can only be grey.
.png)
## Button URL
The URL that users will be redirected to if they click on the button, this only appears if you have enabled your button to be link type. Variables work here, they must provide a valid URL.
.png)
## **Disable Button by Default**
This option allows you to decide if your button is disabled by default on the message being sent, set the text to `true` if you would like it to be disabled. This is an optional setting and defaults to `false`.
.png)
## Enable Component Ordering
Enable this option to order components by assigning each button a row and a weight.
### Row
The row that the button will be placed on, insert 1 to have the button placed on the first row of buttons. A message can have up to 5 rows of either a select menu or 1 to 5 buttons, which is also known as lines of components.
.png)
### Position Weight
The position that the button will be ordered in on the row it was placed inside of. Buttons that have a higher weight, meaning a higher number, will be placed first, before other buttons with lower weights. If you insert `-1`, this button will not be added to your message.
.png)
## Remove Button
> **Note:** This setting is only available in the [Edit a Button or Select Menu](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/edit-a-button-or-select-menu) action block.
The Remove Button setting allows you to remove the button from the message when the setting is set to `true`. Once removed, it can't be brought back.
.png)
---
# Select Menu
Source: https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/interactive/select-menu
.png)
Inside of the Send or Edit a Message block, you are able to add select menus to your message.
## Accessing Select Options
In order to access the options that were selected in your message, there are a few variables that you can utilize.
| Variable | Information |
| --- | --- |
| `{selected_option}` | Returns the option that was selected, only appears when you have "Single Select" enabled. Example Return: `17392374` |
| `{selected_options}` | Returns the options that were selected in an array format, only appears when you have "Multi Select" enabled. Example Return: `123,852,187` |
| `{selected_options.length}` | Returns the length of options that were selected, only appears when you have "Multi Select" enabled. |
| Custom variable | The custom variable you setup in the [Custom Variable Name](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/interactive/select-menu#custom-variable-name) section. It works just like `{selected_option}` (or `{selected_options}` when multi select is enabled. |
## Placeholder
The placeholder text that will appear on your menu without any options being selected. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) are supported here.
.png)
## Menu Type
The type of select menu that will appear on your message. All Discord's select menus are available.
.png)
**Basic (Text)**
Your menu will have simple text options which you can customize the label, description, emoji, and more.
.png)
Each basic select menu allows you to add up to 25 options. Here you can add and customize options of your select menu. Variables are supported in all fields.
.png)
## Label
The text that will be displayed on the option in your menu.
.png)
## Description
Additional information about your option that will appear on it's description once a user has opened the menu.
.png)
## Value
The value that is attached to this option, which will be used while accessing the option(s) that were selected on your option with the menu's variable. This is an optional setting, if no value is set then your option's label will be used as it's value.
.png)
## Emoji ID
The emoji that will appear on your menu's specific option, you must provide a valid emoji id or a unicode formatted emoji for default discord emojis. This is an optional setting.
.png)
## Hide Option
The option to make this specific option of your menu hidden or not, meaning it will not appear on your menu. Input `true` in order to hide the option or input `false` to show this option. If no value is set here, it will appear by default.
.png)
**Role**
Your menu will have roles as selectable options, you may setup roles that are selected by default and more.
.png)
## Default Selected Roles
Here you may select roles that you would like to appear by default on your menu.
.png)
## Default Selected Additional Roles
Here you may input role IDs or variables that you would like to appear by default on your menu. Separate each role ID or variable by commas in order to format successfully.
.png)
**Channel**
Your menu will have channels as selected options, you may setup channels that are selected by default and more.
.png)
## Default Selected Channels
Here you may select the channels that will appear by default on your menu.
.png)
## Default Selected Additional Channels
Here you may input channel IDs or variables that will appear by default on your menu. Separate each value with commas in order to format successfully.
.png)
## Default Channel Types
Here you may select the channel types that will appear on your menu only.
.png)
## Default Additional Channel Types
Here you may input channel type integers or variables that will appear on your menu only. For a list of channel type integers, see the [Discord API documentation](https://discord.com/developers/docs/resources/channel#channel-object-channel-types).
.png)
**User**
Your menu will have users in your server as selected options, you may setup server members that are selected by default and more.
.png)
## Default Selected Users
Here you may input user IDs or variables that will appear as selected users on your menu by default.
.png)
**Mentionable**
Your menu will have roles and users in your server as selected options, you may setup server roles and members that are selected by default and more.
.png)
## Default Selected Roles
Here you may select roles that you would like to appear by default on your menu.
.png)
## Default Selected Additional Roles
Here you may input role IDs or variables that you would like to appear by default on your menu. Separate each role ID or variable by commas in order to format successfully.
.png)
## Default Selected Users
Here you may input user IDs or variables that will appear as selected users on your menu by default.
.png)
## Enable Multiselect
This option allows users to select more than 1 option on your menu.
**Single Select**
.png)
If this option is selected, users may only select 1 option at a time on your menu.
.png)
**Multi Select**
.png)
If this option is selected, users may select as many options as you allow them to.
.png)
## Minimum Options
The minimum amount of options users can select at a time. Input must be greater than or equal to 0.
.png)
## Maximum Options
The maximum amount of options users can select at a time. The maximum value for this setting is 25.
## Custom Variable Name
Here you can assign a custom variable name to access the chosen option(s) of your menu. If you donβt specify one, the default variable `{selected_option}` will be used. This is an optional setting.
.png)
## Disable Select Menu by Default
This field allows you to decide whether your select menu should be disabled by default.. Set the value to `true` if you'd like to disable your menu by default. This is an optional setting and defaults to `false` when left blank.
.png)
## Show Select Menu Replies
The option to show or hide replies to the menu of your message. If you select this to "Hide Replies", only the user who used the menu can see replies to the menu. If selected to "Show Replies", replies to your menu will be able to be seen by everyone.
.png)
## Enable Component Ordering
Enabled this option to order select menus in a specific row.
### Row
The row that the menu will be placed on, insert 1 to have the menu placed on the first row of components. A message can have up to 5 rows of either a select menu or 1 to 5 buttons, which is also known as lines of components.
.png)
### Position Weight
The position that the menu will be ordered in on the row it was placed inside of. Menus that have a higher weight, meaning a higher number, will be placed first before other menus with lower weights. If you insert `-1`, this menu will not be added to your message.
.png)
## Remove Menu
> **Note:** This setting is only available in the [Edit a Button or Select Menu](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/edit-a-button-or-select-menu) action block.
The Remove Menu setting allows you to remove the select menu from the message when the setting is set to `true`. Once removed, it can't be brought back.
.png)
---
# Edit a Button or Select Menu
Source: https://botghost.com/docs/custom-commands-and-events/actions/message-actions/edit-a-button-or-select-menu
.png)
The Edit a Button or Select Menu block allows you to modify a button or select menu sent in your command or event after it has originally been sent.
## Target Message
Inside of this option, you may select the message block that you would like to edit the components of from the dropdown. To easily find the action that you would like to edit, it's recommended to label the original block with the **Block Label** option.
.png)
## Available Components
In this section, all components that you are allowed to edit will appear here. To select the component to edit, simply click on the component's option as seen in the image below. Once you select a component, the option will be highlighted in red. To unselect a component, simply click it again. Options colored in gray will not get edited.
.png)
## Selected Components
In this section, you may adjust the settings for each component that you would like to edit. To select a certain component to edit, simply click on the dropdown arrow to view all the settings of that edited version of the component. In order to remove an edited component, simply click the "Remove" text highlighted in red. Refer to the Send or Edit a Message's [Button](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/interactive/button) and [Select Menu](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message/interactive/select-menu) documentation pages to learn about all the settings that you can modify.
> **Tip:** Fields you leave empty will remain unchanged when editing the component.
.png)
---
# Send a Form
Source: https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-a-form
The send a form action sends a form or modal to a user and awaits their response. You can add up to 5 inputs to a form and use the responses to these inputs in other actions and conditions.
## Send a Form Connection Requirements
Form actions must **be the first reply to an interaction.** An interaction occurs when:
- A command is used
- A button is pressed
- A select menu option is selected
> **Note:** Sending a message to a specific channel does not count as a reply.
## Form Name
The form name serves as a variable to access the responses the user enters after they submit the form. BotGhost uses dot notation to access the individual responses to the inputs of the form. The variable always follows the format of the form name followed by the input variable.
.png)
For example, if you named your form **my-form** and had an input with the variable of **age-input**, you could access the response in other actions and conditions by using the variable **{my-form.age-input}**.
## Form Builder
Clicking the Form Builder button after setting a form name opens up the BotGhost form builder. From here you can add up to 5 inputs to your form and configure each input individually. Any changes you make will be automatically reflected in the Form Preview to give you an idea what your form will look like in Discord.
.png)
The form builder comes preloaded with one input by default.
### Form Title
The form title is the header text of the form. This is displayed to users at the top of the form. All variables and options can be used.
.png)
.png)
### Adding Form Fields
Form fields are the individual inputs of the form. To add an input, click the **Add Field** button. You can have up to 5 inputs per form.
.png)
### Configuring Form Fields
Each field has 8 configurable options. Only the input label, input type and variable name are required.
#### Input Label
The input label is the text above the actual input of the field. All variables and options can be used in this field. This field is required.
.png)
#### Placeholder
The placeholder is the background text of the input when the input is blank. All variables and options can be used in this field.
.png)
#### Minimum Length
The minimum length is the minimum number of characters that the user is required to input into this field. Ensure that the minimum length is not higher than the maximum length of the field.
#### Maximum Length
The maximum length is the maximum number of characters that the user is able to input into this field. Ensure that the minimum length is not higher than the maximum length of the field.
#### Input Style
There are two input styles to choose from, either a short input or a long input. Short inputs are simple text boxes while a long input is a larger text area. You can see the size difference in the preview after changing the style.
.png)
*A Short Input*
.png)
*A long input*
#### Required
The required option toggles whether or not the user must input an answer for this field. If the field is set to required, the user will not be able to submit the form without providing an answer.
.png)
#### Default Value
The default value is the prefilled value of an input. If you set a default value when the user is shown the form that value will be prefilled for that field.
.png)
#### Variable Name
The variable name is how the value inputted by the user for that field can be accessed and used in other actions and conditions. This value is used with the form name in a variable with dot notation. After setting a variable name, you will see the associated variable to get the value of that field.
.png)
.png)
*A variable name of age and a form name of my-form.*
## Using Form Responses
After completing all the required fields for your form a green check mark will appear showing that the form is complete.
.png)
You can use the values submitted by the user by combining the form name with the variable name of the inputs. For example, if you had a form named **my-form** and an input with the variable name **age** you can access this response by using the variable **{my-form.age}.**
You can also see a list of all the input variables below the Form builder once you have finished configuring the required settings for your form.
.png)
These values will be specific to your form and will change for every form.
---
# Delete a Message
Source: https://botghost.com/docs/custom-commands-and-events/actions/message-actions/delete-a-message
When triggered, the Delete a Message action deletes any message in a Discord server. This message can either be a message associated with the command or event it is used in, or set by its channel and message ID. All variables and options can be used in the channel and message ID fields.
## Delete by Message ID or another Action
In the Delete a Message action, you have the choice for the message to be from another action, or set by its message ID.
**Message ID**
.png)
### Channel ID
Here you can set the ID of the channel the message you're deleting is in. You can do this by pasting an ID directly from Discord (learn how [here](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID)) or using a variable that returns a channel ID. These can be easily added through the variable selector by clicking the **Clipboard** button.
### Message ID
Here you can set the ID of message you're deleting. You can do this by pasting an ID directly from Discord (learn how [here](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID)) or using a variable that returns a message ID. These can be easily added through the variable selector by clicking the **Clipboard** button.
**Another Action**
.png)
### Response Type
In this section, you can manage which message the bot will delete. You can select from a dropdown that will display the bot's messages, as well as any related to the event, if applicable. The selected message will be highlighted in red.
.png)
---
Below is an example of a simple command that sends an [Embed Reply](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/embed-reply), uses [Wait before running another action](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/wait-before-running-another-action) to wait 1 second, and deletes the message.
---
# Publish a Message
Source: https://botghost.com/docs/custom-commands-and-events/actions/message-actions/publish-a-message
> **Warning:** This feature is only available in [announcements channels](https://support.discord.com/hc/en-us/articles/360032008192-Announcement-Channels).
When triggered, the Publish a Message action crossposts, or publishes, a message across other servers and channels that follow its channel. This message can be set by its channel and message ID. All variables and options can be used in the channel and message ID fields.
.png)
## Channel ID
Here you can set the ID of the channel the message you're publishing is in. You can do this by pasting an ID directly from Discord (learn how [here](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID)) or using a variable that returns a channel ID. These can be easily added through the variable selector by clicking the **Clipboard** button.
## Message ID
Here you can set the ID of message you're publishing. You can do this by pasting an ID directly from Discord (learn how [here](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID)) or using a variable that returns a message ID. These can be easily added through the variable selector by clicking the **Clipboard** button.
---
Below is an example of a simple command that uses [Send a message to a channel](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-to-a-channel)and publishes the message.
---
# React to a Message
Source: https://botghost.com/docs/custom-commands-and-events/actions/message-actions/react-to-a-message
.png)
This action block will react with an emoji to any message in the builder or a specific message.
## Target Message
From this dropdown you can select what type of message the block should target in order to react to.
.png)
**Message sent by another action**
If this type is chosen then you may select a block from the builder to be targeted for the reaction.
## Response Action
Pick the message action you want reactions to be added to from this menu.
.png)
**Specific message ID**
When this type is selected, it will allow you to choose a specific message to add a reaction to in your discord server by specifying the IDs.
### Channel ID
In this field is where you input the channel ID of where the message is located to target it. This field also only accepts a plain channel ID with no extra symbols or spaces / [variables](https://botghost.com/docs/custom-commands-and-events/variables).
.png)
### Message ID
In this field is where you input the message ID of the message you want to react to. This field also only accepts a plain message ID or a [variable](https://botghost.com/docs/custom-commands-and-events/variables) that contains one.
.png)
## Reactions
In this section is where you can choose and apply which reactions will be added to the targeted message. Click the "+" icon to add the reactions. This field only allows you to add default emojis.
.png)
## Additional Reactions
Since you can't pick custom emojis from the [Reactions](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/react-to-a-message#reactions) field, this input allows you to add custom reactions to the message. Separate the reactions with commas and you can learn more about how to input a custom emoji [here](https://botghost.com/docs/getting-started/standard-practices/advanced-practices#how-can-i-get-a-custom-emojis-id).
.png)
---
# Pin a Message
Source: https://botghost.com/docs/custom-commands-and-events/actions/message-actions/pin-a-message
When triggered, the Pin a Message action pins a message associated with the command or event it is used in. This will also trigger a system message in the channel showing that a message has been pinned.
## Response Action
In this section, you can manage which message the bot will pin. You can select from a dropdown that will display the bot's messages, as well as any related to the event, if applicable. The selected message will be highlighted in red.
.png)
---
Below is an example of a simple command that sends a [Plain Text Reply](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/plain-text-reply) and pins it.
.png)
---
# Create a Transcript
Source: https://botghost.com/docs/custom-commands-and-events/actions/message-actions/create-a-transcript
.png)
The create transcript action lets you create and view a transcript containing up to 1000 messages. You can review all transcripts you have created in the [trancripts module](https://dashboard.botghost.com/dashboard/transcripts).
## Settings
### Variable Name
In the variable field you can enter the variable that you want to use to access information about the transcript.
.png)
### Target Channel
The target channel is the channel that you will get the transcript from.
**Current Channel**
If you wish to get a transcript of the channel the command was used in, select "Current Channel" in the Target Channel field.
.png)
**Channel ID**
If you wish to get a transcript of a specific channel, select "Channel ID" in the Target Channel field.
#### Channel ID
In this field you can enter the ID of the channel you want to get the transcript of. You can use variables in this field.
.png)
### Transcript Name
This will be the name of your transcript. It will be shown on the top of your channel's transcript.
.png)
### Tag
The tag setting is an optional field where you can enter a tag to easily sort out your transcripts.
.png)
### Message limit
In this setting, you can enter how many messages you want to include in your channel transcript. It can be as less as 1 and as much as 1000.
.png)
### Bot Messages
In this menu you can select whether or not you want the transcript to ignore bot messages. If you choose to ignore bot messages, they will not be shown in the transcript.
.png)
### Data Range Filter
When you enable this toggle, you will be able to choose a date range from when you want to transcript messages. Messages before and after will be ignored.
.png)
### Theme
In the theme field you can set up how you want the transcript to look.
**Simple Theme**
The simple theme can be accessed by selecting "Simple Theme" in the Theme field.
.png)
#### Brand Name
In this field you can optionally enter your brand's (or bot's) name. This will be shown at the top of the transcript.
#### Primary Color
Here you can enter what color you want to primarily use.
#### Density
Here you can select the spaces between messages in the transcript.
**Discord Theme**
The Discord theme can be accessed by selecting "Discord Theme" in the Theme field.
.png)
### Password Protection
If you wish, you can protect your transcript with a password. This way, only people that know this password can review the transcript.
.png)
## Variables
This block comes with a few variables that you can use:
.png)
| Variable | Details |
| --- | --- |
| `{transcript}` | This variable is used to access the URL link to your transcript. |
| `{transcript.url}` | This variable is used to access the URL link to your transcript. |
| `{transcript.download_url}` | This variable will return a link to download the transcript. |
| `{transcript.raw_url}` | When used, this variable will return an URL that can be used as an attachment for messages. |
| `{transcript.id}` | This variable will return the ID of the transcript. |
| `{transcript.message_count}` | When used, this variable returns the count of messages in the transcript. |
| `{transcript.name}` | This variable will return the name of your transcript. |
| `{transcript.channel_id}` | This variable is used to access the ID of the channel where the transcript has been made. |
| `{transcript.guild_id}` | This variable is used to access the ID of the server where the transcript has been made. |
---
# Custom Variable Actions
Source: https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions
The command builder offers multiple custom variable actions. They allow you to store and manage already stored information. Below you may find some general information about each block. Click on its name for more information.
| Block | Information |
| --- | --- |
| [set-variable.md](https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions/set-variable) | The set variable action allows you to set or change the value of a custom variable by using a preset string, variables, or a combination of both. |
| [run-equation-on-variable.md](https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions/run-equation-on-variable) | The run equation on variable action allows you to modify the value of a custom variable by applying a numerical equation to the current value. |
| [delete-variable.md](https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions/delete-variable) | The delete variable action allows you to reset the value of a custom variable back to its default value. |
---
# Set Variable
Source: https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions/set-variable
The Set Variable action when triggered sets or changes the value of any custom variable. It can be referenced in any action or condition throughout your bot's commands and events. All variables and options can be used in the content of the value.
## Custom Variable
In this section, you can manage which variable the bot will set. You can select from a dropdown that will display the bot's variables. Variables on this list can be added, edited, and removed using the [Data Storage](https://botghost.com/docs/custom-commands-and-events/data-storage) module.
## Targets
When using the Run Equation on Variable action on a user or channel variable, a Targets section will be displayed. This will allow you to set the user or channel to set the variable for.
### User Target
> **Note:** User Target only appears for user variables.
The Set Variable action has three options that change to whom the variable of the action is stored. Below you can find detailed information about each option and how it can be used.
.png)
**User who used the command**
By selecting this option your Variable will be stored to the user who used the most recent interaction; for example, the most recent button press, select menu choice, command run or the user who triggered the custom event.
**User option**
In commands, by selecting this option your Variable will be stored to a user selected in a user option.
.png)
### User Option
Here you can set the option variable for the [User option](https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions/set-variable#user-option) (purple blocks) you are using. These can be easily added through the variable selector by clicking the **Clipboard** button.
**User ID**
By selecting this option your Variable will be stored to a user specified via their user ID.
.png)
### User ID
Here you can set the ID of the user to set a variable for. You can do this by pasting an ID directly from Discord (learn how [here](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID#h_01HRSTXPS5H5D7JBY2QKKPVKNA)) or using a variable that returns a user ID. These can be easily added through the variable selector by clicking the **Clipboard** button.
### Channel Target
> **Note:** Channel Target only appears for channel variables.
The Set Variable action has two options that change to which channel the variable of the action is stored. Below you can find detailed information about each option and how it can be used.
.png)
**Specific channel or variable**
By selecting this option your Variable will be stored to a channel specified via its ID.
.png)
### Channel ID or Variable
Here you can set the ID of the channel to set a variable for. You can do this by pasting an ID directly from Discord (learn how [here](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID#h_01HRSTXPS5H5D7JBY2QKKPVKNA)) or using a variable that returns a channel ID. These can be easily added through the variable selector by clicking the **Clipboard** button.
**Channel the command was used in**
By selecting this option your Variable will be stored to the channel the most recent interaction was used in; for example, the most recent button press, select menu choice, command run or the channel of the custom event.
### Server Target
> **Note:** Server Target does not appear for global variables.
You can optionally target a specific server with the Set Variable action. If you enter a server ID in this field, the variable will be set for that server.
.png)
---
Some Variable Types will display differently than others. Below you may find some general information about each type. Click on its name for more information on setting it.
| Variable Type | Information |
| --- | --- |
| [Text Variables](https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions/set-variable#text-variables) | A text variable stores a string of text for a server or the bot. |
| [Number Variables](https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions/set-variable#number-variables) | A number variable stores a number for a server or the bot. |
| [Collection Variables](https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions/set-variable#collection-variables) | A collection variable stores multiple text values as an array. These arrays can be managed by their values and the positions of values. |
| [Object Variables](https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions/set-variable#object-variables) | An object variable stores a string of text by setting key value pairs. These strings can be accessed by dot notations. |
## Text Variables
A text variable stores a string of text for a server or the bot.
### Value
The value of the action is the actual message that the bot should store when the action is triggered. You can use any variable or option in the content of this value. These can be easily added through the variable selector by clicking the **Clipboard** button.
.png)
## Number Variables
A number variable stores a number for a server or the bot.
### Value
The value of the action is the actual number that the bot should store when the action is triggered. You can use any variable or option in the content of this value. These can be easily added through the variable selector by clicking the **Clipboard** button.
.png)
## Collection Variables
> **Note:** Collections start at position 0.
A collection variable stores multiple values as an array. These arrays can be managed by their values and the positions of values.
### Collection Operation
The manipulation type with the provided 'Custom Variable' field. There are several operations to choose from. Below you can find detailed information about each operation and how it can be used.
**Push value to front**
The Push value to front operation allows you to add a value at the first position, `0`, of a collection. This will increase the position of each value ahead of it by 1.
### Value
The value of the action is the actual message or number that the bot should store when the action is triggered. You can use any variable or option in the content of this value. These can be easily added through the variable selector by clicking the **Clipboard** button.
.png)
### Examples
| Before | Value | After |
| --- | --- | --- |
| `[Value 0,Value 1]` | `Hello` | `[Hello,Value 0,Value 1]` |
| `[Hello,Value 0,Value 1]` | `{user_name}` | `[User,Hello,Value 0,Value 1]` |
| `[User,Hello,Value 0,Value 1]` | `I was stored from {channel_name}` | `[I was stored from general,User,Hello,Value 0,Value 1]` |
**Push value to end**
The Push value to end operation allows you to add a value at the last position of a collection.
### Value
The value of the action is the actual message or number that the bot should store when the action is triggered. You can use any variable or option in the content of this value. These can be easily added through the variable selector by clicking the **Clipboard** button.
.png)
### Examples
| Before | Value | After |
| --- | --- | --- |
| `[Value 0,Value 1]` | `Hello` | `[Value 0,Value 1,Hello]` |
| `[Value 0,Value 1,Hello]` | `{user_name}` | `[Value 0,Value 1,Hello,User]` |
| `[Value 0,Value 1,Hello,User]` | `I was stored from {channel_name}` | `[Value 0,Value 1,Hello,User,I was stored from general]` |
**Remove first value**
The Remove first value operation allows you to remove a value at the first position, `0`, of a collection. This will decrease the position of each value ahead of it by 1.
### Examples
| Before | After |
| --- | --- |
| `[I was stored from general,User,Hello,Value 0,Value 1]` | `[User,Hello,Value 0,Value 1]` |
| `[User,Hello,Value 0,Value 1]` | `[Hello,Value 0,Value 1]` |
| `[Hello,Value 0,Value 1]` | `[Value 0,Value 1]` |
**Remove last value**
The Remove last value operation allows you to remove a value at the last position of a collection.
### Examples
| Before | After |
| --- | --- |
| `[Value 0,Value 1,Hello,User,I was stored from general]` | `[Value 0,Value 1,Hello,User]` |
| `[Value 0,Value 1,Hello,User]` | `[Value 0,Value 1,Hello]` |
| `[Value 0,Value 1,Hello]` | `[Value 0,Value 1]` |
**Set value at position**
The Set value at position operation allows you to add a value at any position of a collection. This will replace the old value of the collection at that position.
### Value
The value of the action is the actual message or number that the bot should store when the action is triggered. You can use any variable or option in the content of this value. These can be easily added through the variable selector by clicking the **Clipboard** button.
.png)
### Position
The position of the action is the numbered location of the value you're adding. Collection values start at 0 and increase by 1 for each value before them. You can use any variable or option in the content of this position. These can be easily added through the variable selector by clicking the **Clipboard** button.
### Examples
| Before | Value | Set at Position | After |
| --- | --- | --- | --- |
| `[Value 0,Value 1]` | `Hello` | 0 | `[Hello,Value 1]` |
| `[Hello,Value 1]` | `{user_name}` | 2 | `[Hello,Value 1,User]` |
| `[Hello,Value 1,User]` | `I was stored from {channel_name}` | 1 | `[Hello,I was stored from general,User]` |
**Remove value at position**
The Remove value at position operation allows you to remove a value at any position of a collection. This will decrease the position of each value ahead of it by 1.
### Position
The position of the action is the numbered location of the value you're removing. Collection values start at 0 and increase by 1 for each value before them. You can use any variable or option in the content of this position. These can be easily added through the variable selector by clicking the **Clipboard** button.
### Examples
| Before | Position | After |
| --- | --- | --- |
| `[Hello,Value 0,User,Value 1,I was stored from general]` | 4 | `[Hello,Value 0,User,Value 1]` |
| `[Hello,Value 0,User,Value 1]` | 2 | `[Hello,Value 0,Value 1]` |
| `[Hello,Value 0,Value 1]` | 0 | `[Value 0,Value 1]` |
**Remove value in collection**
The Remove value in collection operation allows you to remove the first occurrence of a value in a collection. This will decrease the position of each value ahead of it by 1.
### Value
The value of the action is the actual message or number that the bot should remove from the collection when the action is triggered. You can use any variable or option in the content of this value. These can be easily added through the variable selector by clicking the **Clipboard** button.
.png)
### Examples
| Before | Value | After |
| --- | --- | --- |
| `[Value 0,Value 1,Hello,User,I was stored from general]` | `I was stored from {channel_name}` | `[Value 0,Value 1,Hello,User]` |
| `[Value 0,Value 1,Hello,User]` | `Hello` | `[Value 0,Value 1,User]` |
| `[Value 0,Value 1,User]` | `Value 1` | `[Value 0,User]` |
**Clear collection**
The Clear a collection operation allows you to empty, or remove all values of, a collection variable.
### Examples
| Before | After |
| --- | --- |
| `[Value 0,Value 1,Hello,User,I was stored from general]` | `[]` |
| `[Value 0,Value 1,Hello,User]` | `[]` |
| `[Value 0,Value 1,User]` | `[]` |
## Object Variables
An [object](https://botghost.com/docs/custom-commands-and-events/data-storage/objects) variable stores a string of text by setting key value pairs. These strings can be accessed by dot notations.
### Key
The key of the [object](https://botghost.com/docs/custom-commands-and-events/data-storage/objects) property to change the value from. You can use any existing or new key from the object variable to set a value.
### Value
The value of the action is the actual message that the bot should store when the action is triggered. You can use any [variable](https://botghost.com/docs/custom-commands-and-events/variables) or [option](https://botghost.com/docs/custom-commands-and-events/options) in the content of this value. These can be easily added through the variable selector by clicking the **Clipboard** button.
.png)
---
# Run Equation on Variable
Source: https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions/run-equation-on-variable
The Run Equation on Variable action when triggered applies a numerical equation to the value of any custom variable. It can be referenced in any action or condition throughout your bot's commands and events. All variables and options can be used in the content of the equation.
> **Note:** This action cannot modify collection variables.
## Custom Variable
In this section, you can manage which variable the bot will set. You can select from a dropdown that will display the bot's variables. Variables on this list can be added, edited, and removed using the [Data Storage](https://botghost.com/docs/custom-commands-and-events/data-storage) module.
## Targets
When using the Run Equation on Variable action on a user or channel variable, a Targets section will be displayed. This will allow you to set the user or channel to reset the variable for.
### User Target
> **Note:** User Target only appears for user variables.
The Run Equation on Variable action has three options that change to whom the variable of the action is stored. Below you can find detailed information about each option and how it can be used.
.png)
**User who used the command**
By selecting this option your variable will be stored to the user who used the most recent interaction; for example, the most recent button press, select menu choice, command run or the user who triggered the custom event.
**User option**
In commands, by selecting this option your variable will be stored to a user selected in a user option.
.png)
### User Option
Here you can set the option variable for the [User option](https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions/run-equation-on-variable#user-option) (purple blocks) you are using. These can be easily added through the variable selector by clicking the **Clipboard** button.
**User ID**
By selecting this option your variable will be stored to a user specified via their user ID.
.png)
### User ID
Here you can set the ID of the user to set a variable for. You can do this by pasting an ID directly from Discord (learn how [here](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID#h_01HRSTXPS5H5D7JBY2QKKPVKNA)) or using a variable that returns a user ID. These can be easily added through the variable selector by clicking the **Clipboard** button.
### Channel Target
> **Note:** Channel Target only appears for channel variables.
The Run Equation on Variable action has two options that change to which channel the variable of the action is stored. Below you can find detailed information about each option and how it can be used.
.png)
**Specific channel or variable**
By selecting this option your Variable will be stored to a channel specified via its ID.
.png)
### Channel ID or Variable
Here you can set the ID of the channel to set a variable for. You can do this by pasting an ID directly from Discord (learn how [here](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID#h_01HRSTXPS5H5D7JBY2QKKPVKNA)) or using a variable that returns a channel ID. These can be easily added through the variable selector by clicking the **Clipboard** button.
**Channel the command was used in**
By selecting this option your Variable will be stored to the channel the most recent interaction was used in; for example, the most recent button press, select menu choice, command run or the channel of the custom event.
### Server Target
> **Note:** Server Target does not appear for global variables.
You can optionally target a specific server with the Set Variable action. If you enter a server ID in this field, the variable will be set for that server.
.png)
## Objects
> **Note:** These fields only appear for object variables.
[Object](https://botghost.com/docs/custom-commands-and-events/data-storage/objects) type variables in the run equation block function the same as they would in the [set variable](https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions/set-variable) block. In this case it runs an equation on a specific key that is accessible via dot notation. Once the command / event is triggered, it sets the result / value for that key.
### Key
This field targets the key of the [object](https://botghost.com/docs/custom-commands-and-events/data-storage/objects) property's value to run the equation on. You can use any existing or new key from the object variable.
### Value
The value is the actual equation that the bot should store when the action is triggered. You can use any [variable](https://botghost.com/docs/custom-commands-and-events/variables) or [option](https://botghost.com/docs/custom-commands-and-events/options) in the content of this value. These can be easily added through the variable selector by clicking the **Clipboard** button.
## Round Result
The Run Equation on Variable action has two options that change whether decimals can be stored in the variable of the action. Below you can find detailed information about each option and how it can be used.
.png)
**Yes**
By selecting this option your Variable will be stored as the nearest whole number, regardless of whether the equation's solution contains a decimal.
> **Note:** The number will be rounded up if mathematically correct.
**No**
By selecting this option your Variable will be stored as the solution to the equation, without being rounded. This will allow any potential decimal found in the result to be stored in the variable of the action.
## Equation
The equation of the action is the actual expression that the bot should calculate and store when the action is triggered. The result can be negative, and the equation will respect order of operations. You can use any variable or option in the content of this reply. These can be easily added through the variable selector by clicking the **Clipboard** button.
.png)
Below is a reference of the signs that can be used in the equation:
| Signs | Information |
| --- | --- |
| var | Represents the current value of the [Custom Variable](https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions/run-equation-on-variable#custom-variable) you selected. |
| + | Represents addition. |
| - | Represents subtraction. |
| * | Represents multiplication. |
| / | Represents division. |
| ^ | Represents exponentiation. |
| ( ) | Represents brackets. Using them will affect the order of operations in your equation. |
Below is a list of some examples for equations:
| Equation | Value of "var" | Result |
| --- | --- | --- |
| var + 5 | 1 | 6 |
| var * 2 | 4 | 8 |
| var / 2 | 8 | 4 |
| var - 5 | 6 | 1 |
| var ^ 3 | 2 | 8 |
| var^(1/3) | 8 | 2 |
| var * (5+2) | -2 | -14 |
---
# Delete Variable
Source: https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions/delete-variable
The Delete Variable action when triggered resets the value of any custom variable to the base value defined in its settings. It can be referenced in any action or condition throughout your bot's commands and events.
## Custom Variable
In this section, you can manage which variable the bot will reset. You can select from a dropdown that will display the bot's variables. Variables on this list can be added, edited, and removed using the [Data Storage](https://botghost.com/docs/custom-commands-and-events/data-storage) module.
## Targets
When using the Delete Variable action on a user or channel variable, a Targets section will be displayed. This will allow you to set the user or channel to reset the variable for.
### User Target
> **Note:** User Target only appears for user variables.
The Delete Variable action has three options that change to whom the variable of the action is stored. Below you can find detailed information about each option and how it can be used.
.png)
**User who used the command**
By selecting this option your variable will be stored to the user who used the most recent interaction; for example, the most recent button press, select menu choice, command run or the user who triggered the custom event.
**User option**
In commands, by selecting this option your variable will be stored to a user selected in a user option.
.png)
### User Option
Here you can set the option variable for the [User option](https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions/delete-variable#user-option) (purple blocks) you are using. These can be easily added through the variable selector by clicking the **Clipboard** button.
**User ID**
By selecting this option your variable will be stored to a user specified via their user ID.
.png)
### User ID
Here you can set the ID of the user to set a variable for. You can do this by pasting an ID directly from Discord (learn how [here](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID#h_01HRSTXPS5H5D7JBY2QKKPVKNA)) or using a variable that returns a user ID. These can be easily added through the variable selector by clicking the **Clipboard** button.
**All Users**
By selecting this option the value of the variable will be reset for all users who have a record in the variable.
### Channel Target
> **Note:** Channel Target only appears for channel variables.
The Delete Variable action has two options that change to which channel the variable of the action is stored. Below you can find detailed information about each option and how it can be used.
.png)
**Channel the command was used in**
By selecting this option your variable will be stored to the channel the most recent interaction was used in; for example, the most recent button press, select menu choice, command run or the channel of the custom event.
**Specific channel or variable**
By selecting this option your variable will be stored to a channel specified via its ID.
.png)
### Channel ID or Variable
Here you can set the ID of the channel to set a variable for. You can do this by pasting an ID directly from Discord (learn how [here](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID#h_01HRSTXPS5H5D7JBY2QKKPVKNA)) or using a variable that returns a channel ID. These can be easily added through the variable selector by clicking the **Clipboard** button.
**All channels**
By selecting this option the value of the variable will be reset for all channels that have a record in the variable.
### Server Target
> **Note:** Server Target does not appear for global variables.
You can optionally target a specific server with the Set Variable action. If you enter a server ID in this field, the variable will be set for that server.
.png)
## Objects
> **Note:** This only works for object type custom variables.
Likewise to other variable actions, for [objects](https://botghost.com/docs/custom-commands-and-events/data-storage/objects) the delete variable action will target a specific key or all keys to delete a value from.
.png)
**Specific key**
Targeting a specific key will delete a value from a specific key entered in the field below.
### Key
This field only accepts the name of the key that was made in data storage. See the [objects](https://botghost.com/docs/custom-commands-and-events/data-storage/objects) page for more info.
**All Keys**
This selection will delete all the values from all the keys of the [object](https://botghost.com/docs/custom-commands-and-events/data-storage/objects).
---
# API Actions
Source: https://botghost.com/docs/custom-commands-and-events/actions/api-actions
The command builder offers multiple API actions. They allow you to send and retrieve information for external websites. Below you may find some general information about each block. Click on its name for more information.
| Block | Information |
| --- | --- |
| [send-an-api-request.md](https://botghost.com/docs/custom-commands-and-events/actions/api-actions/send-an-api-request) | The send an API request action allows you to run a GET, POST, PUT, PATCH, DELETE, or HEAD request to an external website. |
| [execute-an-ifttt-trigger.md](https://botghost.com/docs/custom-commands-and-events/actions/api-actions/execute-an-ifttt-trigger) | The execute an IFTTT trigger action allows you to trigger an applet linked to your [IFTTT](https://botghost.com/docs/custom-commands-and-events/ifttt) account. |
---
# Send an API Request
Source: https://botghost.com/docs/custom-commands-and-events/actions/api-actions/send-an-api-request
API Request actions allow you to run a http request when the action is executed. API Requests allow you to access and interact with the resources of another server outside of BotGhost. You can then use the returned information in your custom commands and events.
[YouTube video](https://www.youtube.com/watch?v=uQpeBERJvVI)
> **Note:** For the safety of your bot token you can use **{TOKEN_SECRET}** in the HTTP Header instead of copy & pasting your bot token when sending requests to the [Discord API](https://discord.com/developers/docs/intro).
## Setting a request name
API request actions use a custom variable that you can use to access the data returned by the request. You must first set a unique name that will be used as the variable for this request.
.png)
*Setting a name for the API Request*
This name must be different from any other API request in the command or event.
## Building your request
Once you have set the name for this action you will be able to start building your API request. Click the **Request Builder** to start building out your request.
.png)
*The Request Builder*
This will open up the Request Builder modal which has six main components.
.png)
### Request URL
At the top of the window you must first enter the URL of the API you wish to send a HTTP request to. If you would like to find some APIs to play around with check out this [collection](https://rapidapi.com/collection/cool-apis). Paste the URL of the API endpoint in the URL field at the top.
Next, select the request type of the URL you are trying to interact with. Consult the documentation for the API you are trying to interact with for this field, but in general a GET request retrieves data and a POST request sends data.
.png)
### URL Params
URL parameters or query strings are the way to structure additional information for the URL. These are generally added to the end of the Request URL after a ? symbol. You can add these by clicking the Add button on the **URL Params** menu.
.png)
These values will be added to the end of the URL and encoded correctly. You can use all variables in both the key and value.
### HTTP Headers
Some APIs require you to pass headers along with the request to identify who the request is coming from or other information specific to that API. To add a header click on the **HTTP Headers** option in the menu and then click **Add.** You can use all variables in both the key and value.
.png)
This will create a new empty Header for your request. Enter the key and value for your header as defined by the APIs documentation. For example if the API requires Basic Authorization, your header might look like this:
.png)
> **Note:** For the safety of your bot token you can use **{TOKEN_SECRET}** in the HTTP Header instead of copy & pasting your bot token when sending requests to the [Discord API](https://discord.com/developers/docs/intro). The value of the "Authorization" key should look like this: `Bot {TOKEN_SECRET}`
### Request Body
If you select a request type that requires some data to be sent along with it, you may attach this data through adding data to your **Request Body.** To add new data to your request's body, click the **Request Body** menu option and then click **Add.**
.png)
> **Tip:** You can switch to **Raw JSON Body** mode to send data as JSON instead of using key-value fields. This is useful if an API needs a certain JSON format.
>
> .png)
Similarly to headers, fill in the key and value of the data you wish to add to the request body. You can use all variables in both the key and value.
### Options
The request builder has a set of options that change how your request is executed by the BotGhost backend.
| Option | Explanation |
| --- | --- |
| Automatically exclude fields that are empty | This field will remove headers and body fields that are empty from the request. |
| Replace variables in the URL | Enabling this option will mean BotGhost will search for and replace variables in the URL of the request. |
| Replace variables in the URL Params | Enabling this option will mean BotGhost will search for and replace BotGhost variables in the URL Params. |
| Replace variables in the HTTP Headers | Enabling this option will mean BotGhost will search for and replace variables in the Headers of the request |
| Replace variables in Request Body | Enabling this option will mean BotGhost will search for and replace variables in the Request Body. |
| Sanitize response data | Response data will be sanitized to ensure that any variables (i.e. `{user_id}`) are not resolved when used in other options (recommended for security) |
## Testing your request
You are able to simulate and test how your API Request action will respond and test the potential value of a variable returned by the API. After you have filled out the above options, click the **Test Request** button to run a test request.
.png)
This will return the response, status and status text of the API request.
## API Action Variables
You can access the data returned by using the name you set earlier and **dot notation.** Click on the value you want to automatically copy the variable required to return that data.
For example using the above example with a name of calculator:
- `{calculator.response.age}` - 64
- `{calculator.response.name}` - Tom
- `{calculator.status}` - 200
- `{calculator.statusText}` - OK
> **Tip:** You can click on any value in the response to get the variable required to return that data
You can test the value of any variable by putting it into the Test Variable input field.
.png)
If the Variable Result returns either undefined or [object Object] double check the variable you are trying to test. Only text and numbers can be returned. **You can click on any value in the response to get the variable required to return that data.**
**These variables can then be used in any action or condition.**
---
# Execute an IFTTT Trigger
Source: https://botghost.com/docs/custom-commands-and-events/actions/api-actions/execute-an-ifttt-trigger
In the Custom Commands and Custom Events Builders, the IFTTT Trigger Action may be used to send data from your BotGhost Bot to IFTTT applets.
Read more about the IFTTT trigger action on the [IFTTT documentation page](https://botghost.com/docs/custom-commands-and-events/ifttt#execute-an-ifttt-trigger-action).
---
# Loop Actions
Source: https://botghost.com/docs/custom-commands-and-events/actions/loop-actions
The command builder offers multiple loop actions. They allow you to start and stop actions from repeating for a set number of times. Below you may find some general information about each block. Click on its name for more information.
| Block | Information |
| --- | --- |
| [run-a-loop.md](https://botghost.com/docs/custom-commands-and-events/actions/loop-actions/run-a-loop) | The run a loop action allows you to trigger actions that will repeat for a set number of times. |
| [stop-a-loop.md](https://botghost.com/docs/custom-commands-and-events/actions/loop-actions/stop-a-loop) | The stop a loop action allows you to break out of any active loops within the command or event, and trigger blocks that fall under the "After loop" section. |
---
# Run a Loop
Source: https://botghost.com/docs/custom-commands-and-events/actions/loop-actions/run-a-loop
Loops allow you to repeat connected actions and conditions a set amount of times. You can change the number of times a loop is run by setting the loop count with a number or variable. Actions and conditions connected to the Loop X Times block will then be run that many times. Once the loop has finished actions and conditions connected to the 'After Loop' block will be run like normal. This block will open a world of possibilities for users to explore.
.png)
## Settings
### Loop Count
.png)
The "Loop count" section will determine the number of times the actions that follow should repeat. By default this is set to a count of 5, however, you can loop actions up to 1000 times. All [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used. If you want to loop through all values of a collection, you can use the `{lengthOfCollection()}` variable to loop as many times as the length of the collection.
### Timeout
.png)
This setting lets you specify the timeout between loop iterations. This means that once one iteration is completed, the bot will wait the provided amount of ms before starting the next iteration. The minimum timeout is 10 milliseconds and the maximum is 600000 milliseconds (10 minutes). Remember that 1 seconds equals to 1000 milliseconds (or ms).
### Every member of the server
Pick **Every member of the server** to run the loop once for every member of the server it runs in, with each member's ID in `{loop_member_id}`. Use `<@{loop_member_id}>` to mention them.
- **Only members with these roles**: leave it empty to go over everyone, or pick roles to go over members with any of them. Role IDs and variables work too.
- It goes over up to 100,000 members. On a bigger server it stops there and writes a note in your Error Logs.
- Your bot needs the **Server Members** intent, turned on in the Discord Developer Portal under **Bot**. Without it, or outside a server, the loop goes down its error path.
- The timeout above is the wait between members, so a big server takes a while. Members loops don't have the 1000 cap.
## Limitations
There are a few limitations on loops to discourage abuse of the system:
- Loops have a minimum timeout of 10 ms between each loop and a maximum of 600000 milliseconds (10 minutes).
- You can not run loops inside of loops.
- A max loop count of 1000 exists.
> **Note:** These limitations may change as we monitor how people are using loops.
## **Loop Variables**
This action comes with two variables, they are:
| Variable | Description |
| --- | --- |
| `{loop_count}` | Returns the current loop count. Starts at 1. |
| `{loop_index}` | Returns the current loop index. Starts at 0 and is useful for when looping through collections. |
When the loop goes over every member of the server, `{loop_member_id}` is the ID of the member this round is for.
## **Stop a Loop Action**
Loops have a unique [**Stop a Loop**](https://botghost.com/docs/custom-commands-and-events/actions/loop-actions/stop-a-loop)action that can be run to stop any running loop. This action can be used with conditions to conditionally stop a loop.
---
# Stop a Loop
Source: https://botghost.com/docs/custom-commands-and-events/actions/loop-actions/stop-a-loop
The Stop a Loop block will allow users to stop a loop before it has looped the total count set in the **Run a Loop block**, this will be incredibly helpful when you only want the loop to keep going if a condition is not met.
> **Note:** This block has to be under the "Loop x times" block, which means you can't use it before the loop itself or under the "After loop" block
.png)
This block requires no settings as it works directly with the [**Run a Loop**](https://botghost.com/docs/custom-commands-and-events/actions/loop-actions/run-a-loop) block. You can use this block with conditions to do a conditional stop on a loop before it has looped through the total loop count set on the **Run a Loop** block.
---
# Music Actions
Source: https://botghost.com/docs/custom-commands-and-events/actions/music-actions
> **Warning:** Music blocks require a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The command builder offers multiple music blocks. They allow you to play and control music in voice channels in your discord server. Below you may find some general information about each block. Click on its name for more information.
| Block | Information |
| --- | --- |
| [Create Music Player](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/create-music-player) | The create a music player action allows you to create a music player for a voice channel, which is required before adding tracks or playing music. |
| [Add to Queue](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/add-to-queue) | The add to queue action allows you to search for a song and add it to the queue. Requires an active music player. |
| [Play Queue](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/play-queue) | The play queue action starts playing the songs in the music queue. Requires songs to be added through the `Add to Queue` block first. |
| [Pause Music](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/pause-music) | The pause music action allows you to pause the current music playback. Use `Resume Music` to resume the music playback. |
| [Resume Music](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/resume-music) | The resume music action allows you to resume playback that was paused with the `Pause Music` action. |
| [Stop Music](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/stop-music) | The stop music action allows you to stop the current playback and optionally clear the queue. |
| [Disconnect from Voice](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/disconnect-from-voice) | The disconnect from voice action allows you to force the bot to disconnect from the voice channel and optionally destroy the music player. Note that this is different from [Leave a Voice Channel](https://botghost.com/docs/custom-commands-and-events/actions/voice-actions/leave-a-voice-channel)as that action is not associated with the music module. |
| [Skip Track](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/skip-track) | The skip track action allows you to skip to the next track or to a specific position in the queue. |
| [Set Track Position / Seek](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/set-track-position-seek) | The set track position (seek) action allows you to change the playback position of the current track, with options for absolute or relative positions. |
| [Set Volume](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/set-volume) | The set volume action allows you to change the playback volume to a number between 0 and 200. |
| [Set Loop Mode](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/set-loop-mode) | The set loop mode action allows you to set the loop/repeat mode for the music player, with options for no loop, loop track, or loop queue. |
| [Set AutoLeave](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/set-autoleave) | The set auto-leave action allows you to enable or disable auto-leave, which will disconnect the bot when there are no more tracks in the queue. |
| [Replay Track](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/replay-track) | The replay track action allows you to restart the current track from the beginning. |
| [Remove from Queue](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/remove-from-queue) | The remove from queue action allows you to remove a specific song from the queue based on its position, remove a range of songs, or clear the queue entirely. |
| [Shuffle Queue](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/shuffle-queue) | The shuffle queue action allows you to shuffle the music queue in a random order. |
| [Apply Audio Filter](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/apply-audio-filter) | The apply audio filter action allows you to apply an audio filter (such as bassboost, nighcore, vaporwave, 8d, etc.) to the music player. These can be removed with the `Clear Filters` action. |
| [Clear Filters](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/clear-filters) | The clear filters action allows you to remove all filters that were added with `Apply Audio Filter` from the music player. |
| [Search Tracks](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/search-tracks) | The search tracks block allows you to search for tracks without adding them to the queue, and access them via the {MusicSearch.*} variables. |
---
# Create Music Player
Source: https://botghost.com/docs/custom-commands-and-events/actions/music-actions/create-music-player
> **Warning:** This action requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
.png)
The Create Music Player block allows you to create a music player for the server. This must be done before using other music actions.
## Voice Channel
This setting allows you to target a voice channel. You have two options to select from:
**Current Voice Channel**
.png)
When you select the 'Current Voice Channel' option, the music player will be created in the voice channel the user running the command is currently in.
**Voice Channel ID**
.png)
When you select the 'Voice Channel ID' option, the music player will be created in the voice channel with the specified ID.
### Voice Channel ID
In this field you can enter the ID of the voice channel where you want to create the music player. Variables can be used in this field.
## Auto Connect
.png)
This option allows you to specify if you would like the bot to automatically connect to the voice channel that the player is created in.
## Initial Volume
.png)
This option allows you to specify the initial volume of the music player as a percentage from between 0-1000.
- `0` mutes the audio
- `100` sets normal volume
- Values above `100` amplify the volume (e.g., 200 doubles the volume).
This can be changed after creation with the [Set Volume](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/set-volume) action. Variables can be used in this field.
## Initial Loop Mode
.png)
This option allows you to set the loop mode of the player.
| Name | Raw Value | Description |
| --- | --- | --- |
| Off | 0 | Disables looping. |
| Loop Track | 1 | Repeats the current track. |
| Loop Queue | 2 | Repeats the entire queue. |
This can be changed after the player is created by using the [Set Loop Mode](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/set-loop-mode) action. You can choose this with the dropdown menu, or use a variable that returns the raw value (i.e. 0 1 or 2) of the loop mode you would like to set in the "Loop Mode Variable" setting.
## AutoLeave
.png)
This option allows you to enable or disable AutoLeave. When enabled, the bot will automatically leave the voice channel when the queue finishes. This can be changed after the player is created with the [Set AutoLeave](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/set-autoleave) action. You can choose this with the dropdown menu, or use a variable that returns true or false in the "AutoLeave Variable" field.
---
# Add to Queue
Source: https://botghost.com/docs/custom-commands-and-events/actions/music-actions/add-to-queue
> **Warning:** This action requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The Add to Queue action lets you search for tracks or paste a URL and add them to the music playerβs queue.
## Server
This setting allows you to target a server. You have two options to select from:
**Current Server**
.png)
When you select the 'Current Server' option, the track will be added to the queue of the current server.
**Server ID**
.png)
When you select the 'Server ID' option, the track will be added to the queue of the provided server ID.
### Server ID
In this field you can enter the ID of the server where you want to add the track to the queue. Variables can be used in this field.
## **Search Query or URL**
Enter a song name, artist, or paste a direct URL from any supported platform. The search supports normal text queries as well as links from Spotify, Apple Music, and SoundCloud, automatically detecting and loading the correct track based on what you enter.
## Remove Mode
This setting lets you choose how tracks should be removed from the music queue. You have three options to select from:
**Add to End of Queue**
Adds a track to the end of the queue.
**Add to start of Queue**
Adds a track to the start of the queue so it plays next.
**Add at a Specific position**
Adds a track to the queue at a specific position.
### Queue Position
Use the Queue Position field to specify which track should be removed. Position values start at 0, where 0 is the first track and 1 is the second track.
## Playlist Load Limit
Maximum number of tracks to load from playlists. Accepts values from 1 to 250.
---
# Play Queue
Source: https://botghost.com/docs/custom-commands-and-events/actions/music-actions/play-queue
> **Warning:** This action requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
.png)
The Play Queue action allows you to begin playing the music that is in the music queue. Ensure you add music to the queue with [add to queue](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/add-to-queue) first. You can use the [`{MusicCurrentTrack}`](https://botghost.com/docs/custom-commands-and-events/variables#music-objects) object variable to reference the currently playing track.
## Server
This setting allows you to target a server. You have two options to select from:
**Current Server**
.png)
When you select the 'Current Server' option, the music queue of the current server will be played.
**Server ID**
.png)
When you select the 'Server ID' option, the music queue of the provided server ID will be played.
### Server ID
In this field you can enter the ID of the server where you want to play the music queue. Variables can be used in this field.
---
# Pause Music
Source: https://botghost.com/docs/custom-commands-and-events/actions/music-actions/pause-music
> **Warning:** This action requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
.png)
The Pause Music action lets you pause any music track that's playing.
## Server
This setting allows you to target a server. You have two options to select from:
**Current Server**
.png)
When you select the 'Current Server' option, the music track of the current server will be paused.
**Server ID**
.png)
When you select the 'Server ID' option, the music track of the provided server ID will be paused.
### Server ID
In this field you can enter the ID of the server where you want to pause the music track. Variables can be used in this field.
---
# Resume Music
Source: https://botghost.com/docs/custom-commands-and-events/actions/music-actions/resume-music
> **Warning:** This action requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
.png)
The Resume Music action lets you resume the music track after it has been paused.
## Server
This setting allows you to target a server. You have two options to select from:
**Current Server**
.png)
When you select the 'Current Server' option, the music track of the current server will be resumed.
**Server ID**
.png)
When you select the 'Server ID' option, the music track of the provided server ID will be resumed.
### Server ID
In this field you can enter the ID of the server where you want to resume the music track. Variables can be used in this field.
---
# Stop Music
Source: https://botghost.com/docs/custom-commands-and-events/actions/music-actions/stop-music
> **Warning:** This action requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
.png)
The Stop Music action lets you stop any music track that's playing.
## Server
This setting allows you to target a server. You have two options to select from:
**Current Server**
.png)
When you select the 'Current Server' option, the music track of the current server will be stopped.
**Server ID**
.png)
When you select the 'Server ID' option, the music track of the provided server ID will be stopped.
#### Server ID
In this field you can enter the ID of the server where you want to stop the music track. Variables can be used in this field.
## Clear Queue
.png)
In the clear queue option you can choose whether or not you want to clear the server's queue when stopping the music.
## Disconnect from Voice
.png)
In this option you can choose whether or not you want to disconnect the bot from the voice channel after the music has been stopped.
---
# Disconnect from Voice
Source: https://botghost.com/docs/custom-commands-and-events/actions/music-actions/disconnect-from-voice
> **Warning:** This action requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The Disconnect from Voice action removes the bot from the current voice channel and can optionally destroy the music player.
## Server
This setting selects which server the action applies to. You have two options to choose from:
**Current Server**
.png)
When you choose the Current Server option, the bot will disconnect from the voice channel within the server where the command is executed.
**Server ID**
.png)
When you select the Server ID option, the bot will disconnect from the voice channel of the server matching the provided ID.
### Server ID
In this field, you can enter the ID of the server where you want the bot to disconnect from the voice channel. Variables can be used in this field.
## Destroy Player
In this option you can choose whether the music player should be fully destroyed and its queue cleared. If set to No, the bot will simply disconnect from voice but keep the existing queue.
---
# Skip Track
Source: https://botghost.com/docs/custom-commands-and-events/actions/music-actions/skip-track
> **Warning:** This action requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
.png)
The skip track action allows you to skip to the next track or to a specific position in the queue.
## Server
This setting allows you to target a server. You have two options to select from:
**Current Server**
.png)
When you select the 'Current Server' option, the music track of the current server will be skipped.
**Server ID**
.png)
When you select the 'Server ID' option, the music track of the provided server ID will be skipped.
### Server ID
In this field you can enter the ID of the server where you want to skip the music track. Variables can be used in this field.
## Skip Mode
This setting allows you to choose whether to skip by a number of tracks or jump to a specific position in the queue.
**Skip by Amount**
.png)
Skip by Amount allows you to skip a certain number of tracks.
### Skip Amount
In this field you can set how many tracks you want to skip forward. For example, setting this to "1" would skip forward to the next track.
**Skip to Position**
.png)
Skip to Position allows you to skip to a specific position in the queue.
### Queue Position
In this field, you can enter the queue position you would like to jump to. Setting this to "0" would skip to the first track in the queue, and "1" would skip to the second.
---
# Set Track Position / Seek
Source: https://botghost.com/docs/custom-commands-and-events/actions/music-actions/set-track-position-seek
> **Warning:** This action requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
.png)
The Set Track Position / Seek block allows you to set the position in the currently playing track to an absolute position, or relative to the current position in the song.
## Server
This setting allows you to target a server. You have two options to select from:
**Current Server**
.png)
When you select the 'Current Server' option, the track position of the music playing in the current server will be changed.
**Server ID**
.png)
When you select the 'Server ID' option, the track position of the music playing in the provided server ID will be changed.
### Server ID
In this field you can enter the ID of the server where you want to change the track position. Variables can be used in this field.
## Mode
This setting allows you to choose whether to set the absolute position in the track, or seek relative to the song's current position.
**Set Position**
.png)
Set Position allows you to set the exact position in the song.
### Position (Milliseconds)
In this field you can set what position in the song you want to skip to in milliseconds. For example, setting this to `60000` would skip to one minute into the song. Remember that 1 second is equal to 1000 milliseconds.
**Seek (Relative)**
.png)
Seek (Relative) allows you to seek forward or backward relative to the current position of the song.
### Time Offset (Milliseconds)
In this field, you can set the time offset in milliseconds that you would like to seek to. For example, setting this to `10000` would skip forward 10 seconds, or setting this to `-5000` would rewind by 5 seconds. Remember that 1 second is equal to 1000 milliseconds.
---
# Set Volume
Source: https://botghost.com/docs/custom-commands-and-events/actions/music-actions/set-volume
> **Warning:** This action requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The Set Volume action changes the playback volume of the music player.
## Server
This setting selects which server the action applies to. You have two options to choose from:
**Current Server**
.png)
When you choose the Current Server option, the volume will be adjusted on the server where the command is executed.
**Server ID**
.png)
When you select the Server ID option, the volume will be adjusted in the server matching the provided ID.
### Server ID
In this field, you can enter the ID of the server where you want the volume to be changed. Variables can be used in this field.
## Volume
The Volume setting lets you choose the playback volume for the music player.
You can set any value from 0 to over 200, depending on how loud you want the audio to be.
---
# Set Loop Mode
Source: https://botghost.com/docs/custom-commands-and-events/actions/music-actions/set-loop-mode
> **Warning:** This action requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
.png)
The Set Loop Mode block allows you to change the loop mode of the music player to off, track, or queue.
## Server
This setting selects which server the action applies to. You have two options to choose from:
**Current Server**
.png)
When you choose the Current Server option, the selected loop mode will be applied to the server where the command is executed.
**Server ID**
.png)
When you select the Server ID option, the selected loop mode will be applied to the server matching the provided ID.
### Server ID
In this field, you can enter the ID of the server where you want the selected loop mode to be applied. Variables can be used in this field.
## Loop Mode
.png)
This option allows you to set the loop mode of the player.
| Name | Raw Value | Description |
| --- | --- | --- |
| Off | 0 | Disables looping. |
| Loop Track | 1 | Repeats the current track. |
| Loop Queue | 2 | Repeats the entire queue. |
You can choose this with the dropdown menu, or use a variable that returns the raw value of the loop mode you would like to set in the "Loop Mode Variable" field.
---
# Set AutoLeave
Source: https://botghost.com/docs/custom-commands-and-events/actions/music-actions/set-autoleave
> **Warning:** This action requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The Set AutoLeave action enables or disables the botβs automatic disconnection from the voice channel when the music queue ends.
## Server
This setting selects which server the action applies to. You have two options to choose from:
**Current Server**
.png)
When you choose the Current Server option, the AutoLeave setting will be applied to the server where the command is executed.
**Server ID**
.png)
When you select the Server ID option, the AutoLeave setting will be applied to the server matching the provided ID.
### Server ID
In this field, you can enter the ID of the server where you want the AutoLeave setting to be applied. Variables can be used in this field.
## AutoLeave Status
In this option you can choose whether the bot should automatically leave the voice channel when the music queue ends. If set to Enabled, the bot will disconnect once there are no tracks left to play. If set to Disabled, the bot will remain in the voice channel even after the queue is empty.
---
# Replay Track
Source: https://botghost.com/docs/custom-commands-and-events/actions/music-actions/replay-track
> **Warning:** This action requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The Replay Track action restarts the currently playing track from the beginning.
## Server
This setting selects which server the action applies to. You have two options to choose from:
**Current Server**
.png)
When you choose the Current Server option, the current track will be replayed on the server where the command is executed.
**Server ID**
.png)
When you select the Server ID option, the current track will be replayed in the server matching the provided ID.
### Server ID
In this field, you can enter the ID of the server where you want the current track to be replayed. Variables can be used in this field.
---
# Remove from Queue
Source: https://botghost.com/docs/custom-commands-and-events/actions/music-actions/remove-from-queue
> **Warning:** This action requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The Remove from Queue action removes track(s) from the music queue.
## Server
This setting selects which server the action applies to. You have two options to choose from:
**Current Server**
.png)
When you choose the Current Server option, the Remove From Queue action will be applied to the server where the command is executed.
**Server ID**
.png)
When you select the Server ID option, the action will be applied to the server matching the provided ID.
### Server ID
In this field, you can enter the ID of the server where you want the track to be removed from the queue. Variables can be used in this field.
## Remove Mode
This setting lets you choose how tracks should be removed from the music queue. You have three options to select from:
**Remove Track at Position**
Removes a single track from the queue based on its position.
### Queue Position
Use the Queue Position field to specify which track should be removed. Position values start at 0, where 0 is the first track and 1 is the second track.
**Remove Range of Tracks**
Removes multiple tracks at once by specifying a start and end position.
### Start Position
The position of the first track to remove, included.
### End Position
The position of the last track to remove, included.
**Clear Entire Queue**
Removes all tracks from the queue.
---
# Shuffle Queue
Source: https://botghost.com/docs/custom-commands-and-events/actions/music-actions/shuffle-queue
> **Warning:** This action requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The Shuffle Queue action randomizes the order of all tracks currently in the music queue.
## Server
This setting selects which server the action applies to. You have two options to choose from:
**Current Server**
.png)
When you choose the Current Server option, the music queue will be shuffled on the server where the command is executed.
**Server ID**
.png)
When you select the Server ID option, the music queue will be shuffled in the server matching the provided ID.
### Server ID
In this field, you can enter the ID of the server where you want the music queue to be shuffled. Variables can be used in this field.
---
# Apply Audio Filter
Source: https://botghost.com/docs/custom-commands-and-events/actions/music-actions/apply-audio-filter
> **Warning:** This action requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The Apply Audio Filter action applies an audio filter to the current music player.
.png)
## Server
This setting selects which server the action applies to. You have two options to choose from:
**Current Server**
.png)
When you select the 'Current Server' option, the audio will be applied to the player in the current server.
**Server ID**
.png)
When you select the Server ID option, the audio filter will be applied to the provided server ID's player.
### Server ID
In this field, you can enter the ID of the server where you want the audio filter to be applied to. Variables can be used in this field.
## Filter Type
In this field, you can select the type of audio filter to apply to the specified player.
**Filters**
.png)
When you select one of the default filters, the specified filter will be applied to the player. The available filters are:
| Filter Type | Filter Description |
| --- | --- |
| Bass Boost | Enhances low frequencies for deeper bass |
| Nightcore | Faster and higher pitched audio |
| Vaporwave | Slower and lower pitched audio (chill vibes) |
| 8D Audio | Creates spatial/surround sound effect |
| Tremolo | Volume oscillation (wobble effect) |
| Vibrato | Pitch oscillation (warble effect) |
| Karaoke | Attempts to remove vocals from track |
| Treble Boost | Enhances high frequencies |
| Chipmunk | Very high pitched (Alvin and the Chipmunks) |
| Daycore | Opposite of nightcore (slower & lower) |
### Intensity
In this field, you can choose the intensity level of the filter. This supports low, medium or high.
**Custom Pitch**
.png)
When you select Custom Pitch, you are able to specify a custom pitch (how high or low the song sounds) for the music player.
### Pitch Value
This field allows you to specify a custom pitch for the music player. A value of 1.0 is normal, a higher value would equal a higher pitch, and a lower value would equal a lower pitch. Variables can be used in this field.
**Custom Speed**
.png)
When you select Custom Speed, you are able to specify a custom speed for the music player.
### Pitch Value
This field allows you to specify a custom speed for the music player. A value of 1.0 is normal, a higher value play faster, and a lower value would play slower. Variables can be used in this field.
**Custom Equalizer**
.png)
Custom Equalizer is an advanced feature that allows you to select a custom band and gain for your music player.
### Custom Equalizer Bands
In this field, you can enter a JSON array of band objects. There are 15 bands (0-14), and each band can be adjusted with the gain value. Valid values for gain range from -0.25 to 1.0, where -0.25 means the given band is completely muted, and 0.25 means the band is doubled. This can change the volume of the output.
> **Note:** You can see more information on the custom equalizer feature [on LavaLink's docs](https://lavalink.dev/api/rest#equalizer).
**Reset/Clear All**
.png)
Reset / Clear All will clear all filters from the specified player.
---
# Clear Filters
Source: https://botghost.com/docs/custom-commands-and-events/actions/music-actions/clear-filters
> **Warning:** This action requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
.png)
The Clear Filters action allows you to clear all audio filters that were added to the player with [Apply Audio Filter](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/apply-audio-filter).
## Server
This setting allows you to target a server. You have two options to select from:
**Current Server**
.png)
When you select the 'Current Server' option, the audio filters of the player in the current server will be cleared.
**Server ID**
.png)
When you select the 'Server ID' option, the audio filters of the provided server ID's player will be cleared.
### Server ID
In this field you can enter the ID of the server where you want to clear the audio filters of. Variables can be used in this field.
---
# Search Tracks
Source: https://botghost.com/docs/custom-commands-and-events/actions/music-actions/search-tracks
> **Warning:** This action requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The Search Tracks action allows you to search tracks without adding them to the queue, and make the results available via the `{MusicSearch.*}` [object variable](https://botghost.com/docs/custom-commands-and-events/variables#music-objects).
## **Search Query or URL**
.png)
This field allows you to input a song name, artist, or direct URL to a supported platform. This includes playlist and album links from Spotify or Apple Music, as well as individual track URLs from other platforms. Variables can be used in this field.
## Max Results
.png)
This field allows you to set the maximum amount of results that the search will return. This can be a natural number from 1-25. Variables that return numbers can be used here.
## Playlist Load Limit
.png)
This field allows you to specify the maximum amount of songs that will be loaded from a playlist or album. This can be a natural number from 1-250. Variables that return numbers can be used here.
## Optional Variable
.png)
This field allows you to specify a custom variable to use instead of the default `{MusicSearch.*}` variable. The tracks will be accessible through dot notation as `{yourVariableName_0.title}`, `{yourVariableName_1.title}`, etc.
---
# Voice Actions
Source: https://botghost.com/docs/custom-commands-and-events/actions/voice-actions
Voice actions are all meant to target users in a voice channel. These actions can be various things that only affects a user inside a voice channel.
> **Note:** Any of these actions can only target voice channel's or be used if a user / bot is in a voice channel.
| Block | Information |
| --- | --- |
| [Join a Voice Channel](https://botghost.com/docs/custom-commands-and-events/actions/voice-actions/join-a-voice-channel) | Using this action you can join the bot to a voice channel on your server. |
| [Leave a Voice Channel](https://botghost.com/docs/custom-commands-and-events/actions/voice-actions/leave-a-voice-channel) | This block will force the bot to leave a voice channel. |
| [Voice Move a Member](https://botghost.com/docs/custom-commands-and-events/actions/voice-actions/voice-move-a-member) | With this block you are able to move any user to a different voice channel than the one they are currently in. |
| [Voice Kick a Member](https://botghost.com/docs/custom-commands-and-events/actions/voice-actions/voice-kick-a-member) | This block will force kick a user from a voice channel. |
| [Voice Mute or Unmute a Member](https://botghost.com/docs/custom-commands-and-events/actions/voice-actions/voice-mute-or-unmute-a-member) | Using this block you can mute or unmute a user who is currently participating in a voice channel. |
| [Voice Deafen or Undeafen a Member](https://botghost.com/docs/custom-commands-and-events/actions/voice-actions/voice-deafen-or-undeafen-a-member) | Using this block you can deafen or undeafen a user who is currently participating in a voice channel. |
---
# Join a Voice Channel
Source: https://botghost.com/docs/custom-commands-and-events/actions/voice-actions/join-a-voice-channel
The Join a Voice Channel action block will force the bot to join the specified channel, whether it is the voice channel you are currently in, a channel option, or a channel ID.
## Voice Channel
**The voice channel of the user**
This will force the bot to join the voice channel of the user who clicked a [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) / [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option) or is running the command / event. This will only work if the user is in a voice channel before running the command / event.
**Channel Option**
Selecting the channel option will prompt you with a new field to input your channel option variable. Only [channel options](https://botghost.com/docs/custom-commands-and-events/options/channel-option) will work in this field, use channel IDs / Variables in [Voice Channel ID](https://botghost.com/docs/custom-commands-and-events/actions/voice-actions/join-a-voice-channel#voice-channel-id).
### Channel option
Input your option variable into the field below.
**Voice Channel ID**
Selecting the channel ID type will prompt you to enter the ID.
### Channel ID
The channel ID can be a [variable](https://botghost.com/docs/custom-commands-and-events/variables) as well. Remember this has to be a plain ID with no extra symbols or spaces, it is case sensitive like every other ID field. If you use a variable, make sure it returns a plain ID.
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
.png)
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
.png)
---
# Leave a Voice Channel
Source: https://botghost.com/docs/custom-commands-and-events/actions/voice-actions/leave-a-voice-channel
The Leave a Voice Channel action block will force the bot to leave the channel it is connected in, optionally specifying the server ID.
> **Warning:** Keep in mind the bot has to be in a voice channel for this block to work
## Optional Server ID
This action block contains one setting: Optional Server ID.
Having a server ID in this field will force the bot to look for a specific server to leave from. Leaving this blank will force the bot to leave the voice channel in the server the command / event was triggered in or [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) / [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option).
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
.png)
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
.png)
---
# Voice Move a Member
Source: https://botghost.com/docs/custom-commands-and-events/actions/voice-actions/voice-move-a-member
The Voice Move a Member action block will allow the bot to move the specified member, who is already in a voice channel, to a different voice channel.
> **Warning:** Keep in mind the user has to be in a voice channel for this block to work
## User
This field will allow you to specify which user the bot will be moving.
**The user who triggered the command**
This selection will move the user who is triggering the command / event or is clicking a [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) / [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option).
**User Option**
Selecting "user option" will allow the bot to move a user selected from the option in the command, to a different voice channel.
### User option
You must have a user option added in the command in order for this field to work.
Only [user options](https://botghost.com/docs/custom-commands-and-events/options/user-option) may be used in this field, IDs and [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in [User ID](https://botghost.com/docs/custom-commands-and-events/actions/voice-actions/voice-move-a-member#user-id)
**User ID**
This selection will allow the bot to move a user who is already in a voice channel, just like the other selections, but it will target a specific user ID or [variable](https://botghost.com/docs/custom-commands-and-events/variables)that contains a user ID.
### User ID
This field accepts any plain user ID with no extra symbols or spaces. The ID can be in the form of a [variable](https://botghost.com/docs/custom-commands-and-events/variables)as well.
## Voice Channel
This field is the specified voice channel that the user will be moving to.
**The voice channel of the user who triggered the command**
This channel type will move the user to the same voice channel that they triggered the command / event in or clicked a [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) / [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option).
**Channel Option**
Selecting this channel type will move the user to the voice channel that is selected in the command through the channel option.
### Channel Option
This field requires a [channel option](https://botghost.com/docs/custom-commands-and-events/options/channel-option) in your command. Like other option fields, only the channel option variables can be used in this field. ID's / [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in [Channel ID](https://botghost.com/docs/custom-commands-and-events/actions/voice-actions/voice-move-a-member#channel-id)
**Channel ID**
This selection will move the user into a voice channel specified by a channel ID.
### Voice Channel ID
The channel ID can be a [variable](https://botghost.com/docs/custom-commands-and-events/variables) as well. Remember this has to be a plain ID with no extra symbols or spaces, it is case sensitive like every other ID field. If you use a variable, make sure it returns a plain ID.
## Optional Reason
This field is an optional reason of why the bot is moving this user to a different voice channel. This reason will appear in your server's Audit Log. [Variables](https://botghost.com/docs/custom-commands-and-events/variables)can be used as well.
## Optional Server ID
This field is an optional server ID to search for the user in. Leave blank to find the user in the server the command was triggered in or who clicked a [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) / [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option). [Variables](https://botghost.com/docs/custom-commands-and-events/variables)can be used in this field and it must be a plain server ID that is returned.
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
.png)
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
.png)
---
# Voice Kick a Member
Source: https://botghost.com/docs/custom-commands-and-events/actions/voice-actions/voice-kick-a-member
The Voice Kick a Member action block will allow you to kick the specified user from a voice channel, and you can add specifications to which user the bot will kick.
> **Warning:** Keep in mind the user has to be in a voice channel for this block to work
## User
This field will allow you to specify which user the bot will be kicking.
**The user who triggered the command**
This selection will kick the user who is triggering the command/event or is clicking a [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) / [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option).
**User Option**
Selecting "User option" will allow the bot to kick a user selected from the option in the command.
### User option
You must have a user option added in the command in order for this field to work.
Only [user options](https://botghost.com/docs/custom-commands-and-events/options/user-option) may be used in this field, IDs and [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in [User ID](https://botghost.com/docs/custom-commands-and-events/actions/voice-actions/voice-kick-a-member#user-id)
**User ID**
This selection will allow the bot to kick a user who is in a voice channel, just like the other selections, but it will target a specific user ID or [variable](https://botghost.com/docs/custom-commands-and-events/variables)that contains a user ID.
### User ID
This field accepts any plain user ID with no extra symbols or spaces. The ID can be in the form of a [variable](https://botghost.com/docs/custom-commands-and-events/variables)as well.
## Optional Reason
This field is an optional reason of why the bot is kicking this user. This reason will appear in your server's Audit Log. [Variables](https://botghost.com/docs/custom-commands-and-events/variables)can be used as well.
## Optional Server ID
This field is an optional server ID to search for the user in. Leave blank to find the user in the server the command was triggered in or who clicked a [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) / [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option). [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in this field and it must be a plain server ID that is returned.
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
.png)
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
.png)
---
# Voice Mute or Unmute a Member
Source: https://botghost.com/docs/custom-commands-and-events/actions/voice-actions/voice-mute-or-unmute-a-member
The Voice Mute or Unmute a Member action block will allow you to mute or unmute the specified user inside of a voice channel, not allowing them to speak or allow them to speak.
> **Warning:** Keep in mind the user has to be in a voice channel for this block to work
## User
This field will allow you to specify which user that the bot will be muting or unmuting.
**The user who triggered the command**
This selection will mute or unmute the user who is triggering the command / event or is clicking a [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) / [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option).
**User option**
Selecting "User option" will allow the bot to mute / unmute a user selected from the option in the command.
### User option
You must have a user option added in the command in order for this field to work.
Only [user options](https://botghost.com/docs/custom-commands-and-events/options/user-option) may be used in this field, IDs and [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in [User ID](https://botghost.com/docs/custom-commands-and-events/actions/voice-actions/voice-mute-or-unmute-a-member#user-id)
**User ID**
This selection will allow the bot to mute / unmute a user who is in a voice channel, just like the other selections, but it will target a specific user ID or [variable](https://botghost.com/docs/custom-commands-and-events/variables)that contains a user ID.
### User ID
This field accepts any plain user ID with no extra symbols or spaces. The ID can be in the form of a [variable](https://botghost.com/docs/custom-commands-and-events/variables)as well.
## Mute or Unmute
This selection will allow you to decide if this action of the block will mute or unmute a specified user.
## Optional Reason
This field is an optional reason why the bot is muting or unmuting this user. This reason will appear in your server's Audit Log. [Variables](https://botghost.com/docs/custom-commands-and-events/variables)can be used as well.
## Optional Server ID
This field is an optional server ID to search for the user in. Leave blank to find the user in the server the command was triggered in or who clicked a [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) / [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option). [Variables](https://botghost.com/docs/custom-commands-and-events/variables)can be used in this field and it must be a plain server ID that is returned.
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
.png)
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
.png)
---
# Voice Deafen or Undeafen a Member
Source: https://botghost.com/docs/custom-commands-and-events/actions/voice-actions/voice-deafen-or-undeafen-a-member
The Voice Deafen or Undeafen a Member action block will allow you to deafen or undeafen the specified user that is in a voice channel.
> **Warning:** Keep in mind the user has to be in a voice channel for this block to work
## User
This field will allow you to specify which user that the bot will be deafening or undeafening.
**The user who triggered the command**
This selection will deafen or undeafen the user who is triggering the command / event or is clicking a [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) / [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option).
**User Option**
Selecting "User option" will allow the bot to deafen/undeafen a user selected from the option in the command.
### User option
You must have a user option added in the command in order for this field to work.
Only [user options](https://botghost.com/docs/custom-commands-and-events/options/user-option) may be used in this field, IDs and [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in [User ID](https://botghost.com/docs/custom-commands-and-events/actions/voice-actions/voice-deafen-or-undeafen-a-member#user-id)
**User ID**
This selection will allow the bot to deafen / undeafen a user who is in a voice channel, just like the other selections, but it will target a specific user ID or [variable](https://botghost.com/docs/custom-commands-and-events/variables)that contains a user ID.
### User ID
This field accepts any plain user ID with no extra symbols or spaces. The ID can be in the form of a [variable](https://botghost.com/docs/custom-commands-and-events/variables)as well.
## **Deafen or Undeafen**
is selection will allow you to decide if this action of the block will deafen or undeafen a specified user.
## Optional Reason
This field is an optional reason why the bot is deafening or undeafening this user. This reason will appear in your server's Audit Log. [Variables](https://botghost.com/docs/custom-commands-and-events/variables)can be used as well.
## Optional Server ID
This field is an optional server ID to search for the user in. Leave blank to find the user in the server the command was triggered in or who clicked a [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) / [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option). [Variables](https://botghost.com/docs/custom-commands-and-events/variables)can be used in this field and it must be a plain server ID that is returned.
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
.png)
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
.png)
---
# Role Actions
Source: https://botghost.com/docs/custom-commands-and-events/actions/role-actions
Role actions allow the bot to manage the roles in your servers through various means, such as editing, deleting and creating new roles. These actions only pertain to roles and target users aside from managing a role.
> **Note:** You must have the manage roles permission enabled in your server for your bot for these blocks to work.
| Block | Information |
| --- | --- |
| [Add Roles](https://botghost.com/docs/custom-commands-and-events/actions/role-actions/add-role) | This action allows the bot to add one or more roles to any server member. |
| [Remove Roles](https://botghost.com/docs/custom-commands-and-events/actions/role-actions/remove-role) | This action allows the bot to remove one or more roles to any server member. |
| [Add Roles to All Users](https://botghost.com/docs/custom-commands-and-events/actions/role-actions/add-roles-to-all-users) | This action will add one or more roles to all users in the server. |
| [Remove Roles from All Users](https://botghost.com/docs/custom-commands-and-events/actions/role-actions/remove-roles-from-all-users) | Use this to remove one or more roles from all server members. |
| [Create a role](https://botghost.com/docs/custom-commands-and-events/actions/role-actions/create-a-role) | This action allows you to create a role within your server. |
| [Delete a role](https://botghost.com/docs/custom-commands-and-events/actions/role-actions/delete-a-role) | Using this action, you can delete a role on your server. |
| [Edit Role](https://botghost.com/docs/custom-commands-and-events/actions/role-actions/edit-role) | Using this action you can edit specific information (such as name, color or permissions) of an existing role. |
---
# Add Roles
Source: https://botghost.com/docs/custom-commands-and-events/actions/role-actions/add-role
Add one or more roles to a server member. You can specify role IDs and target members in specific ways.
> **Warning:** The bot must have the Manage Roles permission and a higher position than the role your trying to assign via the bot.
## Member
This field can specify which ways you would like to target a server member to give them roles. See specifications below.
**Member who used the command**
Select this option to add the selected roles to the member who triggered the command / event or clicked a [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) / [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option).
**Member Option**
Select this option to add the selected roles to the member who was selected in a [user option](https://botghost.com/docs/custom-commands-and-events/options/user-option). Only [user options](https://botghost.com/docs/custom-commands-and-events/options/user-option) in this field may work, IDs and [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in [Member ID](https://botghost.com/docs/custom-commands-and-events/actions/role-actions/add-role#member-id).
### User Option
This field requires a user option to be inside your command.
**Member ID**
Select this option to add the selected roles to a targeted user ID or [variable](https://botghost.com/docs/custom-commands-and-events/variables) that contains a user ID.
### User ID
This field accepts a plain user ID or [variable](https://botghost.com/docs/custom-commands-and-events/variables) that returns a plain user ID. This user ID can't have any spaces or extra symbols, make sure it is a plain user ID.
## Roles Selector
Click the "+" icon to select the server roles you want to add to the user. You are also able to select a created role option from the [create a role](https://botghost.com/docs/custom-commands-and-events/actions/role-actions/create-a-role) block. It will show under "Command Options" in the second image below.
If you don't see the role you are looking for, it was most likely added very recently to your server. Click the refresh icon in the top right corner of the image below and it will refresh the selection to find the role.
## **Additional Roles**
In this field you can add additional roles in the form of plain role IDs only. This field is commonly used to add specific role IDs / [variables](https://botghost.com/docs/custom-commands-and-events/variables). As the field description states, each role ID or variable must be separated by a comma.
.png)
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
.png)
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
.png)
---
# Remove Roles
Source: https://botghost.com/docs/custom-commands-and-events/actions/role-actions/remove-role
Remove one or more roles from a server member. You can specify role IDs and target members in specific ways.
> **Warning:** The bot must have the Manage Roles permission and a higher position than the role you're trying to remove.
## Member
This field can specify which ways you would like to target a server member to remove roles. See specifications below.
**Member who used the command**
Select this option to remove the selected roles to the member who triggered the command / event or clicked a [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) / [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option).
**Member option**
Select this option to remove the selected roles to the member who was selected in a [user option](https://botghost.com/docs/custom-commands-and-events/options/user-option). Only [user options](https://botghost.com/docs/custom-commands-and-events/options/user-option) in this field may work, IDs and [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in [Member ID](https://botghost.com/docs/custom-commands-and-events/actions/role-actions/remove-role#member-id).
### User Option
This field requires a user option to be inside your command.
**Member ID**
Select this option to remove the selected roles to a targeted user ID or [variable](https://botghost.com/docs/custom-commands-and-events/variables) that contains a user ID.
### User ID
This field accepts a plain user ID or [variable](https://botghost.com/docs/custom-commands-and-events/variables) that returns a plain user ID. This user ID can't have any spaces or extra symbols, make sure it is a plain user ID.
## Roles Selector
Click the "+" icon to add roles to select the server roles you want to remove from the user. You are also able to select a created role option from the [create a role](https://botghost.com/docs/custom-commands-and-events/actions/role-actions/create-a-role) block. It will show under "Command Options" in the second image below.
If you don't see the role you are looking for, it was most likely added very recently to your server. Click the refresh icon in the top right corner of the image below and it will refresh the selection to find the role.
## **Additional Roles**
In this field you can add additional roles in the form of plain role IDs only. This field is commonly used to add specific role IDs / [variables](https://botghost.com/docs/custom-commands-and-events/variables). As the field description states, each role ID or variable must be separated by a comma.
.png)
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
.png)
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
.png)
---
# Add Roles to All Users
Source: https://botghost.com/docs/custom-commands-and-events/actions/role-actions/add-roles-to-all-users
.png)
Add a role to all members of a server. You can specify role IDs and users affected in specific ways.
> **Warning:** The bot must have the Manage Roles permission and a higher position than the role your trying to assign via the bot.
## Roles Selector
Click the "+" icon to select the server roles you want to add to all users.
## **Additional Roles**
In this field you can add additional roles in the form of plain role IDs only. This field is commonly used to add specific role IDs / [variables](https://botghost.com/docs/custom-commands-and-events/variables). As the field description states, each role ID or variable must be separated by a comma.
.png)
## Reason
This is an optional field. In this field you can input a reason why you are adding a role to everyone in the server. This reason will be shown in your server's audit log. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can also be used in this field.
.png)
## Server ID
In this optional field you can enter the ID of a server that you want to run the action in. This way, you can target servers without triggering a command or event in there. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can also be used in this field.
.png)
## Bot Filtering
In this selection menu you can enter whether or not you want the bot to ignore other bots, meaning the role will not be added to bots in your server.
.png)
> **Important:** This action will add the selected roles to ALL users in the server. This operation cannot be undone and may take time for large servers. Use with caution.
---
# Remove Roles from All Users
Source: https://botghost.com/docs/custom-commands-and-events/actions/role-actions/remove-roles-from-all-users
.png)
Remove a role from all members of a server. You can specify role IDs and users affected in specific ways.
> **Warning:** The bot must have the Manage Roles permission and a higher position than the role your trying to remove via the bot.
## Roles Selector
Click the "+" icon to select the server roles you want to remove from all users.
## **Additional Roles**
In this field you can add additional roles in the form of plain role IDs only. This field is commonly used to add specific role IDs / [variables](https://botghost.com/docs/custom-commands-and-events/variables). As the field description states, each role ID or variable must be separated by a comma.
.png)
## Reason
This is an optional field. In this field you can input a reason why you are removing a role from everyone in the server. This reason will be shown in your server's audit log. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can also be used in this field.
.png)
## Server ID
In this optional field you can enter the ID of a server that you want to run the action in. This way, you can target servers without triggering a command or event in there. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can also be used in this field.
.png)
## Bot Filtering
In this selection menu you can enter whether or not you want the bot to ignore other bots, meaning the role will not be removed from bots in your server.
.png)
## Remove all Roles
You can enable this section if you wish the bot to remove all roles from all users in a server. This will ignore all settings above.
.png)
> **Important:** This action will remove the selected roles from ALL users in the server. This operation cannot be undone and may take time for large servers. Use with caution.
---
# Create a role
Source: https://botghost.com/docs/custom-commands-and-events/actions/role-actions/create-a-role
Create a new Role in the server. You can choose various modifications to enhance the role or leave some fields blank to be default.
> **Warning:** The bot must have the Manage Roles permission in order to create a role.
## Name
This field will set the name of the role that the bot will create. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in this field.
## Reason
This field is an optional reason for creating the new role. This reason will show in the audit log of the server that the command / event was executed in. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used as well.
## Position
This field is optional and changes the position of the new role in your server. Leave this blank for default positioning. Positions are all arranged from bottom (default) to top. This field only accepts integers and [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
## Color
This field is optional and changes the color of the role the bot is creating. **This field only accepts a HEX format.** Server members use the color of the highest position role they have. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used. Leaving this field blank will make it a default grey color.
Hex format example: #af5555
## **Display role members separately from online members**
This switch controls whether the role is hoisted or not.
*Blue role is not hoisted*
## Mentionable
This switch will allow anyone to mention / @ this role, even if they don't possess the mention @everyone / @here permission.
## Permissions
Click the "+" to attach certain permissions to the role the bot is creating. Leave this field blank to have no permissions. Visit this [link](https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags) to learn more about permissions.
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
.png)
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
.png)
---
# Delete a role
Source: https://botghost.com/docs/custom-commands-and-events/actions/role-actions/delete-a-role
Delete a Role in the server. You can specify specific roles from your server or an ID / [Variable](https://botghost.com/docs/custom-commands-and-events/variables).
> **Warning:** The bot must have Manage Roles permission in order to delete roles.
## Role Type
This selection will specify the targeted role to delete.
**Specific Role**
This selection will allow you to select a specific role from your server to delete. It will show a dropdown menu to allow the selection.
### Specific Role
This is a dropdown menu allowing you to select a role from any server the bot is in. Remember that if the role you're trying to select isn't there, it most likely means it was very recently added, simply click the refresh icon next to the "?" in the image below to find your role.
**Role ID or Variable**
This selection can target specific roles by their ID to delete. Selecting this type will prompt a new field to appear to input a ID or [Variable](https://botghost.com/docs/custom-commands-and-events/variables).
### Role ID or Variable
This field accepts a plain role ID or [variable](https://botghost.com/docs/custom-commands-and-events/variables) that returns a plain role ID. This role ID can't have any spaces or extra symbols, make sure it is a plain role ID.
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
.png)
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
.png)
---
# Edit Role
Source: https://botghost.com/docs/custom-commands-and-events/actions/role-actions/edit-role
The Edit a role block will edit a role in your server. Editing can modify different aspects of an already existing role. Some fields can be left blank for no changes to occur.
## Role
This selection will specify the method of targeting the role that will be edited.
**Role Option**
This selection will target a [role option](https://botghost.com/docs/custom-commands-and-events/options/role-option) which will contain the role for the bot to delete when the command is executed. Only [role options](https://botghost.com/docs/custom-commands-and-events/options/role-option) in this field may work, IDs and [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in [Role ID](https://botghost.com/docs/custom-commands-and-events/actions/role-actions/edit-role#role-id).
### Role Option
You must have a [role option](https://botghost.com/docs/custom-commands-and-events/options/role-option) added in your command for this to work.
**Role ID**
This selection will target a specific role ID / [variable](https://botghost.com/docs/custom-commands-and-events/variables) to delete.
### Role ID
This field accepts a plain role ID or [variable](https://botghost.com/docs/custom-commands-and-events/variables) that returns a plain role ID. This role ID can't have any spaces or extra symbols, make sure it is a plain role ID.
## Name
The new name for the role the bot is editing. Leave this blank if you do not wish to change the name.
## Reason
This field is an optional reason for editing the role. This reason will be shown in the audit log of the server that the command / event was executed in.
## Position
This field is optional and changes the position of the edited role in your server. Leave this blank for default positioning. Positions are all arranged from bottom (default) to top. This field only accepts integers and [variables](https://botghost.com/docs/custom-commands-and-events/variables)can be used.
## Color
This field is optional and changes the color of the role the bot is editing. **This field only accepts a HEX format.** Server members use the color of the highest position role they have. [Variables](https://botghost.com/docs/custom-commands-and-events/variables)can be used as well. Leaving this field blank will make it a default grey color.
Hex format example: #af5555
## Display role members separately from online members
This switch controls whether the role is hoisted or not.
*Blue role is not hoisted*
## Mentionable
This switch will allow anyone to mention / @ this role, even if they don't possess the mention @everyone / @here permission.
## Permissions
Click the "+" to attach certain permissions to the role the bot is editing. Leave this field blank to have no permissions. Visit this [link](https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags) to learn more about permissions.
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
.png)
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
.png)
---
# Channel Actions
Source: https://botghost.com/docs/custom-commands-and-events/actions/channel-actions
The command builder offers multiple channel actions. They allow you to create and manage already created channels. Below you may find some general information about each block. Click on its name for more information.
| Block | Information |
| --- | --- |
| [create-a-channel.md](https://botghost.com/docs/custom-commands-and-events/actions/channel-actions/create-a-channel) | The create a channel action allows you to create a channel of any type within a Discord server. |
| [edit-a-channel.md](https://botghost.com/docs/custom-commands-and-events/actions/channel-actions/edit-a-channel) | The edit a channel action allows you to modify an existing channel of any type within a Discord server. |
| [delete-a-channel.md](https://botghost.com/docs/custom-commands-and-events/actions/channel-actions/delete-a-channel) | The delete a channel action allows you to delete an existing channel of any type within a Discord server. |
---
# Create a channel
Source: https://botghost.com/docs/custom-commands-and-events/actions/channel-actions/create-a-channel
The Create a channel action when triggered creates a channel of any type within a Discord server. It can be referenced in any action or condition throughout your bot's commands and events. All variables and options can be used in the content of all fields within the block.
## Variable
The create a channel block also comes with an optional [variable](https://botghost.com/docs/custom-commands-and-events/variables) that can be used in later actions or saved in custom variables. This variable can be set at the top of the block's settings menu. Here is an example of how it can be used.
| Variable | Usage |
| --- | --- |
| `{my_channel}` | This variable will return the ID of the channel. |
| `<#{my_channel}>` | This variable will return the channel mention. |
## Name
The name of the channel is what's displayed in the channel list, the top of the channel, and any references of the channel.
> **Note:** Name is not compatible with markdown.
.png)
## Type
The type of channel defines its function and appearance. You can select from a dropdown that will display the available channel types. Below you can find detailed information about each channel type and how it can be used.
.png)
**Text Channel**
A text channel is a basic channel for Discord users to have text conversations with other server members.
### NSFW
This is an optional toggle to choose whether or not to allow NSFW content within the channel. If chosen, the channel will be age restricted to 18+.
.png)
### Slowmode
This is an optional field, also known as rate limit per user, it allows you to set a slow mode in the created channel for each user unless the user has been bypassed. This field only accepts integers, and [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
**Voice Channel**
A voice channel is a interactive channel based of listening and speaking to other users.
.png)
### User limit
This field represents an optional user limit targeting voice channels only. With a limit in place, only a certain amount of users can be in the voice channel. This field accepts integers only and [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
.png)
**Category Channel**
The Category Channel is a Category that will be made when this type is selected. Categories can have multiple channels under them and sync permissions as well.
.png)
**News Channel**
A News Channel is a announcement channel that can you publish messages from to followed servers.
.png)
## Topic
This optional field modifies the topic of the channel. It may be left blank to leave the topic blank. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
.png)
## Category
Here you can set the ID of the category the channel you're creating is in. You can do this by pasting an ID directly from Discord (learn how [here](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID)) or using a variable that returns a category ID. These can be easily added through the variable selector by clicking the **Clipboard** button. You can also leave this field empty to create the channel above all categories.
.png)
## Optional Server ID
This field is an optional server ID to create the channel in. Leave blank to create the channel in the server the command was triggered in or who clicked a [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) / [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option). [Variables](https://botghost.com/docs/custom-commands-and-events/variables)can be used in this field and it must be a plain server ID that is returned.
.png)
## Permissions
Click the "+" to attach one or more permissions to the channel the bot is creating. Leave this field blank to have default permissions. Visit this [link](https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags) to learn more about permissions. Clicking the button below will allow you to add permissions to the channel.
.png)
.png)
.png)
**Role**
Selecting this dropdown type will make this permission based off a role. Once selected a new field will appear for you to be able to choose which role from your server to base the permissions off of. You are also able to select [role options](https://botghost.com/docs/custom-commands-and-events/options/role-option) from this dropdown.
If your role isn't showing, it was most likely recently added. Click the refresh icon to refresh the list of roles to find the role you want.
**User**
Clicking on the User type will make the bot base the permissions off of a user.
### User
In this field you can input a plain user ID or a [variable](https://botghost.com/docs/custom-commands-and-events/variables) that returns one. [User options](https://botghost.com/docs/custom-commands-and-events/options/user-option) can also be used.
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
.png)
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
.png)
---
# Edit a channel
Source: https://botghost.com/docs/custom-commands-and-events/actions/channel-actions/edit-a-channel
This action block will edit a existing channel in the server with new modifications or permissions.
> **Warning:** Warning: The bot must have Manage Channels to be able to Edit a channel.
## Channel
This is the specific channel that the block will be targeting to edit.
**Channel the command was used in**
This selection will edit the channel that the command / event was executed in or where a [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) / [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option) was clicked.
**Channel Option**
By selecting the [channel option](https://botghost.com/docs/custom-commands-and-events/options/channel-option) type, it will prompt to make a new field where you can input the channel option and the bot will edit that channel. Only channel options can be selected in this field, for IDs and [variables](https://botghost.com/docs/custom-commands-and-events/variables) use [Channel ID](https://botghost.com/docs/custom-commands-and-events/actions/channel-actions/edit-a-channel#channel-id).
### Channel Option
A [channel option](https://botghost.com/docs/custom-commands-and-events/options/channel-option) must be added to the command for this selection to work.
**Channel ID**
This dropdown type will allow the bot to edit the channel with a specific channel ID or [variable](https://botghost.com/docs/custom-commands-and-events/variables).
### Channel ID
Input a plain channel ID into the field below. The ID must be plain and have no extra symbols or spaces. Likewise a [variable](https://botghost.com/docs/custom-commands-and-events/variables) can be used if it returns a plain channel ID.
## Name
This optional field modifies the name of the channel. It may be left blank to leave the name unedited. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
## Topic
This optional field modifies the topic of the channel. It may be left blank to leave the topic unedited. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
> **Warning:** Warning: This only works for Text Channels
## Category
This is an optional field that moves the channel to a different category. It may be left blank to leave the category unedited. This field only accepts plain category IDs or [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used such as a [text option](https://botghost.com/docs/custom-commands-and-events/options/text-option).
## Slowmode
This is an optional field, also known as rate limit per user, it allows you to set a slow mode in the edited channel for each user unless the user has been bypassed. This field only accepts integers, and [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
> **Warning:** Warning: This only works for Text Channels
## NSFW
This is an optional toggle to choose whether or not to allow NSFW content within the channel. If chosen, the channel will be age restricted to 18+.
> **Warning:** Warning: This only works for Text Channels
## User Limit
This field represents an optional user limit targeting voice channels only. With a limit in place, only a certain amount of users can be in the voice channel. This field accepts integers only and [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
> **Warning:** Warning: This only works for Voice Channels
## Optional Server ID
This field is an optional server ID to search for the channel in. Leave blank to find the channel in the server the command was triggered in or who clicked a [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) / [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option). [Variables](https://botghost.com/docs/custom-commands-and-events/variables)can be used in this field and it must be a plain server ID that is returned.
## Reason
This field is an optional reason of why the bot is editing this channel. This reason will appear in your server's Audit Log. [Variables](https://botghost.com/docs/custom-commands-and-events/variables)can be used as well.
## Merge Permissions
Instead of having your permissions overwritten when you edit a channel, you can merge the permissions you specify with the already existing permissions set in the channel.
.png)
*What the merge permission option looks like in the builder*
If you enable this option, the permissions you specify will be merged with the permissions that are already in the channel. It won't touch or edit any permissions that are not specified.
If you leave this option disabled, the permissions in the channel will be overwritten with the permissions that you specify.
## Permissions
Click the "+" to attach one or more permissions to the channel the bot is editing. Leave this field blank to have default permissions. Visit this [link](https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags) to learn more about permissions. Clicking the button below will allow you to add permissions to the channel.
**Role**
Selecting this dropdown type will make this permission based off a role. Once selected a new field will appear for you to be able to choose which role from your server to base the permissions off of. You are also able to select [role options](https://botghost.com/docs/custom-commands-and-events/options/role-option) from this dropdown.
If your role isn't showing, it was most likely recently added. Click the refresh icon to refresh the list of roles to find the role you want.
**User**
Clicking on the User type will make the bot base the permissions off of a user.
### User
In this field you can input a plain user ID or a [variable](https://botghost.com/docs/custom-commands-and-events/variables) that returns one. [User options](https://botghost.com/docs/custom-commands-and-events/options/user-option) can also be used.
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
.png)
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
.png)
---
# Delete a channel
Source: https://botghost.com/docs/custom-commands-and-events/actions/channel-actions/delete-a-channel
This action block will delete any channel input, in any server the bot is in.
> **Warning:** Warning: Your bot must have Manage Channel Permission to be able to Delete a channel.
## **Channel**
This dropdown is where you can choose which method to target the channel that you need deleted.
**Specific Channel**
This type when selected will make a new dropdown appear for where you can choose which specific channel from a server to delete.
### Specific Channel
This is the dropdown as seen below. "Command Options" is where you can choose options from the command to be deleted. In this case it would delete a channel selected from the channel option.
.png)
**Note: If you don't see the channel you wish for, click the refresh icon next to the title.**
**Channel ID or Variable**
This selection will target a specific channel ID or [variable](https://botghost.com/docs/custom-commands-and-events/variables) to delete.
### Channel ID or Variable
This field is where you input a plain channel ID or a [variable](https://botghost.com/docs/custom-commands-and-events/variables) that returns a plain channel ID.
The ID must have no extra symbols or spaces.
.png)
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
.png)
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
.png)
---
# Thread and Forum Actions
Source: https://botghost.com/docs/custom-commands-and-events/actions/thread-and-forum-actions
The command / event builder has actions that allows the bot to modify threads. These threads can be public or private. The table below shows the available actions.
| Block | Information |
| --- | --- |
| [Create a Thread](https://botghost.com/docs/custom-commands-and-events/actions/thread-and-forum-actions/create-a-thread) | This block will create a certain type of thread in a forum or other channel. A [variable](https://botghost.com/docs/custom-commands-and-events/variables) will be given to use as well. |
| [Edit a Thread](https://botghost.com/docs/custom-commands-and-events/actions/thread-and-forum-actions/edit-a-thread) | This block will edit a existing thread. You can make all kinds of new modifications as needed. |
| [Delete a Thread](https://botghost.com/docs/custom-commands-and-events/actions/thread-and-forum-actions/delete-a-thread) | This block will delete a existing thread. You may target a specific channel as well. |
---
# Create a Thread
Source: https://botghost.com/docs/custom-commands-and-events/actions/thread-and-forum-actions/create-a-thread
> **Warning:** This action cannot be used for forum channels! For forum thread creation, use discord API [here](https://discord.com/developers/docs/resources/channel#start-thread-in-forum-or-media-channel).
The **Create a Thread** block enables you to create threads within your server through commands or events.
Each created thread has a unique variable that you can use to reference the thread in your command and can be identified by just looking for `{created_thread_xyz}`.
## Channel
To create the thread, you need to specify what channel you are going to create the thread in. There is three provided options to achieve this.
.png)
**Channel the command was run in**
This selection will create the thread in the channel that the command / event was executed in or where a [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) / [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option) was clicked.
**Channel option**
By selecting the [channel option](https://botghost.com/docs/custom-commands-and-events/options/channel-option) type, it will prompt to make a new field where you can select the channel option and the bot will create the thread there. Only channel options can be selected in this field, for IDs and [variables](https://botghost.com/docs/custom-commands-and-events/variables) use [Channel ID](https://botghost.com/docs/custom-commands-and-events/actions/thread-and-forum-actions/create-a-thread#channel-id).
### Channel Option
A [channel option](https://botghost.com/docs/custom-commands-and-events/options/channel-option) must be added to the command for this selection to work.
**Channel ID**
This selection will allow the bot to create the thread in a specific channel ID or [variable](https://botghost.com/docs/custom-commands-and-events/variables).
### Channel ID
Input a plain channel ID into the field below. The ID must be plain and have no extra symbols or spaces. Likewise a [variable](https://botghost.com/docs/custom-commands-and-events/variables) can be used if it returns a plain channel ID.
## Start Message ID
This an optional field allows you to create the thread from a specific message. The only input for this field is a plain message ID with no extra symbols or spaces. A [variable](https://botghost.com/docs/custom-commands-and-events/variables) can be used as well.
.png)
## Name
This is a required option, and it is the name of the thread that you want to create. You can use [variables](https://botghost.com/docs/custom-commands-and-events/variables) or [options](https://botghost.com/docs/custom-commands-and-events/options) as well.
.png)
## Type
This is an optional option (public is default), and it is the type of thread that you want to create. You can choose from 3 types of thread types.
.png)
| Type | Information |
| --- | --- |
| Public Thread | This type of thread is public which means it can be viewed by everyone in the server or everyone who has access to the channel it is in. |
| Private Thread | This is the opposite of the Public Thread type which means it can't be viewed by everyone. |
| Announcement Thread | This thread works similar to an announcement channel, any message in this thread can be published. |
## Auto Archive
This is an optional field, and it is the time in which the thread will auto-archive itself. You can choose from 4 options:
- One Hour
- One Day
- Three Days
- One Week
.png)
## Reason
This is an optional field. In this field you can input a reason why you are creating a thread. This reason will be shown in your server's audit log. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can also be used in this field.
.png)
## Slowmode
This is an optional field, also known as rate limit per user, it allows you to set a slowmode in the thread for each user unless the user has been bypassed. This field only accepts integers, and [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
.png)
## Moderators Invite
This option is only valid if the thread type is a Private Thread. This field is optional and it allows you to toggle whether a non-moderator can invite other users to the thread.
.png)
## Variables
You can now access various variables from the created thread and use them throughout your custom command (as long as it is in the same interaction).
You can use these variables by just adding them to the end of the `{created_thread_abcd}` variable, but before the `}`. The 4 characters "abcd" are shown in your create thread block at the top.
An example to get the name would be like this: `{created_thread_48f3.name}`.
| Name | Description |
| --- | --- |
| .name | Returns the name of the thread |
| .id | Returns the ID of the thread |
| .parent | Returns the parent channel of the thread |
| .parent_id | Returns the parent's ID of the thread |
| .archived | Returns whether the thread is archived or not (as `true` or `false`) |
| .locked | Returns whether the thread is locked or not (as `true` or `false`) |
| .invitable | Returns whether a non-moderator can invite users to the thread or not (as `true` or `false`) |
| .owner_id | Returns the thread owner's ID |
| .url | Returns the url of the thread |
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
.png)
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
.png)
---
# Edit a Thread
Source: https://botghost.com/docs/custom-commands-and-events/actions/thread-and-forum-actions/edit-a-thread
> **Warning:** This action cannot be used for forum channels!
The **Edit a Thread** block enables you to edit any existing thread in your servers that the bot is in.
Each edited thread has a unique variable that you can use to reference the thread in your command and can be identified by just looking for `{edited_thread_xyz}`.
## Channel
To edit a thread, you need to specify where the thread is. There are three provided options to achieve this.
**Thread the command was run in**
This selection will edit the thread in the channel where the command / event was executed in. To use specific channels and [variables](https://botghost.com/docs/custom-commands-and-events/variables) use [Channel and Thread ID](https://botghost.com/docs/custom-commands-and-events/actions/thread-and-forum-actions/edit-a-thread#channel-and-thread-id) or [Channel Option and Thread ID](https://botghost.com/docs/custom-commands-and-events/actions/thread-and-forum-actions/edit-a-thread#channel-option-and-thread-id).
**Channel and Thread ID**
This selection will edit the specified thread in the channel that is also specified. Both are specified by an ID not a selection.
### Channel ID
This field is where you input a plain channel ID. There can be no extra symbols or spaces. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) an also be used as long as it returns a plain channel ID.
### Thread ID
This field is where you input a plain thread ID. Same as a channel ID, no symbols or spaces. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
**Channel Option and Thread ID**
This selection will edit a specified thread ID in the channel selection via a [channel option](https://botghost.com/docs/custom-commands-and-events/options/channel-option).
### Channel Option
This field is a selection where you can choose which option to target. This selection will only work if you have a channel option in your command.
.png)
### Thread ID
This field accepts a plain thread ID with no extra symbols or spaces to target. The targeted thread ID will then be edited only if it is in that channel option. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
.png)
## Name
This is an optional field, and it is the name of the thread that you want to edit. You can use [variables](https://botghost.com/docs/custom-commands-and-events/variables) or [options](https://botghost.com/docs/custom-commands-and-events/options) as well.
.png)
## Auto Archive
This is an optional selection, and it is the time in which the thread will auto-archive itself. You can choose from 4 options:
- One Hour
- One Day
- Three Days
- One Week
.png)
## Reason
An optional field that, you can input a reason why you are editing a thread. Variables can be used in this field as well. The reason will show in your server's audit log.
.png)
## Slowmode
This is an optional field, also known as rate limit per user, it allows you to set a slow mode in the thread for each user unless the user has been bypassed. This field only accepts integers, and [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
.png)
## Moderators Invite
This an optional toggle that only shows if the thread type is Private Thread. It allows you to toggle whether a non-moderator can invite other users to the thread.
.png)
## Locked
An optional toggle that is used if you want to lock the thread, meaning that only moderators can send messages if the thread has been locked.
.png)
## Archived
An optional field, this is used when you want to archive the thread, putting it into an archived state.
.png)
## Variables
You can now access various variables from the created thread and use them throughout your custom command (as long as it is in the same interaction).
You can use these variables by just adding them to the end of the `{edited_thread_abcd}` variable, but before the `}`. The 4 characters "abcd" are shown in your create thread block at the top.
.png)
An example to get the name would be like this: `{edited_thread_48f3.name}`.
| Name | Description |
| --- | --- |
| .name | Returns the name of the thread |
| .id | Returns the ID of the thread |
| .parent | Returns the parent channel of the thread |
| .parent_id | Returns the parent's ID of the thread |
| .archived | Returns whether the thread is archived or not (as true or false) |
| .locked | Returns whether the thread is locked or not (as true or false) |
| .invitable | Returns whether a non-moderator can invite users to the thread or not (as true or false) |
| .owner_id | Returns the thread owner's ID |
| .url | Returns the url of the thread |
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
.png)
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
.png)
---
# Delete a Thread
Source: https://botghost.com/docs/custom-commands-and-events/actions/thread-and-forum-actions/delete-a-thread
> **Warning:** This action cannot be used for forum channels!
This action allows you to delete a thread in your server.
## Channel
To delete a thread, you need to specify where the thread is. We provide you with 2 options to achieve this:
**Thread the command was run in**
This selection will delete the thread in the channel where the command / event was executed in. To use specific channels and [variables](https://botghost.com/docs/custom-commands-and-events/variables) use [Channel and Thread ID](https://botghost.com/docs/custom-commands-and-events/actions/thread-and-forum-actions/delete-a-thread#channel-and-thread-id) or [Channel Option and Thread ID](https://botghost.com/docs/custom-commands-and-events/actions/thread-and-forum-actions/delete-a-thread#channel-option-and-thread-id).
**Channel and Thread ID**
This selection will delete the specified thread in the channel that is also specified. Both are specified by an ID not a selection.
### Channel ID
This field is where you input a plain channel ID. There can be no extra symbols or spaces. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) an also be used as long as it returns a plain channel ID.
### Thread ID
This field is where you input a plain thread ID. Same as a channel ID, no symbols or spaces. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
**Channel Option and Thread ID**
This selection will delete a specified thread ID in the channel selection via a [channel option](https://botghost.com/docs/custom-commands-and-events/options/channel-option).
### Channel Option
This field is a selection where you can choose which option to target. This selection will only work if you have a channel option in your command.
### Thread ID
This field accepts a plain thread ID with no extra symbols or spaces to target. The targeted thread ID will then be deleted only if it is in that channel option. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
.png)
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
.png)
---
# Server Actions
Source: https://botghost.com/docs/custom-commands-and-events/actions/server-actions
Server actions are action blocks that allows the bot to perform server related actions that affect a server member or manage the server.
| Block | Information |
| --- | --- |
| [Kick a member](https://botghost.com/docs/custom-commands-and-events/actions/server-actions/kick-a-member) | This block will kick a specified member from a server. |
| [Ban a member](https://botghost.com/docs/custom-commands-and-events/actions/server-actions/ban-a-member) | This block will ban a specified member from a server. |
| [Timeout a member](https://botghost.com/docs/custom-commands-and-events/actions/server-actions/timeout-a-member) | This block will timeout a specified member from a server. |
| [Change a members nickname](https://botghost.com/docs/custom-commands-and-events/actions/server-actions/change-a-members-nickname) | With this block you are able to change a server members' nickname. |
| [Purge messages](https://botghost.com/docs/custom-commands-and-events/actions/server-actions/purge-messages) | This block allows you to purge a specific amount of messages in a specific channel. |
| [Leave Server](https://botghost.com/docs/custom-commands-and-events/actions/server-actions/leave-server) | With this action, you can make the bot to leave a server. |
| [Create Server Invite](https://botghost.com/docs/custom-commands-and-events/actions/server-actions/create-server-invite) | This block will create a server invite for a specific server that can be created to have many specifications, such as uses, duration, etc. |
---
# Kick a member
Source: https://botghost.com/docs/custom-commands-and-events/actions/server-actions/kick-a-member
This action block can be used to kick a member from a server that the bot has access to.
> **Warning:** The bot must at least have the kick member permission for this block to work and must be above the targeted user.
## User ID
This field targets a user ID to be kicked. This can be done by a **user id**, [**user option**](https://botghost.com/docs/custom-commands-and-events/options/user-option)**, or** [**variable**](https://botghost.com/docs/custom-commands-and-events/variables).
Keep in mind the variable has to return a plain user ID with no extra symbols or spaces.
## Reason
This is an optional field. In this field you can input a reason why you are kicking a member. This reason will be shown in your server's audit log. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can also be used in this field.
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
.png)
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
.png)
---
# Ban a member
Source: https://botghost.com/docs/custom-commands-and-events/actions/server-actions/ban-a-member
This action block can be used to ban a member from a server that the bot has access to.
> **Warning:** The bot must have at least the ban member permission for this block to work and must be above the targeted user.
## User ID
This field targets a user ID to be banned. This can be done by a **user id**, [**user option**](https://botghost.com/docs/custom-commands-and-events/options/user-option)**, or** [**variable**](https://botghost.com/docs/custom-commands-and-events/variables). Keep in mind the variable has to return a plain user ID with no extra symbols or spaces.
## Reason
This is an optional field. In this field you can input a reason why you are banning a member. This reason will be shown in your server's audit log. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can also be used in this field.
## Afterwards
**Afterwards** picks what happens once the member is banned:
- **Keep them banned** (to start with): a normal ban. They stay banned until someone unbans them.
- **Unban straight away**: a softban. The bot bans them, then unbans them a moment later. They're removed and the messages picked in **Delete their messages** are deleted from every channel, but they can rejoin with an invite. If **Delete their messages** is set to **None**, the block warns you that this works like a kick.
- **Unban reason**: optional. Shown in your server's audit log for the unban. Leave it empty and it says **Softban**.
- `{ban_banned}`: `true` once the ban worked, `false` when the ban failed.
- `{ban_unbanned}`: `true` once they're unbanned again, `false` when the unban failed.
- `{ban_banned}` `true` with `{ban_unbanned}` `false` means they're still banned: only the unban failed. The block then goes down its error path with a reason starting "Banned, but the unban failed".
- **Unban after a set time**: a temporary ban. The bot bans them now and unbans them when the time is up, from 1 minute to 90 days, even after a restart. It shows while **Undo After a Set Time** is on in your Builder Settings, or when the block already uses it.
A softban also works with **Ban people who aren't in the server**: the bot bans the user ID, deleting their messages, then unbans it. The [Honeypot](https://botghost.com/docs/server-management/honeypot) module uses this to remove spam accounts and their scam messages while letting the real owner come back.
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
.png)
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
.png)
---
# Timeout a member
Source: https://botghost.com/docs/custom-commands-and-events/actions/server-actions/timeout-a-member
This action block can be used to timeout a member from a server that the bot has access to.
> **Warning:** The bot must at least have the timeout members permission for this block to work and must be above the targeted user.
## User ID
This field targets a user ID to be timed out. This can be done by a **user id**, [**user option**](https://botghost.com/docs/custom-commands-and-events/options/user-option)**, or** [**variable**](https://botghost.com/docs/custom-commands-and-events/variables). Keep in mind the variable has to return a plain user ID with no extra symbols or spaces.
## Duration
This field modifies the duration of the timeout that the member will be placed upon. The duration follows a specific format that must be inputted correctly. The field describes said format below.
[Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in this field as long as it returns the value in the correct format.
## Reason
This is an optional field. In this field you can input a reason why you are timing-out a member. This reason will be shown in your server's audit log. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can also be used in this field.
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
.png)
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
.png)
---
# Change a members nickname
Source: https://botghost.com/docs/custom-commands-and-events/actions/server-actions/change-a-members-nickname
This action block changes the nickname of a member in a server. You can specify / target a specific user to change the nickname of.
> **Warning:** Warning: The bot must have Change Nickname permissions to be able to change a member(s) nickname.
## Member
**User who used the command**
If this type is chosen, the bot will change the nickname of whoever executed the command / event or who clicked the [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) / [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option).
**User Option**
Selecting "user option" will change the nickname of the user selected inside the command from the user option.
### User option
You must have a user option added in the command in order for this field to work.
Only [user options](https://botghost.com/docs/custom-commands-and-events/options/user-option) may be used in this field, IDs and [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in [User ID](https://botghost.com/docs/custom-commands-and-events/actions/server-actions/change-a-members-nickname#user-id)
**User ID**
This selection will change the nickname of the user and it will target a specific user ID or [variable](https://botghost.com/docs/custom-commands-and-events/variables)that contains a user ID.
### User ID
This field accepts any plain user ID with no extra symbols or spaces. The ID can be in the form of a [variable](https://botghost.com/docs/custom-commands-and-events/variables)as well.
## New Nickname
This field is the new nickname that you want to change the userβs nickname to. You can use [variables](https://botghost.com/docs/custom-commands-and-events/variables) and [options](https://botghost.com/docs/custom-commands-and-events/options) inside this field.
## Reason
This is an optional field. In this field you can input a reason why you are changing a members nickname. This reason will be shown in your server's audit log. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can also be used in this field.
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
.png)
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
.png)
---
# Purge Messages
Source: https://botghost.com/docs/custom-commands-and-events/actions/server-actions/purge-messages
The purge messages action block will allow you purge a specific amount of messages in a specfic channel.
> **Warning:** If messages are older than 14 days, they can't be deleted, unless you're deleting only 1 message.
## **Channel**
**This channel**
This type will purge messages in the channel that the command / event was executed in or where a [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) / [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option) was clicked.
**A specific channel**
Selecting this option will target a specific channel you choose to purge messages in.
### **From a block**
Allows you to select the channel to purge messages in from a channel/thread the bot created within this command/event.
### From the server
Allows you to select a specific channel from a server the bot is in.
### ID or variable
Allows you to input a plain channel ID / [variable](https://botghost.com/docs/custom-commands-and-events/variables) or a [channel option](https://botghost.com/docs/custom-commands-and-events/options/channel-option).
## **How many**
This field is the amount of messages that will be purged. It only accepts integers / [variables](https://botghost.com/docs/custom-commands-and-events/variables) that return a integer.
## Keep Pinned Messages
This toggle will allow you to have the bot ignore messages that are currently pinned when purging.
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
---
# Create Server Invite
Source: https://botghost.com/docs/custom-commands-and-events/actions/server-actions/create-server-invite
The Create Server Invite block is self explanatory and creates a server invite for a specific server.
## Channel
This dropdown menu is the channel target for the server invite. You will have the three standard options to choose from.
**Channel the command was run in**
If this type is selected, the server invite will be targeted towards the channel the command / event was run in.
**Channel Option**
Selecting "channel option" will have the server invite target the channel a user selected inside the command from the [channel option](https://botghost.com/docs/custom-commands-and-events/options/channel-option).
### Channel Option
You must have a channel option added in the command in order for this field to work.
Only [channel options](https://botghost.com/docs/custom-commands-and-events/options/channel-option) may be used in this field, IDs and [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in [Channel ID](https://botghost.com/docs/custom-commands-and-events/actions/server-actions/create-server-invite#channel-id)
**Channel ID**
This type selected from the dropdown will have the server invite target a specific channel ID or [variable](https://botghost.com/docs/custom-commands-and-events/variables)that contains a channel ID.
### Channel ID
This field accepts any plain channel ID with no extra symbols or spaces. The ID can be in the form of a [variable](https://botghost.com/docs/custom-commands-and-events/variables)as well.
## Invite Duration
This field is modifies how long the server invite will be valid (in seconds) for until expiration. The field only accepts integers, 0 being the duration is infinite. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
## Max Uses
Similar to the duration field, this field is the number of uses the invite can have until it is unusable. Likewise, it only accepts integers and [variables](https://botghost.com/docs/custom-commands-and-events/variables). Having it set to 0 will make the amount of uses infinite.
## Temporary
This dropdown menu represents a temporary kick system. If the user doesn't receive a role in 24 hours upon them joining off the invite created, they will be kicked. You can enable to disable this by making them temporary or not.
## Unique Invite
This dropdown menu represents whether the invite is unique or is based off another invite. If the "user a existing invite" is selected, then the bot will create the invite with similar settings based off other invites in that server.
## Optional Server ID
This field is where you input a plain server ID to for the server invite to target the channel in. This field can be left blank to target the server of wherever the command / event was triggered in or where a user clicked a [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) / [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option). A [variable](https://botghost.com/docs/custom-commands-and-events/variables) containing a plain server ID that has no spaces or extra symbols can be used as well.
## Invite Variable
This field is however the variable that returns the server invite URL will be returned. This is similar to the [set a unique variable](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/set-a-unique-variable) block, so you can name your variable whatever you wish inside {}. You can then use this invite variable in later actions.
## Enable Success/Error Handles
Enable Success / Error Handles to detect success and errors inside of the action block. This allows you to run different actions if something goes wrong with your action. Inside of the handle, there are 2 different paths which are used to detect the outcome of the action. The green path on the bottom left side of the block indicates success, while the red path on the bottom right side of the block indicates error. You may attach action blocks to each side of the handle to get the outcome of your action block.
.png)
The Success/Error Handles feature includes 3 different error variables you can use to get information on why the action block encountered an error. Check them out [here](https://botghost.com/docs/custom-commands-and-events/variables#error-variables).
.png)
---
# Leave Server
Source: https://botghost.com/docs/custom-commands-and-events/actions/server-actions/leave-server
.png)
With the "Leave Server" action you can force the bot to leave a server. Please note this action cannot be undone and the bot will need to be re-invited to rejoin the server, so consider adding a confirmation step before using this action.
## Target Server
.png)
This dropdown menu is the channel target for the server invite. You will only have two options to choose from.
**Current Server**
If this type is selected, the bot will leave the server where the command has been ran.
**Server ID**
If this type is selected, the bot will leave the server entered in the field below by ID or variable.
## Server ID
.png)
In this field you can enter the server ID or variable of the server that you want to leave with the bot.
---
# Other Actions
Source: https://botghost.com/docs/custom-commands-and-events/actions/other-actions
This section of actions are other actions that don't really fall under a specific category but are very useful in creating a command or event and can help with specific systems or projects.
| Block | Information |
| --- | --- |
| [Wait before running another action](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/wait-before-running-another-action) | This action block can force the bot to wait some time before performing another action. |
| [Manipulate some text](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text) | This block can be used to manipulate text in certain ways to fit your needs. |
| [Send a error log message](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/send-an-error-log-message) | With this block you will be able to send an error log message to your BotGhost dashboard. |
| [Set a unique variable](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/set-a-unique-variable) | This block allows one to set a unique variable that can only be used in later actions of an event or command builder. |
| [Change the Bot's Status](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/change-the-bots-status) | Using this block you are able to update your bot's status. (Premium only) |
| [Note](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/note) | Allows you to place a note inside of your command or event builder, useful for saving information. |
---
# Wait before running another action
Source: https://botghost.com/docs/custom-commands-and-events/actions/other-actions/wait-before-running-another-action
The "Wait before running another action" action has the ability to wait a predefined amount of time before running the next action / condition in the command / event builder.
## Wait Time
The Wait Time field represents the amount of seconds the bot will wait before running the next block. This field accepts only a plain integer and the max amount of seconds it can wait is 850. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used as well.
---
# Manipulate some text
Source: https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text
.jpg)
*Manipulate some text Action Block*
With the 'Manipulate some text' block you are able to provide a text and perform text operations like getting the length of the text, trimming text or checking if the text starts or ends with another string.
## Text
The text to perform manipulations on. All [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in this field.
*Text Parameter of the Manipulate some text block*
## Text Operation
The type of text manipulation to perform on the provided [Text](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#text) string. There are several operations to choose from. Below you can find detailed information about each operation and how it can be used.
> **Note:** You can see a list of string methods in the action, or [view more detailed descriptions](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String).
**Length & Position**
| Operation | Information |
| --- | --- |
| [Get Length](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#get-length) | Returns the number of characters in the string. |
| [Character At](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#character-at) | Returns the character at the position of the specified index in the string. |
| [Index Of](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#index-of) | Returns the index position of the first appearance of a specified query in the string. |
| [Last Index Of](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#last-index-of) | Returns the index position of the last appearance of a specified query in the string. |
---
## Get Length
The Get Length operation allows you to return the number of characters of the text provided.
### Examples
| Text | Result |
| --- | --- |
| `Hello World!` | 12 |
| `BotGhost` | 8 |
## Character At
The Character At operation returns the character at the specified index.
### Index
The position of the character in the string that you'd like to return. Indexes start at 0. All [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in this input.
*Text Operation - Index of the Manipulate some text block*
### Examples
| Text | Index | Result |
| --- | --- | --- |
| `Hello World!` | 0 | `H` |
| `Hello World!` | 1 | `e` |
| `Hello World!` | 7 | `o` |
| `BotGhost` | 4 | `h` |
---
## Index Of
The Index Of operation returns the index of the first character of the given portion of text. If there are multiple matches, the first match is returned. If there are no matches, `-1` is returned.
### Search
The text to find the index of. This input is case sensitive. All [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in this input.
.png)
### Examples
| Text | Search | Result |
| --- | --- | --- |
| `Hello World!` | `e` | 1 |
| `Hello World!` | `World` | 6 |
| `Hello World!` | `BotGhost` | -1 |
| `yes, goodbye` | `ye` | 0 |
---
## Last Index Of
The Last Index Of operation returns the index of the first character of the given portion of text. If there are multiple matches, the last match is returned. If there are no matches, `-1` is returned.
### Search
The text to find the last index of. This input is case sensitive. All [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in this input.
.png)
### Examples
| Text | Search | Result |
| --- | --- | --- |
| `Hello World!` | `o` | 7 |
| `Hello World!` | `Hello` | 0 |
| `Hello World!` | `BotGhost` | -1 |
| `BotGhost is cool, isn't it?` | `is` | 18 |
**Substring**
| Operation | Information |
| --- | --- |
| [Substring](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#substring-1) | Returns an extracted portion of text. |
| [Slice](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#slice) | Returns an extracted portion of text. |
---
## Substring
The Substring operation allows you to extract text between the start and end indexes. It works similarly to the [Slice](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#slice) operation. You can learn more about the differences between the Slice and Substring operations [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring#differences_between_substring_and_slice).
### Start Index and End Index
The character index to start extraction from and the character index to end extraction at. The end index represents the index of the first character that should not be included. Indexes start at 0. All variables can be used in this input.
*Text Operation - Start Index and End Index of the Manipulate some text block*
### Examples
| Text | Start Index | End Index | Result |
| --- | --- | --- | --- |
| `Hello World` | 0 | 7 | `Hello W` |
| `Hello World` | 6 | 11 | `World` |
| `BotGhost` | 4 | 8 | `host` |
---
## Slice
The Slice operation allows you to extract text between the start and end indexes. It works similarly to the [Substring](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#substring-1) operation. You can learn more about the differences between the Slice and Substring operations [here](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/substring#differences_between_substring_and_slice).
### Start Index and End Index
The character index to start extraction from and the character index to end extraction at. The end index represents the index of the first character that should not be included. Indexes start at 0. All variables can be used in this input.
*Text Operation - Start Index and End Index of the Manipulate some text block*
### Examples
| Text | Start Index | End Index | Result |
| --- | --- | --- | --- |
| `Hello World!` | 0 | 7 | `Hello W` |
| `Hello World!` | 6 | 11 | `World` |
| `BotGhost` | 4 | 8 | `host` |
**Case & Whitespace**
| Operation | Information |
| --- | --- |
| [To Uppercase](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#to-uppercase) | Returns the text with all letter characters displaying in uppercase. |
| [To Lowercase](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#to-lowercase) | Returns the text with all letter characters displaying in lowercase. |
| [Trim](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#trim) | Returns the text with no space characters ( ) at the start or end of the string. |
---
## To Uppercase
The To Uppercase operation converts the provided text to uppercase.
### Examples
| Text | Result |
| --- | --- |
| `Hello World` | `HELLO WORLD` |
| `HELLO WORLD!` | `HELLO WORLD!` |
| `botghost` | `BOTGHOST` |
---
## To Lowercase
The To Lowercase operation converts the provided text to lowercase.
### Examples
| Text | Result |
| --- | --- |
| `Hello World` | `hello world` |
| `HELLO WORLD!` | `hello world!` |
| `botghost` | `botghost` |
---
## Trim
The trim operation allows you to remove whitespaces from the start and end of the provided text.
### Examples
| Text | Result |
| --- | --- |
| `Hello World` | `Hello World` |
| `Hello World` | `Hello World` |
| `BotGhost` | `BotGhost` |
**Search & Match**
| Operation | Information |
| --- | --- |
| [Includes](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#includes) | Returns true or false based on if the text includes a string. |
| [Starts With](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#starts-with) | Returns true or false based on if the text starts with a string. |
| [Ends With](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#ends-with) | Returns true or false based on if the text ends with a string. |
| [Match](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#match) | Returns matches based on regular expressions. |
| [Search](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#search-2) | Returns indexes based on regular expressions. |
---
## Includes
The Includes operation checks if your string contains a specific portion of text. It returns `true` when it does, and `false` when it doesn't. You can alternatively use the `contains` comparison type in the [Comparison Condition](https://botghost.com/docs/custom-commands-and-events/conditions/comparison-condition) block.
### Search
The text that is compared to the original string. This input is case sensitive. All [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in this input.
.png)
### Examples
| Text | Search | Result |
| --- | --- | --- |
| `Hello World` | `World` | `true` |
| `Hello World` | `lo Wor` | `true` |
| `Hello World` | `o` | `true` |
| `Hello World` | `BotGhost` | `false` |
---
## Starts With
The Starts With operation checks if your string starts with a specific portion of text. It returns `true` when it does, and `false` when it doesn't. You can alternatively use the `starts with` comparison type in the [Comparison Condition](https://botghost.com/docs/custom-commands-and-events/conditions/comparison-condition) block.
### Search
The text that is compared at the start of the original string. This input is case sensitive. All [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in this input.
.png)
### Examples
| Text | Search | Result |
| --- | --- | --- |
| `Hello World` | `He` | `true` |
| `Hello World` | `World` | `false` |
| `Hello World` | `BotGhost` | `false` |
---
## Ends With
The Ends With operation checks if your string ends with a specific portion of text. It returns `true` when it does, and `false` when it doesn't. You can alternatively use the `ends with` comparison type in the [Comparison Condition](https://botghost.com/docs/custom-commands-and-events/conditions/comparison-condition) block.
### Search
The text that is compared at the end of the original string. This input is case sensitive. All [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in this input.
.png)
### Examples
| Text | Search | Result |
| --- | --- | --- |
| `Hello World` | `World` | `true` |
| `Hello World` | `He` | `false` |
| `Hello World` | `BotGhost` | `false` |
---
## Match
The Match operation will return the first match from a regular expression (regex) pattern. If there are any capturing groups, it will return them after the match, separated by commas. The variable can also be used as an array when surrounded with the `[]` brackets.
> **Note:** Regular expressions can be a tricky concept and take practice. Before using this operation, it's advised to check out other resources like [Regex101](https://regex101.com) and [MDN Web Documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions) to learn more and experiment with regular expressions. You can also use the [ChatGPT](https://botghost.com/docs/ai/chatgpt) module or other AI websites to generate regex patterns for you, but they may not always be accurate.
### Search
The regular expression pattern to search for. This input is case sensitive. All [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
.png)
### Examples
| Text | Search | Result |
| --- | --- | --- |
| `API Requests are Good` | `[A-Z]` | `A,P,I,R,G` |
| `This is a test, using regex to find the word test in a sentence.` | `\btest\b` | `test,test` |
| `This is a test to find numbers in a sentence. Since there are no numbers here, it will not return any matches` | `\b\d+\b` | `null` |
---
## Search
The Search operation will return the index of the first match from a regular expression (regex) pattern.
> **Note:** Regular expressions can be a tricky concept and take practice. Before using this operation, it's advised to check out other resources like [Regex101](https://regex101.com) and [MDN Web Documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Regular_expressions) to learn more and experiment with regular expressions. You can also use the [ChatGPT](https://botghost.com/docs/ai/chatgpt) module or other AI websites to generate regex patterns for you, but they may not always be accurate.
### Search
The regular expression pattern to search for. This input is case sensitive. All [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
.png)
### Example
| Text | Search | Result |
| --- | --- | --- |
| `API Requests are Good` | `[A-Z]` | `A,P,I,R,G` |
| `This is a test, using regex to find the word test in a sentence.` | `\btest\b` | `test,test` |
| `This is a test to find numbers in a sentence. Since there are no numbers here, it will not return any matches` | `\b\d+\b` | `null` |
**Manipulation**
| Operation | Information |
| --- | --- |
| [Replace](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#replace) | Returns the original text with a portion of it replaced. |
| [Replace All](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#replace-all) | Returns the original text with portions of it replaced. |
| [Split](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#split) | Returns the original text divided into an array. |
| [Repeat](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#repeat) | Returns the original text a specified number of times. |
---
## Replace
The Replace operation replaces the first occurrence of a substring from the original text with another string you've specified.
### Search
The portion of text that must be replaced in the text. This input is case sensitive. All [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in this input.
*Text Operation - Search of the Manipulate some text block*
### Replacement
The portion of text to replace with. This input is case sensitive. All [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in this input.
*Text Operation - Replacement of the Manipulate some text block*
### Examples
| Text | Search | Replacement | |
| --- | --- | --- | --- |
| `Hello World!` | `World` | `everyone` | `Hello everyone!` |
| `Hello World!` | | `BotGhost` | `Hello BotGhost World!` |
| `Cats are cute` | `C` | `R` | `Rats are cute` |
---
## Replace All
The Replace All operation replaces all occurrences of a substring from the original text with another string you've specified.
### Search
The portion of text that must be replaced in the text. This input is case sensitive. All [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in this input.
*Text Operation - Search of the Manipulate some text block*
### Replacement
The portion of text to replace with. This input is case sensitive. All [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in this input.
*Text Operation - Replacement of the Manipulate some text block*
### Examples
| Text | Search | Replacement | Result |
| --- | --- | --- | --- |
| `Hello World` | `World` | `everyone` | `Hello everyone!` |
| `you are smart, aren't you?` | `you` | `we` | `we are smart, aren't we?` |
| `Bitter` | `t` | `l` | `Biller` |
---
## Split
The Split operation separates your string with commas based on a delimeter. The variable can also be used as an array when surrounded with the `[]` brackets.
### Search
The text that your string will be split around. This input is case sensitive. All [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
.png)
### Examples
| Text | Search | Result |
| --- | --- | --- |
| `20/04/2024` | `/` | `20,4,2024` |
| `docs.botghost.com` | `.` | `docs,botghost,com` |
| `Hello everyone!` | `c` | `Hello everyone!` |
---
## Repeat
The Repeat operation duplicates your string a specified number of times.
### Count
The number of times your string will appear. All [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in this input.
.png)
### Examples
| Text | Count | Result |
| --- | --- | --- |
| `ah` | 5 | `ahahahahah` |
| `Hello!` | 2 | `Hello! Hello!` |
**Advanced**
| Operation | Information |
| --- | --- |
| [JSON Stringify](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#json-stringify) | Returns the original text surrounded by quotes (") with escaped quotes and line breaks. |
| [JSON Stringify (No Enclosing Quotes)](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#json-stringify-no-enclosing-quotes) | Returns the original text with escaped quotes and line breaks. |
| [Sanitize](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#sanitize) | Returns the text with special characters escaped for safe use. |
| [Unsanitize](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#unsanitize) | Returns the original text with escaped characters restored. |
| [Image URL to Base64](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#image-url-to-base64) | Returns the image from a URL encoded as Base64, optionally including a data URI prefix. |
---
## JSON Stringify
The JSON Stringify operation allows you to automatically manipulate and escape quotes and line breaks in the given text for it to work in the Send an API Request action. The result will include quotes (") around the text.
### Examples
| Text | Result |
| --- | --- |
| Hello "World"! | "Hello \"World\"!" |
| Line
Break | "Line\nBreak" |
| Not a line break \n | "Not a line break \\n" |
---
## JSON Stringify (No Enclosing Quotes)
The JSON Stringify (No Enclosing Quotes) operation allows you to automatically manipulate and escape quotes and line breaks in the given text for it to work in the Send an API Request action. The result will not include quotes (") around the text.
### Examples
| Text | Result |
| --- | --- |
| Hello "World"! | Hello \"World\"! |
| Line
Break | Line\nBreak |
| Not a line break \n | Not a line break \\n |
---
## Sanitize
The sanitize operation will return the exact same text provided without replacing vars. These will not be replaced also when used in replies.
### Examples
| Text | Result |
| --- | --- |
| {myvariable} | {myvariable} |
| Hello {user_name} | Hello {user_name} |
---
## Unsanitize
The unsanitize operation will return the exact same text and undo any sanitization previously made. Variables will be replaced.
### Examples
| Text | Result |
| --- | --- |
| {myvariable} | That's the value of myvariable |
| Hello {user_name} | Hello tomtoise |
---
## Image URL to Base64
Allows you to fetch an image from a given URL and convert it into Base64, with options to return either raw Base64 data or a full data URI for use in API requests, embeds, or external systems.
### Output Format
Allows to pick the output format you prefer.
| | |
| --- | --- |
| Full Data URL (data:image/...;base64,...) | Returns the image as a complete data URL, including the MIME type and Base64 prefix. This is useful when embedding images directly or when a full image source is required. |
| Base64 Only | Returns only the raw Base64-encoded image data without any prefix. This is useful for API requests or systems that explicitly require Base64 input. |
### Examples
| Text | | Result |
| --- | --- | --- |
| [https://botghost.com/assets/logo.png](https://botghost.com/assets/logo.png) | Full Data URL | data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAA... |
| [https://botghost.com/assets/logo.png](https://botghost.com/assets/logo.png) | Base64 Only | iVBORw0KGgoAAAANSUhEUgAA... |
| [https://botghost.com/assets/banner.jpg](https://botghost.com/assets/banner.jpg) | Base64 Only | tLYMeRjPMCS1-1WNjQlaqQADn |
**Dates**
| Operation | Information |
| --- | --- |
| [Part of a Date](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text#part-of-a-date) | Returns one part of a date or Unix time, like the day, year or hour. |
---
## Part of a Date
The Part of a Date operation keeps one part of a date or Unix time. When it can't read the date, the result is empty and `{text_problem}` says what to type.
### Which part
| Part | Result for 14 October 2026 at 9:05 AM |
| --- | --- |
| Monday | `Wednesday` |
| Mon | `Wed` |
| Day of the month | `14` |
| November | `October` |
| Nov | `Oct` |
| Month number | `10` |
| Year | `2026` |
| 2:30 PM | `9:05 AM` |
| 14:30 | `09:05` |
| Hour (0 to 23) | `9`: the hour as a number, from 0 to 23, with no leading zero |
| Month and day (1014) | `1014`: the month then the day, always four digits (`0229` for 29 February) |
**Hour (0 to 23)** and **Month and day (1014)** are handy in conditions, for example to check whether it's someone's birthday today or whether it's past 9 o'clock.
### Time zone
The zone to read the date in, like `Europe/London` or `America/New_York`. Leave it empty for UTC.
## Variable
.png)
The Variable field allows you to name the variable that can be used in other [Actions](https://botghost.com/docs/custom-commands-and-events/actions) and [Conditions](https://botghost.com/docs/custom-commands-and-events/conditions) that follow this action block in the same [command or event](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder). You can use the clipboard icon under Result Variable to copy this variable to your device's clipboard.
> **Note:** If the variable used in this field already has a value, the previous value will be overwritten and cannot be accessed again.
---
# Send an error log message
Source: https://botghost.com/docs/custom-commands-and-events/actions/other-actions/send-an-error-log-message
.png)
The Send an error log message action once triggered, will send a an error message to the error handler to be dealt with or will be sent directly to the bots error logs. It is useful for checking elses on conditions and so forth.
## Module
Here you can enter the module that the error message has been sent from. (Ex. Timeout Command)
[Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in this field.
## Action
This field is where you can edit which action is tied to the error log message that the bot failed to execute. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used as well.
## Reason
The reason field is self explanatory and is where you shall input the reason of why the block execution failed. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) may be used.
---
# Set a unique variable
Source: https://botghost.com/docs/custom-commands-and-events/actions/other-actions/set-a-unique-variable
The Set a unique variable action block will allow you to create and store data for the commands execution, upon finishing the command cycle, the variable and all data stored inside will be deleted. This can be incredibly useful for storing IDs and using them after another [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons)/ [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option).
> **Warning:** Unique variables are interaction specific and not command / event specific. This means that if you update the value of a unique variable after a button press, that value will be reflected only for actions below that set unique variable block. This means that when the button is clicked again, the previous value will be used as the starting value.
>
> This behaviour, for example, makes it impossible to count button clicks with unique variables. Instead, you may use [Data Storage Variables](https://botghost.com/docs/custom-commands-and-events/data-storage).
## Name
This field is the name of the unique variable that you will be setting. It is highly recommended that you do not name the variable similar to a basic or existing variable such as `{user_id}`, as it could lead to bugs / errors.
## Value
The Value field is where you will store any value you wish for the commands execution. The value will be stored for the duration of the command and can be referenced in any block underneath the unique variable block. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
.png)
---
# Change the Bot's Status
Source: https://botghost.com/docs/custom-commands-and-events/actions/other-actions/change-the-bots-status
| Type | Image |
| --- | --- |
| Listening | .png) |
| Playing | .png) |
| Watching | .png) |
## Online presence
The bot's presence can be changed here. Free for all users.
| Presence | How It Looks |
| --- | --- |
| Online |  |
| Idle |  |
| Do Not Disturb |  |
| Invisible |  |
> **Warning:** Invisible makes your bot look offline in Discord, even though it is running and commands still work.
## Status text
> **Warning:** Only [premium](https://app.gitbook.com/s/-Lm_hW5MApY3J0lRhi0M/premium) users can change their bot's status!
### Clear the status text
Selecting this toggle will clear the bot's status and only change the selected online presence.
### Status field
This is where you can enter a new status for your bot. Leaving this field empty will keep the existing status and only change the online presence.
### Shown as
This allows you to choose the status type. The table below shows examples of status types.
| Status Type | Example |
| --- | --- |
| Listening to |  |
| Playing |  |
| Watching |  |
| Streaming |  |
| Competing in |  |
| Custom |  |
> **Note:** If using the Streaming Status Type, you must input a twitch.tv or youtube.com link, or the bot will revert to the Playing status.
### Keep it after a restart
This toggle will ensure the updated status survives a bot restart. If toggled off, the bot will revert to its status defined by the [status module](https://botghost.com/docs/general-settings-and-collaboration/status).
---
# Note
Source: https://botghost.com/docs/custom-commands-and-events/actions/other-actions/note
This block lets you write a simple note inside of your command or event builder that does not trigger any actions. Allows you to save information such as guides on how to setup the command.
> **Note:** The Note action block does not modify the behaviour of your command / event.
.png)
## Title
The title for your note, this text will appear on the top of your note. A maximum of 100 characters is allowed in this field.
.png)
## Description
The description for your note, a maximum of 2000 characters is allowed inside of this field.
.png)
## Note Color
The color for your note's title and outline. You may select an option by clicking one of the circles.
.png)
---
# [LEGACY] Reply Actions
Source: https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions
> **Important:** While the action blocks below are still available for use in all commands and events, they are considered old and have been replaced by the [Send or Edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) action block. We advise you to use the [Send or Edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) block instead, which offers more functionalities and possibilities for your message.
> **Warning:** If you cannot see the blocks below in your actions list, disable the [Hide Legacy Reply Actions](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder/advanced-options#general) setting.
| Block | Information |
| --- | --- |
| [plain-text-reply.md](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/plain-text-reply) | The plain text reply action allows you to send a plain message to the current channel, or edit a existing one. |
| [embed-reply.md](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/embed-reply) | The embed reply action allows you to send a embed message to the current channel, or edit a existing one. |
| [random-reply.md](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/random-reply) | Similiarly to the plain text and embed reply actions, you can use the random reply action to send a random reply to the current channel, or edit an existing one. |
| [send-a-message-to-a-channel.md](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-to-a-channel) | The send a message to a channel action allows you to send a plain or embed message to a specific channel. |
| [direct-message-a-user.md](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/direct-message-a-user) | The direct message a user action allows you to send a plain or embed message to a specific user. |
| [send-a-message-with-attached-buttons](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons) | The send a message with attached buttons action allows you to send a plain text or embed message to the current channel, to a custom channel or to a user with multiple buttons that can be clicked and used to run custom actions. |
| [send-a-message-with-a-select-menu](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu) | The send a message with a select menu action allows you to send a plain text or embed message to the current channel, to a custom channel or to a user with a select menu with multiple options that can be clicked to run custom actions. |
---
# Plain Text Reply
Source: https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/plain-text-reply
> **Important:** While the Plain Text Reply action block is still available for use in all commands and events, it is considered old and has been replaced by the [Send or Edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) action block. We advise you to use the [Send or Edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) block instead, which offers more functionalities and possibilities for your message.
> **Warning:** If you cannot see the Plain Text Reply action block in your actions list, disable the [Hide Legacy Reply Actions](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder/advanced-options#general) setting.
The Plain Text Reply action when triggered responds with a simple plain text message. This message can either reply to a command, be sent to the channel the command was used in, sent to a channel associated with an event, or edit a message sent by another action. All variables and options can be used in the content of the reply.
.png)
## Content
The content of the action is the actual message that the bot should reply with when the action is triggered. You can use any variable or option in the content of this reply. These can be easily added through the variable selector by clicking the **Clipboard** button.
.png)
## Response Type
The Plain Text Reply action has three response types that change how the message of the action is sent. Below you can find detailed information about each response type and how it can be used.
.png)
**Reply to the command**
In commands, by selecting this response type your plain text message will be sent as a reply to the command. This will show who used the command and what command triggered the response. This reply can be hidden by selecting **Hide Replies** in the command settings, which can be accessed by clicking on the root node of the command (the block with the yellow border).
.png)
**Send the message to the Channel**
This response type will send the message to either the channel the command was used in or the channel associated with an event in the event builder. By using this response type, the reply will look like a normal message sent by the bot, which means it can't be hidden.
.png)
**Edit a message sent by another action**
By selecting this response type you are able to edit the message sent by another action in the command or event tree.
.png)
To do so you must have another response action that your block can edit the reply of. Select another response action to be edited through the dropdown. A red outline will appear around the block that will be edited.
.png)
### Keep Components
If the original message contained one or more buttons / select menus, you can choose to keep components or remove them when editing the message. See the [Send a Message with attached buttons](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons) and [Send a message with a select menu](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu) for more information about interaction actions.
## Reactions
Reactions can also be added to the plain text reply. These can be added by clicking the reactions dropdown and selecting emojis.
.png)
These reactions will be automatically added to the plain text reply.
.png)
## Optional Variable
You can also create your own variable that can be used anywhere in the command to get the ID of the message sent by the action. This is useful when using [Send an API Request](https://botghost.com/docs/custom-commands-and-events/actions/api-actions/send-an-api-request) in your command / event and you need the ID of the message. Make sure that the name of the variable does not correspond to the name of a default variable or of an another action.
You can copy the variable by clicking the clipboard icon in the section right below the optional variable field.
.png)
---
# Embed Reply
Source: https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/embed-reply
> **Important:** While the Embed Reply action block is still available for use in all commands and events, it is considered old and has been replaced by the [Send or Edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) action block. We advise you to use the [Send or Edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) block instead, which offers more functionalities and possibilities for your message.
> **Warning:** If you cannot see the Embed Reply action block in your actions list, disable the [Hide Legacy Reply Actions](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder/advanced-options#general) setting.
When triggered, the Embed Reply action responds with an embedded message. This message can either reply to a command, be sent to the channel the command was used in, sent to a channel associated with an event, or edit a message sent by another action. All variables and options can be used in the content of the reply.
.png)
## Content
The content is the message that will be sent. In the embed reply action it's a embed. You can setup multiple fields, but only the description is required.
.png)
### Author
The author is displayed in the top left of the embed. This can be the author who used the command or any information you wish to display.
### Thumbnail URL
You can include a thumbnail embedded into the Embed Reply. This will display in the top right of the Embed.
### Title
This is the title you wish to display in your Embed Reply. This will be centered above your Content Block.
### Description
The description is the actual message that the bot should reply with when the action is triggered. You can use any variable or option in the content of this reply. These can be easily added through the variable selector by clicking the **Clipboard** button.
### Image URL
This will display an image in full view under the Content Block.
### Footer
This is the small text at the bottom left of the embed.
### Embed URL
This will display the Title of the embed in blue text, you can click this to open an external page or image.
### Color
This is the color shown on the Left Side of the Embed Reply.
## Response Type
The Embed Reply action has three response types that change how the message of the action is sent. Below you can find detailed information about each response type and how it can be used.
.png)
**Reply to the command**
In commands, by selecting this response type your Embed Reply message will be sent as a reply to the command. This will show who used the command and what command triggered the response. This reply can be hidden by selecting **Hide Replies** in the command settings, which can be accessed by clicking on the root node of the command (the block with the yellow border).
.png)
**Send the message to the channel**
This response type will send the message to either the channel the command was used in or the channel associated with an event in the event builder. By using this response type, the reply will look like a normal message sent by the bot.
.png)
**Edit a message sent by another action**
By selecting this response type you are able to edit the message sent by another action in the command or event tree.
.png)
To do so you must have another response action that your block can edit the reply of. Select another response action to be edited through the dropdown. A red outline will appear around the block that will be edited.
.png)
### Keep Components
If the original message contained one or more buttons / select menus, you can choose to keep components or remove them when editing the message. See the [Send a Message with attached buttons](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons) and [Send a message with a select menu](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu) for more information about interaction actions.
## Reactions
Reactions can also be added to the reply. These can be added by clicking the reactions dropdown and selecting emojis.
.png)
These reactions will be automatically added to the reply.
.png)
## Optional Variable
You can also create your own variable that can be used anywhere in the command to get the ID of the message sent by the action. This is useful when using [Send an API Request](https://botghost.com/docs/custom-commands-and-events/actions/api-actions/send-an-api-request) in your command / event and you need the ID of the message. Make sure that the name of the variable does not correspond to the name of a default variable or of an another action.
You can copy the variable by clicking the clipboard icon in the section right below the optional variable field.
.png)
---
# Random Reply
Source: https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/random-reply
> **Important:** While the Random Reply action block is still available for use in all commands and events, it is considered old and has been replaced by the [Send or Edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) action block. We advise you to use the [Send or Edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) and the [Chance Condition](https://botghost.com/docs/custom-commands-and-events/conditions/chance-condition) blocks instead, which offer more functionalities and possibilities for your message.
> **Warning:** If you cannot see the Random Reply action block in your actions list, disable the [Hide Legacy Reply Actions](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder/advanced-options#general) setting.
When triggered, the Random Reply action responds with a random message from among a set of messages. This message can either reply to a command, be sent to the channel the command was used in, sent to a channel associated with an event, or edit a message sent by another action. All variables and options can be used in the content of the reply.
## Responses
This section will allow you to manage up to 100 messages to be randomly selected from when triggered. You can manage the content and reactions of the messages (more information below), or click the *Add Response* button to add another message to the set.
.png)
## Content
In the Random Reply action, you have the choice for each message to be plain text, or an embed.
**Plain Text**
.png)
### Content
The content of the action is the actual message that the bot should reply with when the action is triggered. You can use any variable or option in the content of this reply. These can be easily added through the variable selector by clicking the **Clipboard** button.
.png)
**Embed**
.png)
### Author
The author is displayed in the top left of the embed. This can be the author who used the command or any information you wish to display.
.png)
### Thumbnail URL
You can include a thumbnail embedded into the Embed Reply. This will display in the top right of the Embed.
.png)
### Title
This is the title you wish to display in your Embed Reply. This will be centered above your Content Block.
.png)
### Description
The description is the actual message that the bot should reply with when the action is triggered. You can use any variable or option in the content of this reply. These can be easily added through the variable selector by clicking the **Clipboard** button.
.png)
### Image URL
This will display an image in full view under the Content Block.
.png)
### Footer
This is the small text at the bottom left of the embed.
.png)
### Embed URL
This will display the Title of the embed in blue text, you can click this to open an external page or image.
.png)
### Color
This is the color shown on the Left Side of the Embed Reply.
.png)
## Reactions
Reactions can also be added to the reply. These can be added by clicking the reactions dropdown and selecting emojis.
.png)
These reactions will be automatically added to the reply.
.png)
## Response Type
The Random Reply action has three response types that change how the message of the action is sent. Below you can find detailed information about each response type and how it can be used.
.png)
**Reply to the command**
In commands, by selecting this response type your Embed Reply message will be sent as a reply to the command. This will show who used the command and what command triggered the response. This reply can be hidden by selecting **Hide Replies** in the command settings, which can be accessed by clicking on the root node of the command (the block with the yellow border).
.png)
**Send the message to the channel**
This response type will send the message to either the channel the command was used in or the channel associated with an event in the event builder. By using this response type, the reply will look like a normal message sent by the bot.
.png)
**Edit a message sent by another action**
By selecting this response type you are able to edit the message sent by another action in the command or event tree.
.png)
To do so you must have another response action that your block can edit the reply of. Select another response action to be edited through the dropdown. A red outline will appear around the block that will be edited.
.png)
### Keep Components
If the original message contained one or more buttons / select menus, you can choose to keep components or remove them when editing the message. See the [Send a Message with attached buttons](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons) and [Send a message with a select menu](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu) for more information about interaction actions.
## Optional Variable
You can also create your own variable that can be used anywhere in the command to get the ID of the message sent by the action. This is useful when using [Send an API Request](https://botghost.com/docs/custom-commands-and-events/actions/api-actions/send-an-api-request) in your command / event and you need the ID of the message. Make sure that the name of the variable does not correspond to the name of a default variable or of an another action.
You can copy the variable by clicking the clipboard icon in the section right below the optional variable field.
.png)
---
# Send a message to a channel
Source: https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-to-a-channel
> **Important:** While the Send a message to a channel action block is still available for use in all commands and events, it is considered old and has been replaced by the [Send or Edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) action block. We advise you to use the [Send or Edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) block instead, which offers more functionalities and possibilities for your message.
> **Warning:** If you cannot see the Send a message to a channel action block in your actions list, disable the [Hide Legacy Reply Actions](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder/advanced-options#general) setting.
The Send a message to a Channel action when triggered has your bot respond with a message sent to a specific channel chosen. This message can either be sent to a specified channel, a channel ID, or a variable containing a channel ID. Additionally, the message sent can be either a Plain Text message or an Embed message. All variables and options can be used in the content of the reply.
## Message Type
The message type is how you can choose between having the bot send a Plain Text or Embed message.
**Plain Text Message**
.png)
### Content
The content of the action is the actual message that the bot should reply with when the action is triggered. You can use any variable or option in the content of this reply. These can be easily added through the variable selector by clicking the **Clipboard** button.
.png)
**Embed Message**
.png)
### Author
The author is displayed in the top left of the embed. This can be the author who used the command or any information you wish to display.
.png)
### Thumbnail URL
You can include a thumbnail embedded into the Embed Reply. This will display in the top right of the Embed.
.png)
### Title
This is the title you wish to display in your Embed Reply. This will be centered above your Content Block.
.png)
### Description
The description is the actual message that the bot should reply with when the action is triggered. You can use any variable or option in the content of this reply. These can be easily added through the variable selector by clicking the **Clipboard** button.
.png)
### Image URL
This will display an image in full view under the Content Block.
.png)
### Footer
This is the small text at the bottom left of the embed.
.png)
### Embed URL
This will display the Title of the embed in blue text, you can click this to open an external page or image.
.png)
### Color
This is the color shown on the Left Side of the Embed Reply.
.png)
## Reactions
Reactions can be added onto both the Plain Text message or Embed message. Reactions can be added by using the selector field below the area to create the message.
.png)
These reactions will be automatically added when the message is sent.
.png)
## Channel Type
**Specific Channel**
With this channel type, a drop-down menu will be displayed with all the channels the bot has access to. One of these channels can be selected for the message to be sent.
.png)
**Channel ID or Variable**
This channel type can select a channel by specifying a discord channel ID or a variable that includes a channel ID. This can be any valid type of variable. All options and variables can be used in this field.
.png)
## Optional Variable
You can also create your own variable that can be used anywhere in the command to get the ID of the message sent by the action. This is useful when using [Send an API Request](https://botghost.com/docs/custom-commands-and-events/actions/api-actions/send-an-api-request) in your command / event and you need the ID of the message. Make sure that the name of the variable does not correspond to the name of a default variable or of an another action.
You can copy the variable by clicking the clipboard icon in the section right below the optional variable field.
.png)
---
# Direct Message a User
Source: https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/direct-message-a-user
> **Important:** While the Direct Message a User action block is still available for use in all commands and events, it is considered old and has been replaced by the [Send or Edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) action block. We advise you to use the [Send or Edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) block instead, which offers more functionalities and possibilities for your message.
> **Warning:** If you cannot see the Direct Message a User action block in your actions list, disable the [Hide Legacy Reply Actions](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder/advanced-options#general) setting.
When triggered, the Direct Message a User action responds with a DM to a user of your choosing. This message can either be sent to the user who triggered the block, a user option, or a user ID. All variables and options can be used in the content of the reply.
## User to DM
> **Warning:** To receive a direct message, the user must have Direct Messages enabled.
The Direct Message a User action has three options that change to whom the message of the action is sent. Below you can find detailed information about each option and how it can be used.
.png)
**User who used the command**
By selecting this option your Direct Message will be sent to the user who used the most recent interaction; for example, the most recent button press, select menu choice, command run or the user who triggered the custom event.
**User option**
In commands, by selecting this option your Direct Message will be sent to a user selected in a user option.
.png)
### User Option
Here you can set the option variable for the [User option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/direct-message-a-user#user-option) (purple blocks) you are using. These can be easily added through the variable selector by clicking the **Clipboard** button.
**User ID**
By selecting this option your Direct Message will be sent to a user specified via their user ID.
.png)
### User ID
Here you can set the ID of the user to DM. You can do this by pasting an ID directly from Discord (learn how [here](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID#h_01HRSTXPS5H5D7JBY2QKKPVKNA)) or using a variable that returns a user ID. These can be easily added through the variable selector by clicking the **Clipboard** button.
## Message
In the Direct Message a User action, you have the choice for each message to be plain text, or an embed.
**Plain Text**
.png)
### Content
The content of the action is the actual message that the bot should reply with when the action is triggered. You can use any variable or option in the content of this reply. These can be easily added through the variable selector by clicking the **Clipboard** button.
.png)
**Embed**
.png)
### Author
The author is displayed in the top left of the embed. This can be the author who used the command or any information you wish to display.
.png)
### Thumbnail URL
You can include a thumbnail embedded into the Embed Reply. This will display in the top right of the Embed.
.png)
### Title
This is the title you wish to display in your Embed Reply. This will be centered above your Content Block.
.png)
### Description
The description is the actual message that the bot should reply with when the action is triggered. You can use any variable or option in the content of this reply. These can be easily added through the variable selector by clicking the **Clipboard** button.
.png)
### Image URL
This will display an image in full view under the Content Block.
.png)
### Footer
This is the small text at the bottom left of the embed.
.png)
### Embed URL
This will display the Title of the embed in blue text, you can click this to open an external page or image.
.png)
### Color
This is the color shown on the Left Side of the Embed Reply.
.png)
## Reactions
Reactions can also be added to the reply. These can be added by clicking the reactions dropdown and selecting emojis.
.png)
These reactions will be automatically added to the reply.
.png)
## Optional Variable
You can also create your own variable that can be used anywhere in the command to get the ID of the message sent by the action. This is useful when using [Send an API Request](https://botghost.com/docs/custom-commands-and-events/actions/api-actions/send-an-api-request) in your command / event and you need the ID of the message. Make sure that the name of the variable does not correspond to the name of a default variable or of an another action.
You can copy the variable by clicking the clipboard icon in the section right below the optional variable field.
.png)
---
# Send a Message with attached buttons
Source: https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons
> **Important:** While the Send a Message with attached buttons action block is still available for use in all commands and events, it is considered old and has been replaced by the [Send or Edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) action block. We advise you to use the [Send or Edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) block instead, which offers more functionalities and possibilities for your message.
> **Warning:** If you cannot see the Send a Message with attached buttons action block in your actions list, disable the [Hide Legacy Reply Actions](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder/advanced-options#general) setting.
The Send a Message with attached Buttons block can be used to send/edit a Message with [buttons](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) to a channel/direct message. Actions can be attached to each button separately. When a button is clicked, corresponding actions will be executed.
## Message Type
This message action also has the option of being an embed or plain type.
**Plain Text Message**
### Content
The content of the action is the actual message that the bot should reply with when the action is triggered. You can use any variable or option in the content of this reply. These can be easily added through the variable selector by clicking the **Clipboard** button.
**Embed Message**
.png)
### Author
The author is displayed in the top left of the embed. This can be the author who used the command or any information you wish to display.
.png)
### Thumbnail URL
You can include a thumbnail embedded into the Embed Reply. This will display in the top right of the Embed.
.png)
### Title
This is the title you wish to display in your Embed Reply. This will be centered above your Content Block.
.png)
### Description
The description is the actual message that the bot should reply with when the action is triggered. You can use any variable or option in the content of this reply. These can be easily added through the variable selector by clicking the **Clipboard** button.
.png)
### Image URL
This will display an image in full view under the Content Block.
.png)
### Footer
This is the small text at the bottom left of the embed.
.png)
### Embed URL
This will display the Title of the embed in blue text, you can click this to open an external page or image.
.png)
### Color
This is the color shown on the Left Side of the Embed Reply.
.png)
## Response Type
**Reply to the Command**
In commands, by selecting this response type your Embed Reply message will be sent as a reply to the command. This will show who used the command and what command triggered the response. This reply can be hidden by selecting **Hide Replies** in the command settings, which can be accessed by clicking on the root node of the command (the block with the yellow border).
*Reply to command - Plain text example*
**Send a message to a specific text-channel**
The message will be sent to the channel specified in either the Channel ID / [Variable](https://botghost.com/docs/custom-commands-and-events/variables) or the specific channel dropdown, just like the [Send a message to a channel](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-to-a-channel)action.
**Send a message to the channel the command was used in**
This response type will send the message to either the channel the command was used in or the channel associated with an event in the event builder. By using this response type, the reply will look like a normal message sent by the bot.
**Edit a message send by another action**
By selecting this response type you are able to edit the message sent by another action in the command or event tree.
To do so you must have another response action that your block can edit the reply of. Select another response action to be edited through the dropdown. A red outline will appear around the block that will be edited.
### Keep Components
If the original message contained one or more buttons / select menus, you can choose to keep components or remove them when editing the message. See the [Send a Message with attached buttons](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons) and [Send a message with a select menu](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu) for more information about interaction actions.
**Direct message the user who triggered the command**
This response type will send the message to the user who triggered the command, button, select menu or to the user associated with an event in the event builder. By using this response type, the reply will look like a normal message sent by the bot.
**Direct message using a user option**
The message will be sent through a direct message to a given [user option](https://botghost.com/docs/custom-commands-and-events/options/user-option).
### User Option
Paste the variable that returns the user option you want to direct message. Normal variables won't work with this field. Instead, use [Direct message using a user id](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons#direct-message-using-a-user-id)
**Direct message using a user id**
The message will be sent through a direct message to a given [user ID](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID#h_01HRSTXPS5H5D7JBY2QKKPVKNA) or [variable](https://botghost.com/docs/custom-commands-and-events/variables) that contains the user id. Keep in mind it has to be a plain user ID with no extra symbols or spaces.
### User ID
Input the ID of the user to DM. Can either be a variable or an actual ID.
## Reactions
Reactions can be added onto both the Plain Text message or Embed message. Reactions can be added by using the selector field below the area to create the message.
These reactions will be automatically added to the message.
## Hide Button replies
[Button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons)responses from actions connected can be hidden so that only the person who pushed the button sees them. This can be also chosen separately in any Reply Action by editing the main(yellow) block. By default replies are shown to everyone.
## Add Button
To add another [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons)simply click this:
Check out the [Buttons](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons)page for more information about buttons.
## Optional Variable
You can also create your own variable that can be used anywhere in the command to get the ID of the message sent by the action. This is useful when using [Send an API Request](https://botghost.com/docs/custom-commands-and-events/actions/api-actions/send-an-api-request) in your command / event and you need the ID of the message. Make sure that the name of the variable does not correspond to the name of a default variable or of an another action.
---
# Buttons
Source: https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons
> **Important:** While the Send a Message with attached buttons action block is still available for use in all commands and events, it is considered old and has been replaced by the [Send or Edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) action block. We advise you to use the [Send or Edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) block instead, which offers more functionalities and possibilities for your message.
Buttons are interactive components that render in messages. They can be clicked by users, and send an interaction to your bot when clicked. All corresponding blocks under the button will execute.
## Button Text
The following field can be used to set the text that the button should display:
Example of what they would see:
## Emoji ID
You can specify a custom emoji id or default emoji to add to the emoji along with the normal button text. To do this you need to use the backwards slash then input your emoji. It will return the emoji id if it's a custom or if it's default just copy the emoji and paste it into the field.
## Button Style
The button style allows you to select the color of the button, or mark it as a link button.
### Action Button
| Color | Example |
| --- | --- |
| Green |  |
| Blue |  |
| Gray |  |
| Red |  |
### Link button
You can choose the color of the button along with a separate option of it being a link. Simply input a URL in the field that is shown. Link buttons are only gray and aren't able to be disabled or have a cooldown. Also if the link style is chosen then you can't connect any blocks to the link button.
## Disable button after use
Disabling a button means it cannot be used anymore when a certain action disables it.
If the link style is not chosen, you will have an option of disabling the button. By default, buttons won't be disabled until you configure it to "Yes".
When you select "Yes", 3 new fields will appear.
### Clicks Required
This is the amount of clicks required to disable the button.
### Disabled Text
This is the text of the button that can be optionally changed after the button is disabled.
### Disabled Style
This is the color of the button after it has been disabled.
## Cooldown
Buttons have a cooldown field as well. A button cooldown is when a user clicks a button, they won't be able to click it again until a set amount of time passes.
By default this field is disabled. To have a cooldown you select "Enabled".
Once Enabled, two new fields will appear:
### Cooldown Type
You can select whether the cooldown is global, meaning it affects everyone. So everyone would have to wait until the cooldown is over.
You can also select User, so the cooldown is per user.
### Cooldown Duration
This is the duration in seconds that the cooldown will be active for.
---
# Send a message with a select menu
Source: https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu
> **Important:** While the Send a Message with a select menu action block is still available for use in all commands and events, it is considered old and has been replaced by the [Send or Edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) action block. We advise you to use the [Send or Edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) block instead, which offers more functionalities and possibilities for your message.
> **Warning:** If you cannot see the Send a message with a select menu action block in your actions list, disable the [Hide Legacy Reply Actions](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder/advanced-options#general) setting.
The "Send a message with select menu" block sends a text or embed message to a channel with a Select Menu. Each option in the Select Menu can have its own attached actions and name.
## Message Type
This message action also has the option of being an embed or plain type.
**Plain Text Message**
### Content
The content of the action is the actual message that the bot should reply with when the action is triggered. You can use any variable or option in the content of this reply. These can be easily added through the variable selector by clicking the **Clipboard** button.
**Embed Message**
.png)
### Author
The author is displayed in the top left of the embed. This can be the author who used the command or any information you wish to display.
.png)
### Thumbnail URL
You can include a thumbnail embedded into the Embed Reply. This will display in the top right of the Embed.
.png)
### Title
This is the title you wish to display in your Embed Reply. This will be centered above your Content Block.
.png)
### Description
The description is the actual message that the bot should reply with when the action is triggered. You can use any variable or option in the content of this reply. These can be easily added through the variable selector by clicking the **Clipboard** button.
.png)
### Image URL
This will display an image in full view under the Content Block.
.png)
### Footer
This is the small text at the bottom left of the embed.
.png)
### Embed URL
This will display the Title of the embed in blue text, you can click this to open an external page or image.
.png)
### Color
This is the color shown on the Left Side of the Embed Reply.
.png)
## Response Type
**Reply to the command**
When this response type is selected, the message is sent as a reply to the command as show in the image below. These types of responses are able to be hidden by selecting **Hide Replies** in the command settings, which can be accessed by clicking on the root node of the command (the block with the yellow border).
**Send a message to a specific text-channel**
The message will be sent to the channel specified in either the Channel ID / [Variable](https://botghost.com/docs/custom-commands-and-events/variables) or the specific channel dropdown, just like the [Send a message to a channel](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-to-a-channel)action.
**Send the message to the channel the command was used in**
This response type will send the message to either the channel the command was used in or the channel associated with an event in the event builder. By using this response type, the reply will look like a normal message sent by the bot.
**Edit a message sent by another action**
By selecting this response type you are able to edit the message sent by another action in the command or event tree.
To do so you must have another response action that your block can edit the reply of. Select another response action to be edited through the dropdown. A red outline will appear around the block that will be edited.
### Keep Options
If the original message contained one or more buttons / select menus, you can choose to keep components or remove them when editing the message. See the [Send a Message with attached buttons](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons) and [Send a message with a select menu](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu) for more information about interaction actions.
**Direct message the user who triggered the command**
This response type will be in the form of a direct message that sends privately to the user who has triggered the command, button, or menu or to the user associated with an event in the event builder. By using this response type, the reply will look like a normal message sent by the bot.
**Direct message using a user option**
This response type is specific for the user option and will send a direct message to the user option.
### User option
Paste the variable that returns the user option you want to direct message. Normal variables won't work with this field. Instead, use[Direct message using a user id](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu#direct-message-using-a-user-id)
**Direct message using a user id**
The message will be sent through a direct message to a given [user ID](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID#h_01HRSTXPS5H5D7JBY2QKKPVKNA) or [variable](https://botghost.com/docs/custom-commands-and-events/variables) that contains the user id. Keep in mind it has to be a plain user ID with no extra symbols or spaces.
### User ID
Input the ID of the user to DM. Can either be a variable or an actual ID.
## Reactions
Reactions can be added onto both the Plain Text message or Embed message. Reactions can be added by using the selector field below the area to create the message.
These reactions will be automatically added to the message.
## Placeholder
The placeholder text ([variables](https://botghost.com/docs/custom-commands-and-events/variables) may be used) of the menu. It will look like this:
## Hide Menu replies
[Menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option) responses in the form of replies can be hidden so that only the person who selected the menu option sees them. This can be also chosen separately in any Reply Action by editing the main(yellow) block. By default, replies are shown to everyone.
## Add Menu
You can add another [Menu Option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option) by clicking this:
Check out the [Menu Option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option) page for more information about Menu options.
## Optional Variable
You can also create your own variable that can be used anywhere in the command to get the ID of the message sent by the action. This is useful when using [Send an API Request](https://botghost.com/docs/custom-commands-and-events/actions/api-actions/send-an-api-request) in your command / event and you need the ID of the message. Make sure that the name of the variable does not correspond to the name of a default variable or of an another action.
---
# Menu Option
Source: https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option
> **Important:** While the Send a Message with a select menu action block is still available for use in all commands and events, it is considered old and has been replaced by the [Send or Edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) action block. We advise you to use the [Send or Edit a Message](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-or-edit-a-message) block instead, which offers more functionalities and possibilities for your message.
Menu Options are similar to buttons. They can be clicked to preform the corresponding actions. However unlike buttons, a menu option comes from a drop down of a menu itself.
## Label
A label is similar to a button text, meaning this field sets the name of the menu option.
## Description
This field is an optional description of the menu option that accepts text and variables.
## Emoji ID
You can specify a custom emoji id or default emoji to add to the emoji along with the normal button text. To do this you need to use the backwards slash then input your emoji. It will return the emoji id if it's a custom or if it's default just copy the emoji and paste it into the field.
---
# Conditions
Source: https://botghost.com/docs/custom-commands-and-events/conditions
Conditions are green in color and are used to compare differences between values. With these blocks, you can create different routes for commands to take, depending on what your user chooses. Conditions are also very useful for gathering data from [actions](https://botghost.com/docs/custom-commands-and-events/actions) and [options](https://botghost.com/docs/custom-commands-and-events/options).
## Connection Condition Blocks
### Mobile
Simply press the top circle on the condition block to start the connection line, from here you can simply press the connection circle on the bottom of the block you wish to connect your action to, to complete the circuit and connect the blocks together.
.gif)
### Desktop/PC
Simply press and hold the top circle on the condition block to start the connection line, from here you can simply drag the connection line to the connection circle on the bottom of the block you wish to connect your action to, to complete the circuit and connect the blocks together.
.gif)
## Helper Text
Helper text is a very useful tool if you are looking for a way to add notes to actions and conditions in your command or event builder.
.png)
Helper text can be enabled by pressing the "Add Helper Text" button. You can then enter your text, select a colour, an icon and choose on what side of the block the text will show.
.png)
## Condition Blocks
| Block | Information |
| --- | --- |
| [Comparison Condition](https://botghost.com/docs/custom-commands-and-events/conditions/comparison-condition) | This block is useful to compare two values / [variables](https://botghost.com/docs/custom-commands-and-events/variables) with different comparison types. |
| [Permission Condition](https://botghost.com/docs/custom-commands-and-events/conditions/permission-condition) | This condition checks a user's permissions to see if they have any you choose. |
| [Chance Condition](https://botghost.com/docs/custom-commands-and-events/conditions/chance-condition) | The chance condition allows you to create chances that all happen via a "%" chance to create random scenarios. |
| [Channel Condition](https://botghost.com/docs/custom-commands-and-events/conditions/channel-condition) | This condition will check if the command / event was triggered in a specific channel selected in the condition. |
| [Role Condition](https://botghost.com/docs/custom-commands-and-events/conditions/role-condition) | Like the permission condition, it checks if a user has a specific role. |
| [User Condition](https://botghost.com/docs/custom-commands-and-events/conditions/user-condition) | The user condition compares what user is using the command, triggered an event or used the last button / select menu. |
| [Premium Check Condition](https://botghost.com/docs/custom-commands-and-events/conditions/premium-check-condition) | This condition runs actions based off if the bot has a [premium subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) or not. |
---
# Comparison Condition
Source: https://botghost.com/docs/custom-commands-and-events/conditions/comparison-condition
.png)
With the comparison condition you are able to run actions based off of the difference between the values that are being compared. This condition allows for multiple different comparison types and can be used for a multitude of different systems. An also great feature about this is that it can be used for events and commands alike and compares any value that other conditions cannot.
## Run Multiple Actions
This option allows you to set the condition to run multiple actions at the same time. This means if multiple conditions are met, then each true condition will be run simultaneously. When disabled, only the first met condition will be executed.
## Base Value
The base value field is what the other value will be compared against. Any [variables](https://botghost.com/docs/custom-commands-and-events/variables) or [options](https://botghost.com/docs/custom-commands-and-events/options) can be used in this field. Keep in mind that this is the value that the condition will be based around.
For example, *if `{event_message_content}` equals `Hello`*, means that the condition will be met when `{event_message_content}`is `Hello` or, in simpler words, that the content of the message is `Hello`.
## Comparison Value
This field is the value to compare against the base value of this condition. In the example above, "Hello" represents the comparison value. Click the add condition button in the image below to keep adding more compared values against the base value.
> **Note:** Click the Comparison Block Condition you added to access the following menu.
## Comparison Type
This section is how you can choose the comparison type for the condition. The available choices are listed below.
## Ignore Case
When this setting is applied all messages/text that match your predetermined value you set in the conditional block regardless of capitalization will trigger the action to execute.
When this setting is disabled, the text/message detection will be case sensitive and will not trigger for the same value set if it is missing capitalization or has capitalization as opposed to the value you set in the conditional block.
Example for a comparison layout:
---
# Permission Condition
Source: https://botghost.com/docs/custom-commands-and-events/conditions/permission-condition
.png)
This block enables you to compare a user's permissions to run actions based off their permissions.
> **Warning:** The bot must have at least the Manage Roles permission to be able to check server permissions.
## Run Multiple Actions
This option allows you to set the condition to run multiple actions at the same time. This means if multiple conditions are met, then each true condition will be run simultaneously. When disabled, only the first met condition will be executed.
## User Target
This field is where you choose one of 3 user targets you would like the condition to check the permissions of.
**User who used the command**
This type of target will check the permissions of the user who triggered the command / event or clicked a [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) / [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option).
**User Option**
The user option target will check the permissions of a user selected from the command's [user option.](https://botghost.com/docs/custom-commands-and-events/options/user-option)
### User Option
This field is where you will input the user option variable. Keep in mind this field only accepts [user options](https://botghost.com/docs/custom-commands-and-events/options/user-option), so you must have one in your command for this field to work.
**User ID**
If the user ID option is selected then the condition will check the permissions of the user with that ID.
### User ID
This field is where you input a plain user ID or a [variable](https://botghost.com/docs/custom-commands-and-events/variables) that contains a user ID. Make sure there are no extra symbols or spaces when inputting this.
.png)
## Permissions
Click the "+" to attach one or more permissions to the condition the bot is comparing. Visit this [link](https://discord.com/developers/docs/topics/permissions#permissions-bitwise-permission-flags) to learn more about permissions.
## Condition Type
The condition type field is where you can select what type of comparison you wish for the condition to check the permissions of.
Click the add condition button once you have filled out all the fields above to add one or more comparisons to the condition.
You will be able to individually edit each permission by selecting on the permission block of the condition once added.
.png)
Here is an example layout of the condition:
---
# Chance Condition
Source: https://botghost.com/docs/custom-commands-and-events/conditions/chance-condition
.png)
This condition sets a percentage chance for actions to be taken. You cannot exceed 100%. The remainder of the blocks percentages are gathered in the else block.
## Percent Chance
This field is where you enter the percentage of how likely the action will be occurring. This field only accepts integers as values.
> **Note:** Click the Add Condition button to add the block to your builder.
Here is an example layout of this condition:
---
# Channel Condition
Source: https://botghost.com/docs/custom-commands-and-events/conditions/channel-condition
.png)
This condition will run actions based off the channel that the command / event was triggered in or where a [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option)/ [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) was clicked.
## Run multiple actions
This option allows you to set the condition to run multiple actions at the same time. This means if multiple conditions are met, then each true condition will be run simultaneously. When disabled, only the first met condition will be executed.
## Channel
This section is a dropdown menu of channels that may be selected for the condition to compare. Click the refresh icon next to the title if the channel you're looking for isn't showing.
Click the add condition button to add one or more compared channels to the condition
You may individually click on a compared channel to edit the values and more.
> **Note:** Click the block on the builder to access the following menu.
## Channel ID
In this section you can edit the compared channel by switching the channel ID. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) may be used this in field or a plain channel ID.
## Run when the command is NOT used in this channel
This option, when enabled, allows you to run the actions below the selected block when the user does not use the command in the specific channel, instead of running when the user does.
Here is an example layout of the condition:
---
# Role Condition
Source: https://botghost.com/docs/custom-commands-and-events/conditions/role-condition
.png)
This condition checks what role a specific user has and compares whether they have it or not.
## Run Multiple Actions
This option allows you to set the condition to run multiple actions at the same time. This means if multiple conditions are met, then each true condition will be run simultaneously. When disabled, only the first met condition will be executed.
## User Target
This field is where you choose one of 3 user targets you would like the condition to check the roles of.
**User who used the command**
This type of target will check the roles of the user who triggered the command / event or clicked a [button](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-attached-buttons/buttons) / [menu option](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/send-a-message-with-a-select-menu/menu-option).
**User Option**
The user option target will check the roles of a user selected from the command's [user option.](https://botghost.com/docs/custom-commands-and-events/options/user-option)
### User Option
This field is where you will input the user option variable. Keep in mind this field only accepts [user options](https://botghost.com/docs/custom-commands-and-events/options/user-option), so you must have one in your command for this field to work.
**User ID**
If the user ID option is selected then the condition will check the roles of the user with that ID.
### User ID
This field is where you input a plain user ID or a [variable](https://botghost.com/docs/custom-commands-and-events/variables) that contains a user ID. Make sure there are no extra symbols or spaces when inputting this.
## Role
This dropdown menu is where you choose the certain role to compare for the condition. You will be able to select a [role option](https://botghost.com/docs/custom-commands-and-events/options/role-option) as well under the Command Options section of the list as shown in the image. If your role isn't showing, click the refresh icon next to the [Role](https://botghost.com/docs/custom-commands-and-events/conditions/role-condition#role) title.
> **Tip:** Click the Add Condition block to add the compared role to your builder.
> **Note:** Click the block on the builder to access the following menu.
## Role ID
In this section you can edit the compared role by switching the role ID. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) may be used this in field or a plain role ID.
## Run when the user DOES NOT have this role
This option, when enabled, allows you to run the actions below the selected block when the user does not have the role, instead of running when the user has it.
Here is an example layout of the condition:
---
# User Condition
Source: https://botghost.com/docs/custom-commands-and-events/conditions/user-condition
.png)
This condition compares a user ID of whoever triggered the command / event and is used to run actions based off what user is inputted.
## User
This field accepts a plain user ID, a [user option](https://botghost.com/docs/custom-commands-and-events/options/user-option) or a [variable](https://botghost.com/docs/custom-commands-and-events/variables) that returns a plain user ID. Click the add condition button below to add the value to the builder as part of the condition.
> **Note:** Click the block on the builder to access the following menu.
## User ID
In this section you can edit the compared user by switching the user ID. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) may be used this in field or a plain user ID.
## Run when it is NOT this user
This option, when enabled, allows you to run the actions below the selected block when it is not the user who ran the command, instead of running when it is the user.
Here is an example layout for this condition:
---
# Premium Check Condition
Source: https://botghost.com/docs/custom-commands-and-events/conditions/premium-check-condition
.png)
The premium check condition allows you to run actions based off if your bot has premium or not. This condition is mainly used in BotGhost's pre-built modules, however it can be used in any command / event you create. The red block runs when the bot is not premium, while the green one runs when the bot is currently premium. The condition has no settings.
Here is a layout for this condition:
.png)
---
# Options
Source: https://botghost.com/docs/custom-commands-and-events/options
Options are purple in color and are used for users to input values into the command, which can then be referenced anywhere within the command with the variable {option_optionname}. Options function when a command is about to be executed, which creates fields to be able to input values into.
Additionally, options are automatically connected to the command when added. They are also only available in commands and aren't required to be in the command.
## Option Blocks
| Block | Information |
| --- | --- |
| [Text Option](https://botghost.com/docs/custom-commands-and-events/options/text-option) | The text option block allows for a text value to be input. |
| [Number Option](https://botghost.com/docs/custom-commands-and-events/options/number-option) | This block allows a number value to be input. |
| [User Option](https://botghost.com/docs/custom-commands-and-events/options/user-option) | This option allows you to select a user from a list of server members. |
| [Channel Option](https://botghost.com/docs/custom-commands-and-events/options/channel-option) | This option allows you to select a channel from a list of server channels. |
| [Role Option](https://botghost.com/docs/custom-commands-and-events/options/role-option) | This option allows you to select a role from your server. |
| [Choice Option](https://botghost.com/docs/custom-commands-and-events/options/choice-option) | With this option you are able to select true or false from a dropdown. |
| [Attachment Option](https://botghost.com/docs/custom-commands-and-events/options/attachment-option) | The attachment option allows you to upload an attachment to the command. |
| [Music Smart Search Option](https://botghost.com/docs/custom-commands-and-events/options/music-smart-search-option) | The music smart search option can be used to let users search for music tracks when using a command. |
---
# Text Option
Source: https://botghost.com/docs/custom-commands-and-events/options/text-option
This block is a plain text option which allows you input a text value when entering your command on Discord.
You can retrieve the variable of the option via the **Clipboard** or the block itself. The format of the variable is `{option_optionname}`, where `optionname` is the [name](https://botghost.com/docs/custom-commands-and-events/options/text-option#option-name) of the option.
## Option Name
This field requires an input for your unique option name. The designated name will then be the reference for your option variable.
## Option Description
The option description field allows you to assign a custom description to your option. It is useful to describe what the option is used for.
## Set Required
With this switch you are able to toggle if the option should be required or not in order to execute the command.
## Add Choices
This is an optional section is where you can add choices into your option. Choices allow the user to select something from a fixed set of values. There is a maximum number of 25 choices.
## Autocomplete
Autocomplete is a feature for slash command text options that shows users a list of suggestions as they type. It makes commands easier to use, reduces typing errors, and creates a smoother experience.
Unlike [choices](https://botghost.com/docs/custom-commands-and-events/options/text-option#add-choices), the autocomplete feature will add choices to the action that are not required to be the same, meaning you can follow them, but it's not mandatory.
.png)
Autocomplete can be configured by pressing the "Configure Autocomplete" button located in the settings of the text option.
.png)
**Basic Mode**
The basic settings have been enabled by default when you start to configure autocomplete.
.png)
### Choices
Choices can be addded by pressing the "Add Autocomplete Choice" in the image above.
#### Label
The label is what's shown as choice to the user when they use the command.
.png)
#### Value
The value is what is returned as the `{option_optionname}` variable. The value is not visible to the user and can be something else than the label.
**Bulk Mode**
To access bulk mode, you have to enable it in the top of the autocomplete configuration.
.png)
### Bulk Choices
Bulk choices can be added by pasting the lable and value seperated with a comma. An example can be found below:
```
label1,value1
label2,value2
label3,value3
```
When you have added the choices, simple press the "Parse and Replace Choices" button below the field. The choices will then also be visible when in Basic Mode.
### Time zone suggestions
Instead of your own choices, a text option can suggest time zones. In the option's Autocomplete settings, set **Where the suggestions come from** to **Time zones** (on the older settings panel, turn on **Suggest time zones**). As members type a city, a country or a zone's name, Discord shows up to 25 matching time zones with the time there now, with zones in their own country first.
The `{option_optionname}` variable is the zone's name, like `Europe/London`, or whatever they typed if they didn't pick one. While time zone suggestions are on, your own autocomplete choices and fixed [choices](https://botghost.com/docs/custom-commands-and-events/options/text-option#add-choices) aren't used.
---
# Number Option
Source: https://botghost.com/docs/custom-commands-and-events/options/number-option
The number option block allows for any integer to be input as a value as used later on in the commands actions.
You can retrieve the variable of the option via the **Clipboard** or the block itself. The format of the variable is `{option_optionname}`, where `optionname` is the [name](https://botghost.com/docs/custom-commands-and-events/options/number-option#option-name) of the option.
## Option Name
This field requires an input for your unique option name. The designated name will then be the reference for your option variable.
## Option Description
The option description field allows you to assign a custom description to your option. It is useful to describe what the option is used for.
## Set Required
With this switch you are able to toggle if the option should be required or not in order to execute the command.
## Add Choices
This is an optional section is where you can add choices into your option. Choices allow the user to select something from a fixed set of values. There is a maximum number of 25 choices.
---
# User Option
Source: https://botghost.com/docs/custom-commands-and-events/options/user-option
The user option block allows for any user to be selected from the server and used later in the commands actions. User IDs may also be used.
You can retrieve the variable of the option via the **Clipboard** or the block itself. The format of the variable is `{option_optionname}`, where `optionname` is the [name](https://botghost.com/docs/custom-commands-and-events/options/user-option#option-name) of the option.
Additionally, user option variables can be combined with other variables to target the user selected in the option. `{}` brackets must be excluded from the option when used as a target, like in the example below:
| β Wrong | βοΈ Correct |
| --- | --- |
| `{user_name[{option_user}]}` | `{user_name[option_user]}` |
| `{BGVAR_money[{option_user}]}` | `{BGVAR_money[option_user]}` |
## Option Name
This field requires an input for your unique option name. The designated name will then be the reference for your option variable.
## Option Description
The option description field allows you to assign a custom description to your option. It is useful to describe what the option is used for.
## Set Required
With this switch you are able to toggle if the option should be required or not in order to execute the command.
---
# Channel Option
Source: https://botghost.com/docs/custom-commands-and-events/options/channel-option
The channel option block allows for any channel to be selected from the server and used later in the commands actions. Channel IDs may also be used.
> **Warning:** Only the channels to which the user has access can be selected.
You can retrieve the variable of the option via the **Clipboard** or the block itself. The format of the variable is `{option_optionname}`, where `optionname` is the [name](https://botghost.com/docs/custom-commands-and-events/options/channel-option#option-name) of the option.
Additionally, channel option variables can be combined with other variables to target the channel selected in the option. `{}` brackets must be excluded from the option when used as a target, like in the example below:
| β Wrong | βοΈ Correct |
| --- | --- |
| `{channel_name[{option_channel}]}` | `{channel_name[option_channel]}` |
| `{BGVAR_status[{option_channel}]}` | `{BGVAR_status[option_channel]}` |
## Option Name
This field requires an input for your unique option name. The designated name will then be the reference for your option variable.
## Option Description
The option description field allows you to assign a custom description to your option. It is useful to describe what the option is used for.
## Set Required
With this switch you are able to toggle if the option should be required or not in order to execute the command.
---
# Role Option
Source: https://botghost.com/docs/custom-commands-and-events/options/role-option
The role option block allows for any role to be selected from the server and used later in the commands actions. Role IDs may also be used.
You can retrieve the variable of the option via the **Clipboard** or the block itself. The format of the variable is `{option_optionname}`, where `optionname` is the [name](https://botghost.com/docs/custom-commands-and-events/options/role-option#option-name) of the option.
> **Warning:** Only roles that are ping-able by the user can be chosen.
## Option Name
This field requires an input for your unique option name. The designated name will then be the reference for your option variable.
## Option Description
The option description field allows you to assign a custom description to your option. It is useful to describe what the option is used for.
## Set Required
With this switch you are able to toggle if the option should be required or not in order to execute the command.
---
# Choice Option
Source: https://botghost.com/docs/custom-commands-and-events/options/choice-option
This option block is a choice between `True` or `False` that can be used in later actions / conditions of the command.
You can retrieve the variable of the option via the **Clipboard** or the block itself. The format of the variable is `{option_optionname}`, where `optionname` is the [name](https://botghost.com/docs/custom-commands-and-events/options/choice-option#option-name) of the option.
## Option Name
This field requires an input for your unique option name. The designated name will then be the reference for your option variable.
## Option Description
The option description field allows you to assign a custom description to your option. It is useful to describe what the option is used for.
## Set Required
With this switch you are able to toggle if the option should be required or not in order to execute the command.
---
# Attachment Option
Source: https://botghost.com/docs/custom-commands-and-events/options/attachment-option
This option block will allow you to add an attachment in the form of a file, that can be referenced later in your command.
You can retrieve the variable of the option via the **Clipboard** or the block itself. The format of the variable is `{option_optionname}`, where `optionname` is the [name](https://botghost.com/docs/custom-commands-and-events/options/attachment-option#option-name) of the option.
## Option Name
This field requires an input for your unique option name. The designated name will then be the reference for your option variable.
## Option Description
The option description field allows you to assign a custom description to your option. It is useful to describe what the option is used for.
## Set Required
With this switch you are able to toggle if the option should be required or not in order to execute the command.
---
# Music Smart Search Option
Source: https://botghost.com/docs/custom-commands-and-events/options/music-smart-search-option
.png)
This option can be used to let users search for music tracks when using a command.
.png)
There are multiple variables you can use from this option. The format of the variable is `{option_optionname}`, where `optionname` is the [name](https://botghost.com/docs/custom-commands-and-events/options/music-smart-search-option#option-name) of the option.
| Variable | Information |
| --- | --- |
| `{option_optionname.result}` | This variable should be used in the [Music Queue Add](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/add-to-queue) and [Music Search](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/search-tracks) actions. If the user selected an option from the list, this will return the unique ID of the track. |
| `{option_optionname.title}` | This variable can be used for messages to a user. It returns the song's title. |
## Option Name
This field requires an input for your unique option name. The designated name will then be the reference for your option variable.
.png)
## Option Description
The option description field allows you to assign a custom description to your option. It is useful to describe what the option is used for.
.png)
## Set Required
With this switch you are able to toggle if the option should be required or not in order to execute the command.
---
# Events
Source: https://botghost.com/docs/custom-commands-and-events/events
Create custom events for when a user joins, a channel is created, etc.
The [Custom Events](https://dashboard.botghost.com/dashboard/customevents) module is where you can trigger actions based on things that occur in your server, on a timed basis, from an IFTTT trigger, and even from a BotGhost webhook.
## Getting Started
**Step 1.** Located in the Custom Events module, you will see the "New Custom Event" section, click the "Custom Event Builder" yellow block to create a new event.
.png)
*Click the "Custom Event Builder"*
**Step 2.** Select a custom event from the options currently provided.
These options will activate when a condition is met. For instance, if a user joins your server, you can then have the bot greet them, like the announcement module, and DM them.
**Step 3.** Under the yellow main block, click on it and set an "Event Nickname". This will be shown in the dashboard if you are ever looking to edit a certain event. You can name it to whatever you'd want.
## Blocks
In the custom event builder, the blocks you can use vary to the custom command builder. While creating an event, you cannot use options or certain conditions. As an example, you cannot use a "User Condition" in a timed event as the event has no user trigger. You can however use it if you have at least one button or select menu in your event.
## Available Events
The type of events you may use in the custom events builder can be found below.
**Action Events**
Action Events are a category of pre-built, powerful events in BotGhost that combine multiple actions into a single block.
They are designed to simplify the creation of common bot features, allowing you to accomplish complex tasks without needing multiple custom event blocks. Check out the [Action Events](https://botghost.com/docs/custom-commands-and-events/events/action-events) page for more information.
**Timed Events**
Timed events are a special type of events that can run on a scheduled (every day at 5 pm) or a set interval (every 10 minutes). Check out the [Timed Events](https://botghost.com/docs/custom-commands-and-events/events/timed-events) page for more.
**IFTTT Events**
IFTTT events can be triggered by IFTTT when something occurs (ex. you've created an applet that triggers a custom event when a video is posted on YouTube). Learn more on how to use them [here](https://botghost.com/docs/custom-commands-and-events/ifttt#trigger-a-custom-event-ifttt-actions).
**Webhook Events**
Webhook events can be triggered by an API Request sent to BotGhost. Learn more on the [Webhooks](https://botghost.com/docs/custom-commands-and-events/events/webhooks) page.
**Application Events**
The application events are based on actions in your server related to application command permissions.
- When an application commandβs permissions are updated
**Audit Events**
The audit events are based on actions in your server related to Discordβs audit log system.
- When an audit log entry is created
**Auto Moderation Events**
The Auto Moderation events are based on actions in your server related to Discordβs built-in AutoMod feature.
- When an Auto Moderation action is executed
- When an Auto Moderation rule is created
- When an Auto Moderation rule is deleted
- When an Auto Moderation rule is updated
**Boost Events**
The boost events are based on actions in your server related to server boosts.
- When a member boosts the server for the first time
- When a member unboosts the server
- When a server boost level increases
- When a server boost level decrease
**Bot Events**
The bot events are related to actions that occur within your bot.
- When the bot joins a server
- When the bot leaves a server
- When the bot starts or is restarted
- When a custom variable's value changes
- When the bot is updated through the dashboard
**Channel Events**
The channel events are based on actions in your server that are related to channels.
- When a channel is created
- When a channel is deleted
- When a channel is updated
- When a channel's permissions are updated
- When a guild channelβs topic is updated
- When a channelβs pins are updated
**Invite Events**
The invite events are based on actions in your server that are related to invites.
- When a invite is created
- When a invited is deleted
**Member Events**
The member events are based on actions in your server that are related to users.
- When a new user joins the serer
- When a user is banned from the server
- When a user is unbanned from the server
- When a user leaves or is kicked from the server
- When a role is added to a user
- When a role is removed from a user
- When a guild member is updated
- When a user changes their nickname
- When a user changes their status
- When a guildβs features are updated
- When a guildβs ownership is transferred to another user
- When a guild becomes a Partner
- When a guild loses its Partner status
- When a guildβs name is changed
- When an AFK channel is set
- When the AFK channel is removed
- When a guild banner is added
- When a guild banner is removed
- When a member passes membership screening
- When a guildβs integrations are updated
**Message Events**
The message events are based on actions in your server that are related to messages.
- When a new message is sent
- When a message is updated or edited
- When a message is deleted
- When a message is pinned
- When a user starts typing
**Music Events**
The music events are events triggered by [music actions](https://botghost.com/docs/custom-commands-and-events/actions/music-actions) and the [music module](https://botghost.com/docs/fun-modules/music).
- Track Events
- When a track starts playing
- When a track finishes playing
- When the queue finishes playing
- When a track encounters an error
- When a track gets stuck/frozen
- Player Controls
- When playback is started
- When playback is paused
- When playback is resumed
- When a track is skipped
- When seeking in a track
- When queue is shuffled
- When playback is stopped
- Queue Events
- When a track is added to the queue
- When a track is removed from the queue
- Settings Events
- When AutoPlay is toggled
- When AutoLeave is toggled
- When the player volume is changed
- When player loop mode is changed
- Connection Events
- When bot connects to voice channel
- When bot disconnects from voice channel
- When bot is moved to a different voice channel
- When bot automatically leaves voice due to inactivity
- System Events
- When a music player is created
- When a music player is destroyed
- When a music player switches Lavalink node
- When a music player's WebSocket connection closes
- When a music player state updates (fires frequently)
- Other Music Events
- When audio filters are changed
- When player is resuming playback
- When player has successfully resumed
- When player mute status changes
- When player deaf status changes
- When a user joins the voice channel with the bot
- When a user leaves the voice channel with the bot
**Poll Events**
The poll events are based on actions in your server related to the discord builtin poll feature.
- When a user votes on a poll
- When a user removes their vote on a poll
**Reaction Events**
The reaction events are based on actions in your server that are related to reactions on messages.
- When a reaction is added to a message
- When a reaction is removed from a message
- When all reactions are removed from a message
- When a specific reaction is removed from a message
**Role Events**
The role events are based on actions in your server that are related to roles.
- When a role is created
- When a role is updated
- When a role is deleted
**Scheduled Events Events**
The scheduled events events are based on actions in your server that are related to the scheduled events feature.
- When a scheduled event is created
- When a scheduled event is updated
- When a scheduled event is deleted
- When a user joins a scheduled event
- When a user leaves a scheduled event
**Stage Events**
The stage events are based on actions in your server related to stage instances.
- When a stage instance is created
- When a stage instance is deleted
- When a stage instance is updated
**Sticker Events**
The sticker events are based on actions in your server related to stickers.
- When a sticker is created
- When a sticker is deleted
- When a sticker is updated
**Thread Events**
The thread events are based on actions in your server that are related to threads or forum posts.
- When a thread is created
- When a thread is deleted
- When a thread is updated
- When thread lists are synced
- When thread members are updated
- When a thread member is updated
**Voice Events**
The voice events are based on actions in your server that are related to voice channels and users inside of them.
- When a member joins a voice channel
- When a member switches voice channels
- When a member leaves a voice channel
- When a member starts streaming in a voice channel
- When a member stops streaming in a voice channel
- When a member is server muted
- When a member self mutes
- When a member is server unmuted
- When a member self unmutes
- When a member is server deafened
- When a member self deafens
- When a member is server undeafened
- When a member self undeafens
- When a voice server is updated
### **Variables**
> **Note:** All specific and special variables can be found in the variable tab, the variable list changes per event type.
All event specific variables can be found in the variable list (represented by a clipboard icon), that appears on every input in your event builder. Those vary per event type. Learn more about variables and other variable types in the [Variables](https://botghost.com/docs/custom-commands-and-events/variables) page.
.png)
---
# Action Events
Source: https://botghost.com/docs/custom-commands-and-events/events/action-events
Action Events are a category of pre-built, powerful events in BotGhost that combine multiple actions into a single block. They are designed to simplify the creation of common bot features, allowing you to accomplish complex tasks without needing multiple custom event blocks.
.png)
## Action Event Block
.png)
All action events come with a pre-added block where you can configure settings for the event or other automated actions. In the screenshot above for example, the Auto Role on Join Block is a default block that appears on the Auto Role on Join custom event. It alllows you to add one or more roles to a specific member on join and configure details.
## Available Action Events
| Event | Information |
| --- | --- |
| Auto Role on Join | Adds a role when a user joins the server. |
| Twitch Stream Online | The event will run when a streamer goes live on Twitch. |
| YouTube Video Upload | Triggers when a new video is posted on a YouTube channel. |
---
# Timed Events
Source: https://botghost.com/docs/custom-commands-and-events/events/timed-events
Trigger custom events through schedules and intervals
The timed events module allows users to setup events to be triggered on the specified days/times selected. This is super handy for reminders or other important messages that need to be sent every so often.
## Settings
Here you can customise the settings for the module, create new events, edit events and more.
### Timezone
The timezone section allows you to specify the timezone you wish the events to trigger in. By default it will be set to your current timezone on your computer/device.
### Add a new timed event
Below you can see a image of the event creator. Here you can select the trigger time, trigger day, name and type of event.
.png)
### Event Type
Here you can select between 'Schedule' or 'Interval'. By default it is set to 'Interval'. Selecting the 'Interval' type will allow you to make the event trigger on a interval (Run events every X amount of seconds, minutes, hours or days. The minimum interval is 10 seconds.) (Green = active Red = Disabled)
Setting this to Schedule will display some new options:
.png)
Here you can set the event to tigger every X day(s) at X time. Example, run the event every Monday at 12:00:00PM. (Green = active Red = Disabled)
## Active Timed Events
Here you can find all of your created timed events, you will be able to modify each one by clicking on the event.
.png)
---
# Webhooks
Source: https://botghost.com/docs/custom-commands-and-events/events/webhooks
Trigger custom events through webhooks
.png)
[BotGhost webhooks](https://dashboard.botghost.com/dashboard/webhooks) allow you to trigger custom events by sending a POST HTTP request to the internal BotGhost API. This lets you connect external services and pass along data to your BotGhost hosted bot.
> **Note:** A BotGhost webhook is NOT the same as a [Discord webhook](https://support.discord.com/hc/en-us/articles/228383668-Intro-to-Webhooks).
---
## API Key
To secure your webhook, the module requires you to authenticate with an API key. The owner of the bot can view, copy, and regenerate this key at any time on the Webhooks module. Treat this key like a password to your custom event, and only share it with those who should be able to trigger it.
.png)
---
## Setting Up Webhooks
### Creating a Webhook
To trigger an event from an external source you must first create a new webhook in your BotGhost dashboard. Enter a descriptive name for your webhook and click **Add Webhook Event**. An Event ID will be prepopulated and a new webhook will be created.
In the example request section of the newly created webhook, you will see the webhook URL and the required headers and body of the request. View the API reference at the bottom of the page for more information about the required information of the POST request.
### Creating a Custom Event
Once you have created a webhook, you need to create a custom event to be executed when you submit a POST request to your webhook. This is the same process as creating a normal BotGhost custom event however you must select your webhook as an event type.
Go to the Custom Events module and create a new event. Select your webhook as the event type for your new event.
.png)
Once you have created your event, you must also set a server id as a base for the event. This is so it can retrieve information about channels and members when your event is executed.
After entering a server id, you can configure your custom event like normal. This event will be triggered when its associated webhook receives a valid HTTP POST request.
### Sending your POST request
Once you have created a webhook and custom event you must send a POST request to the webhook URL.
The webhook URL is always in the format `https://api.botghost.com/webhook/{bot_id}/{event_id}` replacing `{bot_id}` with your bot's id and `{event_id}` with the generated webhook event id.
You must pass along your API token as an Authorization Header to authenticate your `POST` request.
You can also optionally pass along an array of variables to act as event variables with your request. The BotGhost Webhook API expects a JSON formatted array of objects with each variable object having:
| Key | Info |
| --- | --- |
| `name` | A descriptive name for your variable. |
| `variable` | The actual variable itself. This must start with `{` and end with `}`. |
| `value` | The value of the variable that will be replaced when it is used in the webhook event. |
Pass these variables along in the body of your request. You can then use any of these supplied variables in the custom event being executed by your webhook.
---
## API Reference
Submit a `POST` request to the following endpoint. On success, if a custom event with that webhook event id exists that event will be triggered.
Replace `{bot_id}` and `{event_id}` in the URL with your bots id and a webhook event id.
`POST` `https://api.botghost.com/webhook/{bot_id}/{event_id}`
Send a POST request to trigger a custom event on a bot. Replace `{bot_id}` and `{event_id}` with your bot id and an event id. Event ids are generated after creating a webhook in the webhook module.
**Headers**
| Name | Type | Description |
| --- | --- | --- |
| Authorization* | API_KEY | Auhthorization header with your API_KEY from the webhooks module page. |
**Request Body**
| Name | Type | Description |
| --- | --- | --- |
| variables | Array | An array of optional variables to pass along to the webhook. Each variable object should have a name, variable, and value. |
#### Response
When you send your `POST` request to your BotGhost webhook, you may receive different status codes. These codes let you know whether the webhook event was successfully triggered, or if an error occurred. Below you can find detailed information about each status code, what it means, and what to do from there.
**200: OK**
Success! This status is returned when the webhook event has successfully been triggered. If you didn't get the result you expected, double-check your event's logic and try again.
**400: Bad Request**
Error. This status is returned when the request hasn't been formatted properly.
#### What Went Wrong
The most common occurrences of this error happen when:
- The variables parameter was not formatted as an array
- The variables parameter was missing the `name`, `variable`, or `value` key(s)
- The variables parameter had an improperly formatted `variable` key
#### How to Fix
Head back to the variables settings under [Sending your POST request](https://botghost.com/docs/custom-commands-and-events/events/webhooks#sending-your-post-request) and try setting up again.
**401: Unauthorized**
Error. This status is returned when the provided API key is invalid.
#### What Went Wrong
The most common occurrences of this error happen when:
- The API key was not provided
- The API key has been provided incorrectly
- The API key has been regenerated
- The bot has been removed from BotGhost
#### How to Fix
Head back to the [API Key](https://botghost.com/docs/custom-commands-and-events/events/webhooks#api-key) settings and try setting up again.
**404: Not Found**
Error. This status is returned when the provided URL is invalid.
#### What Went Wrong
The most common occurrences of this error happen when:
- The webhook URL has been provided incorrectly
- The webhook event has been deleted
- The bot has been removed from BotGhost
#### How to Fix
Head back to the webhook URL settings under [Sending your POST request](https://botghost.com/docs/custom-commands-and-events/events/webhooks#sending-your-post-request) and try setting up again.
**405: Method Not Allowed**
Error. This status is returned when you have sent an API request to your webhook that is not a `POST` request. To fix it, set your request type to `POST` and try again.
**429: Too Many Requests**
Error. This status is returned when you have sent too many requests to this URL in a too short amount of time. To fix it, wait a while before trying again.
---
# Data Storage
Source: https://botghost.com/docs/custom-commands-and-events/data-storage
Create custom variables to store data for your bot
[Data storage](https://dashboard.botghost.com/dashboard/datastorage) is the first step in unlocking the ability for your bot to store data to be used by your bot, either per server or globally.
## What are variables
Custom variables are 'placeholders' to store and access data across different commands, interactions and servers!
### Variable Types
Variables can be set to text or numbers, but can also be made specific to a user or channel. Variables can also have a server specific or global scope, meaning it will be the same in all servers. Currently, we offer the following data types:
| Variable Type | Information |
| --- | --- |
| Text | Stores a text value. |
| Number | Stores a simple number value. |
| Collection | Collections, that are also known as arrays, can store multiple data of the same type. Example, a collection made of User IDs. Learn more [here](https://botghost.com/docs/custom-commands-and-events/data-storage/collections). |
| Object | Object variables are variables that can store other sub-variables (or properties). Learn more [here](https://botghost.com/docs/custom-commands-and-events/data-storage/objects). |
Which can be either:
| Type | Information | Can be Global / Server Specific? |
| --- | --- | --- |
| Not user / channel specific | This means it can't contain a different value basing on the user or channel provided. It can also be global or server specific | true |
| User Specific | This means you can store a different value for every user. | true |
| Channel Specific | This means you can store a different value for each channel in your server. | false |
## Creating a New Variable
To create a new variable, head over to the [data storage](https://dashboard.botghost.com/dashboard/datastorage) module and go to the "New Variable" window.
.png)
#### Variable Name
In this field you can enter the name of your new variable. This will also be the reference for your variable.
#### Variable Reference
This is your variable reference, it will be `{BGVAR_variable_name}`, depending on what variable name you add. You can use this variable anywhere in your bot to get the variable value.
You do not need to enter anything in this field when creating a new variable.
#### Variable Type
In this field you can enter the [type of your variable](https://botghost.com/docs/custom-commands-and-events/data-storage#variable-types), variables can be set to text or numbers, but can also be made specific to a user or channel.
> **Note:** If you select "User" or "Channel" here, you will get another field where you can choose to set the variable type to text, number, collection or object.
#### Default Value
In this field you can enter a default value that will be in the variable when nothing else has been set.
#### Scope
In this field you can select whether you want to make your variable server specific or global, meaning it will be the same in all servers.
### Editing or Deleting a Variable
To edit a custom variable, simply press the variable you want to edit in the module. You can then edit the variable in this window:
.png)
> **Tip:** Don't forget to press the "Edit Custom Variable" button and save changes!
You can also delete a custom variable from storage by pressing the "Delete" button.
> **Important:** Deleting a variable will not just clear the value of the variable, this will delete the variable from the storage
## Using Your Variable
### Updating Your Variable's Value
> **Note:** Interacting with a variable on a non-premium bot will use 1 [call](https://botghost.com/docs/custom-commands-and-events/data-storage#free-database-usage-calls). This includes retrieving it in a response and updating it via the actions described below. The delete variable action won't use any calls.
To set or clear (delete) custom variables, you can use the Set Variable, Run Equation on Variable or Delete Variable actions in the [command and event builder](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder). You can read more about these actions [here](https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions)!
*Command Builder actions: Set Variable, Run Equation on Vaiable & Delete Variable*
### Retrieving Your Variable
You can get data stored in the data storage module by using an associated `{BGVAR_}` variable in other action blocks, for example: `{BGVAR_example}`.
You can get user and channel specific variables by targeting them, for example: `{BGVAR_example[ID]}`. You can learn more about targeting [here](https://botghost.com/docs/custom-commands-and-events/variables#targeting).
*Plain Text Reply with a custom variable, {BGVAR_exampe}*
## **Free Database Usage (Calls)**
.png)
Every month, users get 500 calls to use across their **free** bots. Free bots will use 1 call every time they either create a variable or update the value of a variable. Only free bots use calls, premium bots can use unlimited data storage.
> **Note:** Your calls can not be reset manually, they will automatically reset on the first of each month. The data stored in them will not reset.
> **Note:** Experiencing issues with this module or need help? Check out our support options [here](https://botghost.com/docs/support/botghost-support)!
---
# Collections
Source: https://botghost.com/docs/custom-commands-and-events/data-storage/collections
[YouTube video](https://www.youtube.com/watch?v=7CwWg2qD16Y)
Collections or arrays are a special data storage type that allows you to store a group of text or numbers. Collections consist of an ordered list using numbered indexes starting from 0 to access specific data.
## How Values Are Stored In Collections
Collection values are stored on positions in the collection. Each position has it's own number to access it, starting at 0. Every value is seperated with a comma.
Collections also have default values you are able to set when creating or editing a variable in the [data storage](https://botghost.com/docs/custom-commands-and-events/data-storage) module.
Here are some examples of collection references and their values or arrays:
- `{BGVAR_collection}` - [hello, world, abc, xyz]
- `{valueAtPosition({BGVAR_collection}),[2]}` - abc
- `{lengthOfCollection({BGVAR_collection})}` - 4
> **Warning:** Collection positions always start at 0.
.png)
## Displaying Collection Values
To display values stored in the collection variable, you can target the position of the value. You can also use other variables to access the data in other ways. Below are some examples of targeting positions in the collection variable:
- `{BGVAR_collection}` - [hello, world, abc, xyz]
- `{valueAtPosition({BGVAR_collection}),[0]}` - hello
- `{valueAtPosition({BGVAR_collection}),[1]}` - world
- `{valueAtPosition({BGVAR_collection}),[2]}` - abc
This variable can be used anywhere in your command and event builder and will retrieve the corresponding value for the given position of the collection.
### Collection Variables
BotGhost offers some variables you can use for any array or collection (even from an [API response](https://botghost.com/docs/custom-commands-and-events/actions/api-actions/send-an-api-request)), which allow you to retrieve specific information of the collection. To know more about them, check out the [Variables](https://botghost.com/docs/custom-commands-and-events/variables#collection-array-variables) page.
### Targeting
Targeting also works for collection variables, when they are user or channel specific. Just like regular variables, you can add the square brackets [] at the end of the base variable providing the user / channel target, for example:
- `{BGVAR_collection[user_id]}`
- `{valueAtPosition({BGVAR_collection[user_id]}),[0]}`
If no target is provided, the value of the user who triggered the last interaction (command, event, button or select menu) will be returned for user collections, or the value of the channel the last interaction has been triggered in (command, event, button or select menu) will be returned for channel collections.
## Updating Collection Values
To update a collection value, you can use one of the [variable actions](https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions) below:
| Block | Information |
| --- | --- |
| [Set Variable](https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions/set-variable) | Collection variables selected in this block will allow you to set a value somewhere in a collection. |
| [Delete Variable](https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions/delete-variable) | This action block will allow you to delete a collection value. |
> **Note:** You can not use the Run Equation on Variable action on collections.
---
# Objects
Source: https://botghost.com/docs/custom-commands-and-events/data-storage/objects
Objects are a special data type usually used to store a "group" of data. For example, they can be used to store the birthday of an user, which is made by the day of birth, month and year. They can also be helpful when creating an economy system: you can use an object to store the inventory of a specific user.
Here are some examples of object references and their values:
- `{BGVAR_object_variable.day}` - 1
- `{BGVAR_object_variable.month}` - 7
- `{BGVAR_object_variable.year}` - 1979
## How Values Are Stored In Objects
Objects store values as properties. Each property has a name (key) and a value that you can assign as base value. In the example above, the "object variable" variable has three properties: "day", "month", and "year". These properties hold the values "1", "7", and "1979", respectively.
Objects also have default values you are able to set when creating them in [data storage](https://botghost.com/docs/custom-commands-and-events/data-storage). Likewise you are able to remove keys from here as well. In addition to default values, you can create new keys during commands or events by using either the [Set Variable](https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions/set-variable) or [Run Equation on Variable](https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions/run-equation-on-variable) action blocks.
## Displaying Object Values
To display values stored in the object variable, you use a dot notation between the object's variable name, followed by a dot, and the property (key) name. The same key name can be used across different objects, but cannot be used twice in the same object. For example:
- `{BGVAR_object_variable.day}`
- `{BGVAR_object_variable.year}`
- `{BGVAR_cool_variable.day}`
This variable can be used anywhere in your command builder and will retrieve the corresponding value for the given object and property.
### Targeting
Targeting also works for object variables, when they are user or channel specific. Just like regular variables, you can add the square brackets [] at the end of the variable providing the user / channel target, for example:
- `{BGVAR_object_variable.day[option_user]}`
- `{BGVAR_object_variable.day[{bot_id}]}`
- `{BGVAR_object_variable.day[136327647792726016]}`
- `{BGVAR_object_variable.day[option_channel]}`
- `{BGVAR_object_variable.day[{first_channel_id}]}`
If no target is provided, the value of the user who triggered the last interaction (command, event, button or select menu) will be returned for user objects, and the value of the channel the last interaction has been triggered in (command, event, button or select menu) will be returned.
## Updating Values
To update a value into an object using any of these 3 action blocks:
| Block | Information |
| --- | --- |
| [Set Variable](https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions/set-variable) | Object variables selected in this block will allow you to set a value for a specific key. |
| [Run Equation on Variable](https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions/run-equation-on-variable) | For this action block, a specific key's value will be set as the result of an equation. |
| [Delete Variable](https://botghost.com/docs/custom-commands-and-events/actions/custom-variable-actions/delete-variable) | This action block will allow you to delete a specific key's value or all key values from an object. |
Check out the object sections on the pages for these actions by clicking the links above for more information.
---
# IFTTT
Source: https://botghost.com/docs/custom-commands-and-events/ifttt
IFTTT is short for "If This Then That" and allows you to link up to 700 different apps and services, including Twitter, DropBox, Twitch, and Google Sheets. IFTTT works by creating applets with triggers, queries, and actions.
The IFTTT x BotGhost link allows you to trigger IFTTT applets through custom commands and events, as well as triggering BotGhost custom events when other services trigger fires.
## Linking IFTTT to BotGhost
To get started with IFTTT you must first link your IFTTT account to your BotGhost account. To do so head over to the [BotGhost IFTTT page](https://ifttt.com/botghost) and click **Connect** to begin this process.
.png)
This will prompt you to log in and redirect you to the BotGhost dashboard where you must give permission to link your BotGhost account to IFTTT. Click **Authorize** to confirm the BotGhost x IFTTT link.
.png)
Once complete your accounts are now linked. You can now begin creating Applets using BotGhost triggers, queries, and actions on IFTTT.
## **Applets**
Applets are the backbone of IFTTT. Applets use a customizable script to link two or more apps that normally remain separate. Within BotGhost, we use IFTTT Applets to either trigger custom events or trigger other services actions on IFTTT.
To create an Applet, once again head over to the [BotGhost IFTTT service page](https://ifttt.com/botghost) and click **Create.**
.png)
You will then be prompted to Add at least one trigger and action. Triggers are what causes an applet to run, whilst actions are the end result of an action. Within BotGhost, the IFTTT trigger is executed through an Action block in custom commands or events.
In your applet, click **Add** in the If This section and select the **Action Block triggered** IFTTT trigger.
.png)
## Action Block Triggered (IFTTT Triggers)
The Action Block Triggered IFTTT Trigger executes an Applet when an **Execute an IFTTT Trigger** action block in a custom command or event is run.
On IFTTT the Action Block Triggered Trigger has three options.
.png)
First, select your linked BotGhost account in the **BotGhost account** dropdown.
### Action ID
The action ID field is what links your action in BotGhost to your trigger on IFTTT. This field must match the Action ID field in an **Execute an IFTTT Trigger** action in a BotGhost custom command or event. You can name this action ID anything you wish.
### Bot
Select the bot you wish to trigger the action from.
### Execute an IFTTT Trigger Action
Once you have set up your trigger on IFTTT, you can execute it through an **Execute an IFTTT trigger** action block in a custom command or event on BotGhost. To do so, first, create a custom command or event and drag in the action.
.png)
In the action, set the **Action ID** to the same Action ID you specified in your trigger on IFTTT.
### Variables
You can pass information from your command or event to the action triggered in your Applet through IFTTT ingredients. The **Action Block Triggered** IFTTT Trigger has 10 variable slots you can use to pass through as ingredients. All BotGhost variables can be used in these slots including custom variables.
These variables will come through as ingredients named Variable1, Variable2, Variable3... in any connected IFTTT action in your applets.
.png)
.png)
## Trigger a Custom Event (IFTTT Actions)
In IFTTT actions are the end result of an Applet. They are what are run when triggered by an IFTTT trigger. In BotGhost, the IFTTT Action is the execution of a custom event.
Once again create an applet and set a trigger of your choosing. Click the **Add** Section in Then That and choose BotGhost. Click on **Trigger a Custom Event** to add the BotGhost IFTTT Action to your Applet.
.png)
You will then be shown the options for the Action. Once again select your BotGhost account and input the Bot ID of the bot you wish to trigger the custom event of.
### Event ID
Similarly to the IFTTT Trigger, we must provide an ID that is the same in BotGhost and IFTTT. If you have not done so already, head over to your BotGhost and create a Custom Event with the type **When an IFTTT Action is executed.**
.png)
You will need to input an IFTTT Event ID and then select that Event in your IFTTT Action.
Enter an event ID and then select that same event in your IFTTT Action.
Then make sure to enter your server ID in the Discord Server ID field in your event. You can then continue to build out your custom event like normal.
### IFTTT Event Variables
You can pass variables through to your BotGhost custom event using the 10 IFTTT Variable slots. You can input your text or use ingredients from the execution action.
Each variable has its corresponding variable in the event builder. For example, any text or ingredients you put into the **Variable 1 slot**, can be used in your custom event as **{ifttt_variable1}**.
---
# Variables
Source: https://botghost.com/docs/custom-commands-and-events/variables
Variables allow you to store data from API requests, action outputs, custom data and more. Variables can be used in almost every field of the actions and conditions [custom command and event builder](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder).
The **available** **variables** in your command-builder or event-builder may vary depending on the action, custom variables you have, API requests you use, and the event you might be using in case you are using the event builder. Here you may find some general information on what they are and how to use them.
.png)
## Targeting
You can add a target to your variable to get data of a specific user, channel, role or server (more targeting options are available when using [Object Variables](https://botghost.com/docs/custom-commands-and-events/variables#object-variables)). To do so, add square brackets `[]` at the very end of your variable*. Make sure to add a valid ID, variable or option. See below for more info.
* Targeting is slightly different for [object variables](https://botghost.com/docs/custom-commands-and-events/variables#object-variables): the square brackets go before the first dot. For example, `{Channel[ID].name}` instead of `{Channel.name[ID]}`.
### Plain ID
You can use a plain ID as a target. This means the variable will always return the value of the same user, channel or role.
Below are some examples:
- `{user_icon[136327647792726016]}`
- `{user_joinedAt[136327647792726016]}`
- `{channel_name[1021852614725480448]}`
### Options
In custom commands you can use an option for your target (make sure it's a valid variable type: you need to use user options if you want to target a user using a option). The variable name should be inside your square brackets `[]`, without any curly brackets `{}` around it, and preceded by `option_`.
Below are some examples:
- `{user_icon[option_user]}`
- `{user_joinedAt[option_player]}`
- `{channel_name[option_channel]}`
### Variables Containing an ID
Lastly, you can also use other variables that contain an ID. Unlike options, make sure to paste the full variable inside your square brackets `[]`, including the curly brackets `{}`.
Below are some examples:
- `{user_icon[{bot_id}]}`
- `{user_joinedAt[{api.response.id}]}`
- `{channel_name[{BGVAR_my_custom_variable}]}`
## Storing Custom Data
### Storing Data across all commands and events
If you want to store data across all commands and events, you can use the [data storage](https://botghost.com/docs/custom-commands-and-events/data-storage#variable-types), which allows you to store and retrieve data with different types of variables.
### Storing Data in a command or event
You can also store data only in a specific command / event execution, meaning that once the execution of the command / event is completed, saved data will be deleted. This is useful to easily store temporary data. Check out the [Set a unique variable](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/set-a-unique-variable) page to learn more.
## Variables
### Object Variables
Some variables in BotGhost allow you to access properties of Discord objects, such as guilds, channels, or members, through dot notation. These variables start with a Capital letter and give you access to all the properties available on their respective Discord.js objects. For example, `{User[136327647792726016].username}` would return the username of the user with that ID. Dot notation allows you to access sub-objects of an object. For example, `{Message.channel.name}` will return the name of the channel the message was sent in. All properties and connections to other objects are described in the [discord.js](https://discord.js.org/docs/packages/discord.js/main) Documentation.
You can view a list of all properties of an object through the variable selector (clipboard icon). Objects highlighted in green do not require you to provide an ID or a parameter for the object variable to work (for example, when you run a command the Guild object is automatically set to return information about the server the command was used in. You can however overwrite the pre-defined value with `[VALUE]`, as described above). Some object variables do not require a selector depending on the command or event type. For example, in a command, `{User.username}` would return the username of the user who ran the command. These are shown in green with the text "Available". All other objects require an ID to be specified.
.png)
Currently these objects are available:
| Object Variable | Details | Example | Properties |
| --- | --- | --- | --- |
| Message | Access properties of a specific Discord message. | `{Message.author}` | [Message Properties](https://discord.js.org/docs/packages/discord.js/main/Message:Class) |
| Guild | Access properties of a guild. | `{Guild.memberCount}` | [Guild Properties](https://discord.js.org/docs/packages/discord.js/main/Guild:Class) |
| Channel | Access properties of a channel. | `{Channel[1021852614725480448].url}` | [Text Channel Properties](https://discord.js.org/docs/packages/discord.js/main/TextChannel:Class)
[Forum Channel Properties](https://discord.js.org/docs/packages/discord.js/main/ForumChannel:Class)
[Thread Properties](https://discord.js.org/docs/packages/discord.js/main/ThreadChannel:Class)
[Media Channel Properties](https://discord.js.org/docs/packages/discord.js/main/MediaChannel:Class)
[Announcement Channel Properties](https://discord.js.org/docs/packages/discord.js/main/AnnouncementChannel:Class)
[Voice Channel Properties](https://discord.js.org/docs/packages/discord.js/main/VoiceChannel:Class)
[Stage Channel Properties](https://discord.js.org/docs/packages/discord.js/main/StageChannel:Class)
[Category Properties](https://discord.js.org/docs/packages/discord.js/main/CategoryChannel:Class) |
| Member | Access properties of a server member. | `{Member[{option_user}].roles}` | [Guild Member Properties](https://discord.js.org/docs/packages/discord.js/main/GuildMember:Class) |
| User | Access properties of a user. | `{User.createdTimestamp}` | [User Properties](https://discord.js.org/docs/packages/discord.js/main/User:Class) |
| Role | Access properties of a role in a server. | `{Role[{option_role}].permissions}` | [Role Properties](https://discord.js.org/docs/packages/discord.js/main/Role:Class) |
| Invite | Access the properties of an invite. | `{Invite[{invite_code}].inviter}` | [Invite Properties](https://discord.js.org/docs/packages/discord.js/main/Invite:Class) |
| Sticker | Access the properties of a sticker. | `{Sticker.name}` | [Sticker Properties](https://discord.js.org/docs/packages/discord.js/main/Sticker:Class) |
| AuditLogEntry | Access the properties of an audit log entry. | `{AuditLogEntry[{auditlogid.response.audit_log_entries.0.id}].actionType}` | [Guild Audit Log Entry Properties](https://discord.js.org/docs/packages/discord.js/main/GuildAuditLogsEntry:class) |
| StageInstance | Access the properties of a stage Instance. | `{StageInstance.topic}` | [Stage Instance Properties](https://discord.js.org/docs/packages/discord.js/main/StageInstance:Class) |
| AutoModerationRule | Access the properties of an AutoMod rule. | `{AutoModerationRule.triggerType}` | [AutoModeration Rule Properties](https://discord.js.org/docs/packages/discord.js/main/AutoModerationRule:Class) |
| AutoModerationActionExecution | Access the properties of an AutoMod action execution. | `{AutoModerationActionExecution.matchedContent}` | [AutoModeration Action Execution Properties](https://discord.js.org/docs/packages/discord.js/main/AutoModerationActionExecution:Class) |
| Reaction | Access the properties of a reaction. | `{Reaction.count}` | [Message Reaction Class](https://discord.js.org/docs/packages/discord.js/main/MessageReaction:Class) |
| Emoji | Access the properties of a custom emoji. | `{Emoji[{Reaction.emoji}].createdTimestamp}` | [Emoji Properties](https://discord.js.org/docs/packages/discord.js/main/Emoji:Class) |
| GuildScheduledEvent | Access the properties of a guild scheduled event | `{GuildScheduledEvent[{option_event-id}].userCount}` | [Guild Scheduled Event Properties](https://discord.js.org/docs/packages/discord.js/14.24.2/GuildScheduledEvent:Class) |
| GuildBan | Access the properties of a ban. | `{GuildBan.reason}` | [Guild Ban Properties](https://discord.js.org/docs/packages/discord.js/14.24.2/GuildBan:Class) |
| Presence | Access the properties of a user's presence. | `{Presence.status}` | [Presence Properties](https://discord.js.org/docs/packages/discord.js/main/Presence:Class) |
| VoiceState | Access the properties of a voice channel's state. | `{VoiceState.selfMute}` | [Voice State Properties](https://discord.js.org/docs/packages/discord.js/main/VoiceState:Class) |
### Music Variables
There are also some variables that allow for integration with the [music actions](https://botghost.com/docs/custom-commands-and-events/actions/music-actions). With these, you can do things like fetch information about the song or the player.
#### Music Objects
The following are object variables for music actions that are accessed the same way as described in the [Object Variables](https://botghost.com/docs/custom-commands-and-events/variables#object-variables) section.
| Object Variable | Details | Example | Properties |
| --- | --- | --- | --- |
| MusicPlayer | Access the properties of the server's music player. | `{MusicPlayer.current}` | [Music Player Properties](https://moonlink.js.org/api/player#properties) |
| MusicCurrentTrack | Access the properties of the currently playing track. | `{MusicCurrentTrack.author}` | [Current Track Properties](https://moonlink.js.org/api/track#properties) |
| MusicQueue | Access the properties of the music queue. | `{MusicQueue.tracks[0].title}` | [Music Queue Properties](https://botghost.com/docs/getting-started/invite-your-bot) |
| MusicSearchResult | Access the properties of a search from [Search Tracks](https://botghost.com/docs/custom-commands-and-events/actions/music-actions/search-tracks) | `{MusicSearchResult[0].title}`
`{MusicSearchResult.query}` | [Search Result Properties](https://moonlink.js.org/api/search-result#overview) |
#### Music Variables
The following variables can be used as-is, similar to [basic variables](https://botghost.com/docs/custom-commands-and-events/variables#basic-variables).
| Variable | Information |
| --- | --- |
| `{music_search_formatted_list}` | Returns a nicely formatted list of all search results (numbered list with title, artist, and duration). |
| `{music_search_status}` | Returns the status of the last search (success/no_matches). |
| `{music_search_results_length}` | Returns the number of results found. |
| `{music_search_query}` | Returns the search query that was used. |
| `{music_current_track_title}` | Returns the title of the currently playing track. |
| `{music_current_track_author}` | Returns the author/artist of the currently playing track. |
| `{music_current_track_url}` | Returns the URL of the currently playing track. |
| `{music_current_track_requester}` | Returns the user ID of the user who requested the currently playing track. |
| `{music_current_duration_formatted}` | Returns the duration of the currently playing track formatted as MM:SS or HH:MM:SS. |
| `{music_current_duration_total}` | Returns the total duration of the current track in seconds. |
| `{music_current_position_formatted}` | Returns the current position formatted as MM:SS. |
| `{music_remaining_time_formatted}` | Returns the remaining time in the current track formatted as MM:SS. |
| `{music_position_percentage}` | Returns the current position as a percentage of the total duration (0-100). |
| `{music_position_formatted_with_duration}` | Returns the current position and total duration, formatted like '1:23/4:56`. |
| `{music_queue_length}` | Returns the number of tracks in the queue. |
| `{music_queue_next_track}` | Returns the title of the next track in the queue. |
| `{music_queue_next_track_author}` | Returns the author/artist of the next track in the queue. |
| `{music_queue_total_duration_formatted}` | Returns the total duration of all tracks in the queue formatted as HH:MM:SS. |
| `{music_queue_is_empty}` | Returns 'true' if the queue is empty, and 'false otherwise. |
| `{music_queue_formatted_list}` | A nicely formatted numbered list of all tracks in the queue (title, artist, and duration). |
| `{music_queue_list}` | An unformatted comma-separated list of track titles in the queue (e.g. Song1,Song2,Song3). |
| `{music_search_results_list}` | Returns an unformatted comma-separated list of track titles from search results (e.g. Song1,Song2,Song3). |
| `{music_is_playing}` | Returns 'true' if music is playing, and 'false' otherwise. |
| `{music_is_paused}` | Returns 'true' if the music is paused, and 'false' otherwise. |
| `{music_is_connected}` | Returns 'true' if the bot is connect to a voice channel, 'false' otherwise. |
| `{music_is_ready}` | Returns 'true' if the music system is ready (i.e. connected to the lavalink node), 'false' otherwise. |
| `{music_loop_mode_text}` | Returns 'Off', 'Track', or 'Queue' based on the loop mode. |
| `{music_volume_percentage}` | Returns the current volume as a percentage (e.g. '50%'). |
| `{music_autoplay_status}` | Returns 'Enabled' or 'Disabled' for autoplay. |
| `{music_autoleave_status}` | Returns 'Enabled' or 'Disabled' for autoleave. |
### Collection / Array Variables
BotGhost offers some variables you can use for any array or collection (even from an API response), which allow you to retrieve specific information of the collection.
| Variable | Information |
| --- | --- |
| `{lowestValue({BGVAR_collection})}` | Returns the lowest value in a collection. |
| `{highestValue({BGVAR_collection})}` | Returns the highest numerical value in a collection. |
| `{lengthOfCollection({BGVAR_collection})}` | Returns the length of a collection. |
| `{valueAtPosition({BGVAR_collection}),[2]}` | Returns the value at a specific position in the collection. Positions start at 0. |
| `{positionOfValue({BGVAR_collection}),[hello]}` | Returns the position of a value. |
| `{collectionCharacterLength({BGVAR_collection})}` | Returns the total character length of a collection. |
| `{printAllValues({BGVAR_collection}),[Hello $value]}` | Prints all values in a collection. The text returned can be set in the []. Use `$value` to print the value, and `$index` to display the index of the value shown. |
| `{getRandomFromCollection({BGVAR_collection})}` | Returns a random value from the collection. |
### Basic Variables
Below are all basic variables that you can use in the [command or event builder](https://botghost.com/docs/custom-commands-and-events/command-and-event-builder).
| Variable | Details | Supports Targets | Example Output |
| --- | --- | --- | --- |
| `{user}` | Returns the mention of the user | false | <@1085541861692813332> |
| `{server}` | Returns the server name | false | BotGhostπ» |
| `{channel}` | Returns the mention of the channel | false | <#879733469452836864> |
| `{^ROLE NAME}` | Returns the mention of a role on role name | false | <@&1190298492661420163> |
| `{#CHANNEL NAME}` | Returns the mention of a channel on channel name | false | <#879733469452836864> |
| `{channel_name}` | Returns the name of the channel | true | general-chat |
| `{channel_type}` | Returns the [type](https://discord.com/developers/docs/resources/channel#channel-object-channel-types) of the channel | true | GUILD_TEXT |
| `{channel_id}` | Returns the ID of the channel | false | 879733469452836864 |
| `{first_channel_id}` | Returns the first channel ID of the server | true | 879733469452836864 |
| `{server_members}` | Returns the server member count | true | 12 |
| `{server_icon}` | Returns a URL to the server icon | true |  |
| `{server_id}` | Returns the ID of the server | false | 822426820447567872 |
| `{server_owner}` | Returns the mention of the server owner | true | <@136327647792726016> |
| `{server_owner_id}` | Returns the ID of the server owner | true | 136327647792726016 |
| `{user_icon}` | Returns the icon of a user | true |  |
| `{user_name}` | Returns the user name of a user | true | tomtoise |
| `{user_id}` | Returns the ID of a user | true | 136327647792726016 |
| `{user_tag}` | Returns the user tag of a user | true | BotGhost Helper#4001 |
| `{user_discriminator}` | Returns the discriminator of a user | true | #4001 |
| `{user_createdAt}` | Returns the creation date of a user | true | Fri Apr 08 2022 13:51:34 GMT+0000 (Coordinated Universal Time) |
| `{user_joined}` | Returns the join date of the server from a user | true | Fri Apr 08 2022 13:51:34 GMT+0000 (Coordinated Universal Time) |
| `{user_displayName}` | Returns the display name of a user | true | Tomtoise |
| `{user_status}` | Returns the status of a user | true | online |
| `{user_role_ids}` | Returns the member's role IDs, separated by commas. Leaves out @everyone and roles Discord manages (bot and booster roles). Empty when they aren't in the server | true | 1190298492661420163,879733469452836864 |
| `{random[min,max]}` | Returns a random number between min and max | false | 6 |
| `{isNumber(TEXT)}` | Checks if a string of text is a number | false | true |
| `{randomCharacters(3)}` | Returns a random set of numbers | false | hIVzhLgwIb |
| `{charCount(TEXT)}` | Returns the character count of a string of text | false | 16 |
| `{isBot}` | Checks if a user is a bot | true | true |
| `{bot_serverCount}` | Returns the server count of the bot | false | 12 |
| `{user_name_encoded}` | Returns a URL encoded version of a user name, useful when sending the user's name in API request's URLs | true | Tomtoise |
| `{time_now}` | Returns a timestamp of the current time | false | |
| `{time_ahead_h_HOURS}` | Returns a timestamp of a certain number of hours ahead | false | |
| `{time_ahead_m_MINS}` | Returns a timestamp of a certain number of minutes ahead | false | |
| `{time_now_unix}` | Returns a unix combination of the current time | false | 1724181974 |
| `{time_ahead_unix_h_HOURS}` | Returns a unix combination of a certain number of hours ahead | false | 1724181974 |
| `{time_ahead_unix_m_MINS}` | Returns a unix combination of a certain number of minutes ahead | false | 1724181974 |
| `{time_ahead_unix_s_SECS}` | Returns a unix combination of a certain number of seconds ahead | false | 1724181974 |
| `{encode_text[TEXT]}` | Returns url encoded text for API requests | false | Hello%2C%20how%20are%20you |
| `{ISO_to_UNIX[Timestamp]}` | Converts an ISO timestamp to an UNIX timestamp | false | 1724181974 |
| `{UNIX_to_ISO[Timestamp]}` | Converts an UNIX timestamp to an ISO timestamp | false | 2024-02-26T20:28:40.902000+00:00 |
| `{HEX_to_DECIMAL[HEX]}` | Converts a hex code to a decimal | false | 1329119 |
| `{solve_equation[1+1]}` | Solve a math equation | false | 2 |
| `{previous_numbers(10)}` | Returns all previous numbers of a given number | false | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 |
| `{numberWithCommas[1000000]}` | Formats large numbers with commas | false | 1,000,000 |
| `{numberWithDots[1000000]}` | Formats large numbers with dots | false | 1.000.000 |
| `{bot_id}` | Returns the ID of the bot | false | 1085541861692813332 |
| `{hasRole([ROLE_ARRAY])}` | Checks if the user has a set of roles | true | true |
| `{isChannel([CHANNEL_ARRAY])}` | Checks if the action is executed in a channel | true | true |
| `{subString(Hello World),[0,5]}` | Returns a substring of a given string | false | Hello |
| `{toUpperCase(hello)}` | Returns the given text in upper case | false | HELLO |
| `{toLowerCase(HELLO)}` | Returns the given text in lower case | false | hello |
| `{escape_characters[TEXT]}` | Escapes the text provided to make it usable for API requests | false | Hello\nLine break |
| `{websocket_ping}` | Returns the ping of the bot | false | 36 ms |
| `{interaction_id}` | Returns the ID of the interaction with the bot. This can be used in API requests to reply to interactions | false | 1313779673350980230 |
| `{interaction_custom_id}` | Returns the custom ID of the interaction with the bot (buttons/select menus) | false | A string of characters |
| `{interaction_token}` | Returns the token of the interaction with the bot. This can be used in API requests to reply to | false | A string of characters |
| `{ignoreVariables[{anotherVariable}]}` | Ignores all variables within the brackets `[]` and doesn't resolve them | false | {user} |
| `{null}` | Returns null (useful in comparison conditions) | false | |
| Variable | Details | Supports Targets | Example Output |
| --- | --- | --- | --- |
| `{user}` | Returns the mention of the user | false | <@1085541861692813332> |
| `{server}` | Returns the server name | false | BotGhostπ» |
| `{channel}` | Returns the mention of the channel | false | <#879733469452836864> |
| `{^ROLE NAME}` | Returns the mention of a role on role name | false | <@&1190298492661420163> |
| `{#CHANNEL NAME}` | Returns the mention of a channel on channel name | false | <#879733469452836864> |
| `{channel_name}` | Returns the name of the channel | true | general-chat |
| `{channel_type}` | Returns the [type](https://discord.com/developers/docs/resources/channel#channel-object-channel-types) of the channel | true | GUILD_TEXT |
| `{channel_id}` | Returns the ID of the channel | false | 879733469452836864 |
| `{first_channel_id}` | Returns the first channel ID of the server | true | 879733469452836864 |
| `{server_members}` | Returns the server member count | true | 12 |
| `{server_icon}` | Returns a URL to the server icon | true |  |
| `{server_id}` | Returns the ID of the server | false | 822426820447567872 |
| `{server_owner}` | Returns the mention of the server owner | true | <@136327647792726016> |
| `{server_owner_id}` | Returns the ID of the server owner | true | 136327647792726016 |
| `{user_icon}` | Returns the icon of a user | true |  |
| `{user_name}` | Returns the user name of a user | true | tomtoise |
| `{user_id}` | Returns the ID of a user | true | 136327647792726016 |
| `{user_tag}` | Returns the user tag of a user | true | BotGhost Helper#4001 |
| `{user_discriminator}` | Returns the discriminator of a user | true | #4001 |
| `{user_createdAt}` | Returns the creation date of a user | true | Fri Apr 08 2022 13:51:34 GMT+0000 (Coordinated Universal Time) |
| `{user_joined}` | Returns the join date of the server from a user | true | Fri Apr 08 2022 13:51:34 GMT+0000 (Coordinated Universal Time) |
| `{user_displayName}` | Returns the display name of a user | true | Tomtoise |
| `{user_status}` | Returns the status of a user | true | online |
| `{user_role_ids}` | Returns the member's role IDs, separated by commas. Leaves out @everyone and roles Discord manages (bot and booster roles). Empty when they aren't in the server | true | 1190298492661420163,879733469452836864 |
| `{random[min,max]}` | Returns a random number between min and max | false | 6 |
| `{isNumber(TEXT)}` | Checks if a string of text is a number | false | true |
| `{randomCharacters(3)}` | Returns a random set of numbers | false | hIVzhLgwIb |
| `{charCount(TEXT)}` | Returns the character count of a string of text | false | 16 |
| `{isBot}` | Checks if a user is a bot | true | true |
| `{bot_serverCount}` | Returns the server count of the bot | false | 12 |
| `{user_name_encoded}` | Returns a URL encoded version of a user name, useful when sending the user's name in API request's URLs | true | Tomtoise |
| `{time_now}` | Returns a timestamp of the current time | false | |
| `{time_ahead_h_HOURS}` | Returns a timestamp of a certain number of hours ahead | false | |
| `{time_ahead_m_MINS}` | Returns a timestamp of a certain number of minutes ahead | false | |
| `{time_now_unix}` | Returns a unix combination of the current time | false | 1724181974 |
| `{time_ahead_unix_h_HOURS}` | Returns a unix combination of a certain number of hours ahead | false | 1724181974 |
| `{time_ahead_unix_m_MINS}` | Returns a unix combination of a certain number of minutes ahead | false | 1724181974 |
| `{time_ahead_unix_s_SECS}` | Returns a unix combination of a certain number of seconds ahead | false | 1724181974 |
| `{encode_text[TEXT]}` | Returns url encoded text for API requests | false | Hello%2C%20how%20are%20you |
| `{ISO_to_UNIX[Timestamp]}` | Converts an ISO timestamp to an UNIX timestamp | false | 1724181974 |
| `{UNIX_to_ISO[Timestamp]}` | Converts an UNIX timestamp to an ISO timestamp | false | 2024-02-26T20:28:40.902000+00:00 |
| `{HEX_to_DECIMAL[HEX]}` | Converts a hex code to a decimal | false | 1329119 |
| `{solve_equation[1+1]}` | Solve a math equation | false | 2 |
| `{previous_numbers(10)}` | Returns all previous numbers of a given number | false | 0, 1, 2, 3, 4, 5, 6, 7, 8, 9 |
| `{numberWithCommas[1000000]}` | Formats large numbers with commas | false | 1,000,000 |
| `{numberWithDots[1000000]}` | Formats large numbers with dots | false | 1.000.000 |
| `{bot_id}` | Returns the ID of the bot | false | 1085541861692813332 |
| `{hasRole([ROLE_ARRAY])}` | Checks if the user has a set of roles | true | true |
| `{isChannel([CHANNEL_ARRAY])}` | Checks if the action is executed in a channel | true | true |
| `{subString(Hello World),[0,5]}` | Returns a substring of a given string | false | Hello |
| `{toUpperCase(hello)}` | Returns the given text to upper case | false | HELLO |
| `{escape_characters[TEXT]}` | Escapes the text provided to make it usable for API requests | false | Hello\nLine break |
| `{websocket_ping}` | Returns the ping of the bot | false | 36 ms |
| `{interaction_id}` | Returns the ID of the interaction with the bot. This can be used in API requests to reply to interactions | false | 1313779673350980230 |
| `{interaction_custom_id}` | Returns the custom ID of the interaction with the bot (buttons/select menus) | false | A string of characters |
| `{interaction_token}` | Returns the token of the interaction with the bot. This can be used in API requests to reply to | false | A string of characters |
| `{ignoreVariables[{anotherVariable}]}` | Ignores all variables within the brackets `[]` and doesn't resolve them | false | {user} |
| `{null}` | Returns null (useful in comparison conditions) | false | |
### Error Variables
Those variables can be used with the error handler block or success / error handles when something goes wrong with your tree.
| Variable | Description |
| --- | --- |
| `{error_reason}` | Returns the reason why the error occurred. |
| `{error_message}` | Returns the error message associated with the action the error occurred from. |
| `{error_block}` | Returns name of the block which the error occurred in. |
### Other Variables
.png)
You can view all the available variables by checking the clipboard in the top right corner of a text input. This will open up a menu with a wide list of variables you can use in your command or event.
The available variables in your command-builder or event-builder may vary depending on the action, custom variables you have, API requests you use, and the event you might be using in case you are using the event builder.
| Variables | Details |
| --- | --- |
| Event variables | Depending on what [event](https://botghost.com/docs/custom-commands-and-events/events) type you use, you will have an other set of basic variables that you can use to retrieve specific information of the event. Check out the [Webhooks](https://botghost.com/docs/custom-commands-and-events/events/webhooks) and [IFTTT](https://botghost.com/docs/custom-commands-and-events/ifttt)pages to know more about webhooks and IFTTT variables. |
| Data storage variables | Depending on what [custom variables](https://botghost.com/docs/custom-commands-and-events/data-storage) you have created, you will have an other set of data storage variables. |
| Form variables | Depending on what you name your [form actions](https://botghost.com/docs/custom-commands-and-events/actions/message-actions/send-a-form) have, you will have an other set of form response variables. |
| API response variables | Depending on what API request you use, you will have an other set of [API response](https://botghost.com/docs/custom-commands-and-events/actions/api-actions/send-an-api-request) variables. |
| Error handler variables | You can use a set of variables when your command or event triggers an error. You can use these variables to get, for example, the error reason. They can be used only below the "Error Handler" red block. |
| Option variables | Depending on your [option](https://botghost.com/docs/custom-commands-and-events/options) names, you can have option variables in your command builder. |
| Unique variables | Depending on the [unique variables](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/set-a-unique-variable) that you use in your command or event and their names, you will have a set of unique variables. |
| Success / error handler variables | You can use a set of variables when your action triggers an error. (If enabled) You can use these variables to get, for example, the error reason, message or action block. |
| Loop variables | You can use a few variables inside of a [loop](https://botghost.com/docs/custom-commands-and-events/actions/loop-actions) to get the loop count (`{loop_count}`) and index (`{loop_index}`). |
| Created channel variables | Depending on the name of a create a channel action, you can use a set of variables to get the channel name, ID and type. Check out the [Create a channel](https://botghost.com/docs/custom-commands-and-events/actions/channel-actions/create-a-channel) page for more. |
| Created / edited thread variables | You can create a variable to retrieve the name, ID and more of the created / edited thread. Check out the [Create a Thread](https://botghost.com/docs/custom-commands-and-events/actions/thread-and-forum-actions/create-a-thread) and [Edit a Thread](https://botghost.com/docs/custom-commands-and-events/actions/thread-and-forum-actions/edit-a-thread) pages for more. |
| Invite variables | You can use a set of variables to get the codes from a created invite link. Check out the [Create Server Invite](https://botghost.com/docs/custom-commands-and-events/actions/server-actions/create-server-invite) page for more. |
| Manipulate some text variables | You can use a variable of a name of your choice to get the result of the [Manipulate some text](https://botghost.com/docs/custom-commands-and-events/actions/other-actions/manipulate-some-text) action. |
---
# Moderation
Source: https://botghost.com/docs/server-management/moderation
Moderate your server with a set of powerful commands!
.png)
The [Moderation](https://dashboard.botghost.com/dashboard/module/ce84a76f-f0cc-42ce-8ebb-3790db06e943/moderation) module allows you to setup a highly customizable moderation system you can create for your server, with warnings, timeouts, auto-punishments and more features.
## Common Issues
Experiencing issues with the module? Check out the common issues below. If your issue is not listed in this page, make sure your module is updated to the latest version. If you are still experiencing issues with the module, join our [support server](https://discord.gg/botghost) to ask for further help.
> **Tip:** It is advised that you [Enable Moderation Logging](https://botghost.com/docs/server-management/moderation#enable-moderation-logging) to make sure you can see details about possible errors.
### Roles not being added / removed
If the `/role add`, `/role remove` or `/role temp` commands are not working, it is likely because the role that you are trying to add or remove is above the bot's role in your server settings. The steps below will most likely solve your issue:
**Step 1.** Make sure your bot has the administrator permission in your server. You can check this by looking at the permissions from your bot's role.
**Step 2.** Make sure the bot's role is at the top of the role list. If this is not the case, drag the role to the top.
**Step 3.** If you're still experiencing issues, join our [support server](https://discord.gg/botghost) to ask for further help, we'll do our best to solve your issue!
### Users not being muted, kicked or banned
If the `/mute add`, `/kick`, `/ban add` or `/ban temp` command is not working, it is likely because the role of the target user is higher than the role from the bot. You are likely to solve this with the steps below:
**Step 1.** Make sure your bot has the administrator permission in your server. You can check this by looking at the permissions from your bot's role.
**Step 2.** Make sure the bot's role is at the top of the role list. If this is not the case, drag the role to the top.
**Step 3.** If you're still experiencing issues, join our [support server](https://discord.gg/botghost) to ask for further help, we'll do our best to solve your issue!
---
## Watch the Tutorial
[YouTube video](https://www.youtube.com/watch?v=hyIpmq_MyKo)
---
## Settings
### Command Settings
.png)
#### Default Permissions
If you have this enabled, users with the manage messages permission will be able to use moderator commands. Users with the administrator permission will be able to use admin commands.
#### Admin Roles
Here you can select one or more roles that you want to allow to use admin commands. Admin roles can access commands that are only meant for managing the server. Examples of these are: `/role add`, `/role remove`, `/role temp` and `/user clear-history` but those may not be all. You can view a list with all commands in [the commands section](https://botghost.com/docs/server-management/moderation#commands).
#### Moderator Roles
Here you can select one or more roles that you want to allow to use moderator commands. Moderator roles can only access commands meant for moderating the server, such as: `/ban add`, `/case view` and `/warn`, but those are not all. You can view a list with all commands in [the commands section](https://botghost.com/docs/server-management/moderation#commands).
#### Enable Moderation Logging
When enabled, all moderation actions will be logged to a channel.
#### Moderation Log Channel
Here you can select the channel where you want to log moderation actions. *This setting only shows if you* [Enable Moderation Logging](https://botghost.com/docs/server-management/moderation#enable-moderation-logging)*.*
### Visual Settings
.png)
#### Punishment Color
Here you can select what color that you want to use for punishment messages. Punishment messages are sent to the channel where the punishment has been issued.
#### Logging Color
Here you can select what colour you want to give to log messages. Log messages are sent to the moderation log channel, if enabled.
### Behaviour Settings
.png)
#### Send Direct Messages
Here you can select whether you want to send a direct message to the user that has been punished.
#### Direct Message
Here you can edit the message that a user gets after being punished. If the setting above has been disabled, the user will not get any direct message. You can use a set of variables in the direct message, you can read more about that [here](https://botghost.com/docs/server-management/moderation#variables). *This setting only shows if the* [Send Direct Messages](https://botghost.com/docs/server-management/moderation#send-direct-messages) *setting is enabled.*
#### Ban: Delete Messages
Here you can select whether or not you want to delete a user's messages when they have been banned from the server.
### Auto-Punishment Settings
.png)
#### Trigger Punishment Type
In this selection, you can select what type of punishment should trigger the auto punishment.
#### Warnings / Timeouts Needed
This is the number of warnings or timeouts needed before the auto punishment is triggered.
#### Punishment
Here you can select the type of punishment that a user should get when they reach the amount of warnings / timeouts entered above.
#### Timeout Duration
This is the time a user should be timed out when they trigger an auto-punishment. *This setting is only shown if you selected "Timeout User" in the* [*Punishment settings*](https://botghost.com/docs/server-management/moderation#punishment)*.*
> **Note:** To save the punishment's settings, you need to click "Add" in the bottom-right corner of the settings. This will reset the fields so you can set up another punishment.
### Punishments
Here you can manage your currently active punishments. The same settings as [Auto-Punishments](https://botghost.com/docs/server-management/moderation#auto-punishment-settings) apply. You are able to edit / delete these punishments. A maximum of 10 punishments is present.
> **Note:** To save the edits you made on the punishment's settings, you need to click "Edit" in the bottom-right corner of the settings.
.png)
---
## Variables
Here are some module variables that can be used in [the direct message section](https://botghost.com/docs/server-management/moderation#direct-message).
| Variable | Details |
| --- | --- |
| `{action}` | This variable will show the type of punishment the user got. For example: warn, mute or ban. |
| `{moderator}` | This variable will mention the moderator that gave the punishment. |
| `{time}` | This variable will show you the timestamp of the moment the punishment was issued. |
| `{case}` | This variable will show you the ID of the moderation case. |
| `{reason}` | This variable will return the reason for the punishment, this reason was provided by the moderator. |
---
## Commands
**/ban add**
This command allows you to ban a user from the server.
.png)
**/ban remove**
This command allows you to unban a user from the server on ID
.png)
**/ban temp**
This command allows you to temporarily ban a user from the server
.png)
**/mute add**
This command allows you to put a user in time-out
**/mute remove**
This command allows you to remove a timeout from a user
**/role add**
This command allows you to ddd a role to a user
**/role remove**
This command allows you to remove a role from a user
**/role temp**
This command allows you to temporarily give a user a role, this role will be removed after a selected amount of time
**/voice deaf**
This command allows you to deafen someone in a voice channel
**/voice undeaf**
This command allows you to undeafen someone in a voice channel
**/kick**
This command allows you to kick a user
**/case view**
This command allows you to get the content of a moderation case
**/note add**
This command allows you to add a note to a user
**/note remove**
This command allows you to remove a note from a user
**/note view**
This command allows you to get the content of a note from a user
**/case remove**
This command allows you to delete a moderation case
**/user history**
This command allows you to view the punishment history of a user
**/slowmode**
This command allows you to enable or edit the slow mode setting of a channel
**/user clear-history**
This command allows you to clear the punishment history of a user
**/warn**
This command allows you to warn a user
**/ping**
This command allows you to get the latency of the bot
**/purge**
This command allows you to delete up to 100 messages at the same time from a channel
**/server-info**
This command allows you to get information about the server, such as the server name, member count, description and more
**/user nick**
This command allows you to change the nickname of a user
**/channel lock**
This command allows you to change the channel permissions so that no one can send messages anymore
**/channel unlock**
This command allows you to change the permissions in a channel back so that everyone can send messages again
**/say**
This command allows you to send a message with the bot.
#### [π] Add Command
By clicking the add command button you can create your own command for the moderation module using all the module [variables](https://botghost.com/docs/server-management/moderation#variables) and settings.
## Events
.png)
**Moderation Handler**
This event will enforce [the auto-punish settings](https://botghost.com/docs/server-management/moderation#auto-punishment-settings).
**Temporary Role & Ban Check**
This command will make sure temporary roles or bans are removed on time.
#### [π] Add Event
By clicking the add event button you can create your own event for the moderation module using all the module [variables](https://botghost.com/docs/server-management/moderation#variables) and settings.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intended.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Discord Automod
Source: https://botghost.com/docs/server-management/discord-automod
Manage automod rules using the default system of Discord, and optionally earn the Automod badge
.png)
> **Warning:** This module requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The [Discord Automod](https://dashboard.botghost.com/dashboard/module/e8564ca2-721a-4257-885a-43d740a67296/discordautomod) module will allow you to edit, add and remove rules from your discord server's automod through your BotGhost bot as well as give you the method to get the new 'Automod Badge' for your bot.
## Settings
### Basic Settings
In this area, you can setup and customize the general settings for the commands and events of this module.
**Allowed Roles**
Here you can select roles which can edit, add & remove automod rules, users without these roles will not be able to remove or add rules.
**Logging Channel**
Here you can select the channel in which automod logs are sent to, users who trigger the automod will also trigger a message to be sent to the channel specified here.
**Default Moderator Message**
Here you can set the default moderator message that is displayed to users who break one of the defined automod rules.
**Whitelisted Roles**
Here you can define some roles that will not trigger the automod, users with these roles will be completely immune to the automod rules and will not trigger the module.
**Whitelisted Channels**
Here you can select some channels that the automod will ignore, messages sent in these channels that would normally trigger the automod will be ignored.
### Punishment Settings
Here you can customise the punishments members get when they break one of the automod rules or set it to a set amount of rules to be broken before punishment is given.
**Broken Rules Needed**
Here you can define the amount of rules needed to be broken by a user before punishment is given.
**Punishment Type**
Here you can change the type of punishment the bot will give when a user reaches the defined number of broken rules needed to trigger a punishment. Below are the punishment types you can select:
| Punishment Types |
| --- |
| Timeout Member |
| Kick Member |
| Ban Member |
**Punishment Length**
Here you can change the duration for the 'Timeout Member' punishment option.
**Checked Rule**
Here you can enter the name of the automod rule the event will issue punishments upon. **If you leave the input empty, all automod filters will count!**
**Send a DM**
**H**ere you can enable/disable DMs being sent to the user upon punishment.
**DM Message**
Here you can edit the message that is sent to users when they have been punished if you have enabled the '**Send a DM'** setting.
> **Note:** To save the punishment settings, you need to click "Add" in the bottom-right corner of the settings. This will reset the fields so you can set up another punishment.
### Viewing Active Punishments
You can edit all active punishments through a list right below the menu.
> **Note:** To save the edits you made on the punishment settings, you need to click "Edit" in the bottom-right corner of the settings.
.png)
---
## Commands
In this area, you can view and modify the commands of the Discord Automod module. Below you may find some information on each command of the module.
.png)
****/discord-automod****
The discord-automod command allows you to edit, add or remove Discord automod rules with your bot in your server.
.png)
## Events
In this area, you can view and modify the events of the Discord Automod module. Below you may find some information on each event of the module. All punishments will be ordered by the number in which they were created.
.png)
**Punishment #...**
Once you add an automatic punishment, the corresponding event will be created. This will handle the newly created punishment.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intented.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Tickets
Source: https://botghost.com/docs/server-management/tickets
Let server members contact staff through a ticket!
Tickets give your members a private place to talk to your staff. A member presses a button, answers a few questions, and gets their own channel that only they and your staff can see.
The [Discord ticket bot](https://botghost.com/discord-ticket-bot) page gives a shorter tour of what Tickets can do.
Start with one panel and the default ticket types. Everything after that is optional.

*What your members will see*
## Before you start
You need:
- Your bot in your Discord server. See [Invite Your Bot](https://botghost.com/docs/getting-started/invite-your-bot) if it isn't yet.
- A role for your staff, like `@Support team`.
- A channel for the panel, like `#support`.
## Set up your first panel
### Step 1: Turn on Tickets
Open **Tickets** in your bot's dashboard and press **Enable** at the top right.

- **A** **Enable** turns Tickets on for your bot.
- **B** **Watch how it works** gives you a one minute tour.
- **C** The server you're setting up, if your bot is in more than one.
### Step 2: Follow the steps
The strip under the header walks you through the setup, one step at a time: pick who answers tickets, where tickets go, and the channel for the panel.

- **A** How many steps are done.
- **B** The next step. Pick it right here.
- **C** **All steps** shows the whole list.
> **Note:** Not sure where to start? Press **Start from a preset** for a ready made setup, like **Simple support**, **Community server**, **Shop and orders** or **Staff applications**.
### Step 3: Save
A bar pops up at the bottom of the page. Press **Save Changes**.

- **A** **Save Changes** sends your settings to your bot.
### Step 4: Post the panel
The panel is the message members press to open a ticket. Press **Post the panel** on the setup strip, or **Post it** on the **Panel** tab.

- **A** The channel the panel is posted in.
- **B** **How it looks**: a card, a list, a classic embed, or your own message.
- **C** **Post it** sends the panel. Once it's posted, this says **Update it** and changes the message that's already there.
### Step 5: Test it
Press **Send a test ticket** on the setup strip. The bot opens a ticket for you, so you can see it all work.
> **Note:** The bot uses your saved settings, so always save first.
That's it. Your members can now open tickets.
## Find your way around
The tabs follow a ticket from start to end.

- **A** **Panel**, **Opening**, **Staff tools**, **Automations**, **Closing** and **Transcripts**.
- **B** Search for any setting, like "transcript" or "ping".
On every tab, the preview on the right shows what happens in Discord at that point.

- **A** What members see right now.
- **B** The rest of the ticket. Press **Edit** to jump to that tab.
## Panels
A panel is one message with buttons. Each button opens a different type of ticket.

- **A** A panel. Pick it to change it below.
- **B** **Add a panel**, for example one in `#support` and one in `#appeals`.
## Ticket types
Open the **Opening** tab. Each ticket type is a button on your panel, with its own staff, questions and channel.

- **A** A ticket type. Pick it to set it up.
- **B** **Add a ticket type**.
- **C** Turn a type off, or delete it.
Then choose where it opens and who answers it.

- **A** A private channel, a private thread, or a forum post.
- **B** The category new ticket channels go in.
- **C** The staff for this type. Leave it empty to use the staff from the setup steps.
## Ask questions first
Each type can show a form before the ticket opens. The answers are posted in the ticket, so your staff know what it's about.

- **A** A question.
- **B** The answer: short, long, a dropdown, or a picker.
- **C** **Needed**: they can't skip it.
- **D** **Add a question**.
## Where staff answer
Staff usually answer in the ticket, next to the member. Turn on **Where staff answer** on the **Opening** tab and staff answer from a private staff forum instead. The member never sees who is helping, and staff can talk among themselves.

- **A** Turns it on for this ticket type.
- **B** The staff forum. Each ticket gets its own post there, with Close, Claim and the staff tools.
- **C** Which staff messages reach the member.
- **D** How staff replies show: as **Staff**, as their name, or just the words.
Here's what happens:
1. The member writes in their ticket. It shows in the staff post under their name and picture.
2. Staff write in the post. What the rule allows goes to the member, and gets a tick.
3. Everything else stays between staff.
| Rule | What reaches the member |
| --- | --- |
| All but staff talk | Everything, except messages that start with `#` (or your own start) |
| Only marked ones | Only messages that start with your start, like `!r` |
| Only replies | Only replies to the member's own messages |
| Every message | Everything staff write |
> **Warning:** The staff forum has to be private. If members or @everyone can see it, tickets don't open. To show members under their own name and picture, the bot needs **Manage Webhooks** in that forum.
### Escalate to senior staff
On the **Staff tools** tab, open **Escalate** and pick a senior forum. Escalating a ticket moves it to a new post there for your senior staff, and the old post is locked. The member is told, unless you turn that off. Handing a ticket to someone else stays quiet.
> **Note:** Edits and deletes aren't copied, so check a message before you send it. The member's transcript is what they saw, without staff talk.
## Staff tools
Open the **Staff tools** tab. These are the buttons your staff use inside a ticket. Members never see them.

- **A** Where the tools show: buttons, a menu, or both.
- **B** A tool, like **Claim**. Press it to change how it works.
- **C** More tools: add people, staff notes, saved replies, lock and more.
## Automations
Open the **Automations** tab. The bot nudges people and tidies up quiet tickets for you.

- **A** A reminder, like when staff don't answer. Press it to change the waits.
- **B** **Support hours**: when your staff are around.
- **C** **On duty**: staff use `/ticket duty`, and pings only reach staff who are on.
## Closing
Open the **Closing** tab to choose what happens when a ticket ends.

- **A** Keep closed tickets so they can be reopened, or delete them.
- **B** The message the member gets by DM.
- **C** **Save a transcript** of the whole ticket.
- **D** **Ask for a rating** from 1 to 5 stars.
## Transcripts
Open the **Transcripts** tab to find any past ticket.

- **A** **Transcript settings**: the look, and how it's sent.
- **B** Search by member, number, label or answer.
- **C** A past ticket. Press it to read it.
- **D** How many tickets, how fast staff answer, and the ratings.
Transcripts come in 16 looks with your own colours. Send them as a link, a file, or both. Each link only works for a while.
## Other ways to open a ticket
On the **Panel** tab, press **Show** under the panel settings to find more ways in.

- **A** **Type a command**: members use `/ticket open`.
- **B** **DM the bot**: members message your bot and staff reply by DM.
- **C** **Open one for someone**: staff start a ticket with a member.
Members can also **right click a message** to open a ticket about it, or **mention the bot**.
## Free and Premium
| | Free | Premium |
| --- | --- | --- |
| Ticket types | 3 | Unlimited |
| Panels in each server | 1 | Unlimited |
| Questions, staff tools, automations and ratings | Yes | Yes |
| Transcripts in all 16 looks | Yes | Yes |
| Open by command, right click, mention or for someone | Yes | Yes |
| DM the bot and Say a keyword | No | Yes |
| Reply as the bot | No | Yes |
| Staff answer in a private forum | No | Yes |
| Export your tickets as a spreadsheet | No | Yes |
| Change the ticket events in the builder | No | Yes |
## Using the old Tickets?
The old Tickets keeps working for bots that use it. You'll find it in your modules as **Tickets (old)**. When you're ready to switch, set up the new Tickets and turn the old one off. Your old settings don't move across, so set up your panel and ticket types again.
## Advanced: change it in the builder
Everything on the page runs through five ticket events: **Ticket Requested**, **Ticket Changed**, **Ticket Needs Attention**, **Ticket Closed** and **Ticket Rated**. Find them at the bottom of the Tickets page.

- **A** An event, and how many paths it has.
- **B** **Open in builder** takes you to the event. Add your own blocks under any path.
> **Note:** Changing the events needs Premium.
## Something not working?
### The panel won't post
- Press **Save Changes** first. The bot posts what's saved.
- Make sure your bot can **View Channel**, **Send Messages** and **Embed Links** in that channel.
### Tickets don't open
- Your bot needs **Manage Channels** to make ticket channels, or **Create Private Threads** for thread tickets.
- Check the category has room. Discord allows 50 channels in a category.
### Staff can't see tickets
Check the staff role is picked in the setup steps, or under **Who answers it** on the **Opening** tab.
Still stuck? Ask in our [support server](https://discord.gg/botghost).
---
# Welcomer
Source: https://botghost.com/docs/server-management/welcomer
Give your new members a warm welcome!
The Welcomer makes your bot greet new members. It can also say goodbye when someone leaves and thank people who boost your server.
The [Discord welcome bot](https://botghost.com/discord-welcome-bot) page gives a shorter tour of what the Welcomer can do.
Start with a simple welcome message. Everything after that is optional.

*What your members will see*
## Before you start
You need:
- Your bot in your Discord server. See [Invite Your Bot](https://botghost.com/docs/getting-started/invite-your-bot) if it isn't yet.
- A channel for the welcomes, like `#welcome`.
## Set up your first welcome
### Step 1: Turn on the Welcomer
Open **Welcomer** in your bot's dashboard and press **Enable** at the top right.

- **A** **Enable** turns the Welcomer on for your bot.
### Step 2: Pick a channel
Under **Where should your message be sent?**, pick the channel for your welcomes.

- **A** The channel the welcome is posted in.
### Step 3: Write your message
Under **What should your message say?**, type your welcome. The **Preview** on the right shows how it will look in Discord.
Put `{user}` where you want to mention the new member, and `{server}` for your server's name. For example:
> Welcome to **{server}**, {user}! Grab your roles in #roles and say hi in #general.
Posts as:
> Welcome to **BotGhost**, @Tom! Grab your roles in #roles and say hi in #general.

- **A** The message box. Type `{` to see everything you can add.
- **B** The preview, updated as you type.
### Step 4: Save
A bar pops up at the bottom of the page. Press **Save Changes**.

- **A** **Save Changes** sends your settings to your bot.
### Step 5: Test it
Press **Send me a test** under the preview. The bot posts the welcome as if you just joined.

- **A** **Send me a test** runs the welcome for you.
> **Note:** The test uses your saved settings, so always save first. It only sends messages and cards, so nobody gets roles from a test.
That's it. Your bot now welcomes everyone who joins.
## Say goodbye and thank boosters
The tabs at the top of the page work the same way. Open **Leaves** to set up a goodbye message, or **Boosts** to thank people who boost.

- **A** **Joins**, **Leaves** and **Boosts**. Each one has its own messages and actions.
- **B** **Stats** shows who came and went.
- **C** **How it works** gives you a one minute tour.
## Do more when someone joins
Under **Anything else?**, turn on more things for every new member:
- **Add a card**: a picture with their name and avatar. See [Add a welcome card](https://botghost.com/docs/server-management/welcomer#add-a-welcome-card).
- **Send them a DM**: a private message, sent straight away.
- **Give roles**: roles they get when they join. See [Give new members a role](https://botghost.com/docs/server-management/welcomer#give-new-members-a-role).
Press **More options** for even more.

- **A** Take roles away, change their nickname, or post a note for your mods.
- **B** **Welcome runs**: straight away, after a short wait, or after they accept the rules. You can also skip people who leave within a few seconds.
## Give new members a role
1. Under **Anything else?**, turn on **Give roles**.
2. Press **Add a role** and pick the role.
3. Choose **When**: **Straight away**, or **After the rules** if your server makes people accept rules first.

- **A** Turns roles on.
- **B** The roles to give.
- **C** **Only for a while**: take the roles away again after some days. Leave it empty to let them keep the roles.
- **D** When they get the roles.
> **Warning:** Your bot can only give roles that are below its own role. If it can't give a role, open **Server Settings > Roles** in Discord and drag your bot's role higher.
## Add a welcome card
A welcome card is a picture with the new member's name and avatar on it.
1. Under **Anything else?**, turn on **Add a card**.
2. Pick **Where it goes**: in the welcome message, as its own post, by DM, or both.
3. Press **Templates** to pick a design, or **Open Card Studio** to make your own.

- **A** Turns the card on.
- **B** Where the card goes.
- **C** **Templates**: ready made designs.
- **D** **Open Card Studio**: change anything on the card.
Cards in the Welcomer are free. To learn Card Studio, see [Card Studio](https://botghost.com/docs/custom-commands-and-events/card-studio).
## Make it personal with variables
Variables are tags the bot swaps for real information when it posts. `{user}` becomes a mention of the new member. `{server}` becomes your server's name.
Type `{` in any message box to see them all. Here are a few the Welcomer adds:
| Variable | Becomes |
| --- | --- |
| `{member_number_ordinal}` | Their member number, like 1,204th |
| `{times_joined}` | How many times they've joined your server |
| `{account_age_days}` | How old their Discord account is, in days |
| `{inviter_name}` | Who invited them |
| `{time_in_server}` | How long they were in your server (Leaves tab) |
| `{left_by_mention}` | Who kicked or banned them (Leaves tab) |
| `{leave_reason}` | Why they were kicked or banned (Leaves tab) |
## Treat some people differently
So far, everyone gets the same welcome. **Special Welcomes & Actions** let you change that.
Think of your welcome as the normal rule. A special path is a "but if" rule:
- **But if** they've been here before, say "Welcome back".
- **But if** their account is one day old, give them a quarantine role.
- **But if** they're your 1,000th member, celebrate.
The paths are sorted into groups. Open a group to see its paths, and turn on the ones you want.

- **A** A group of paths. Open it to see them.
- **B** A path, with what it's for.
- **C** Turns the path on.
Open a path to set it up. It works just like your normal welcome.

- **A** Turns the path on.
- **B** **Who should this apply to?** Who goes down this path.
- **C** **Instead of Everyone else**: on means they get this instead of the normal welcome. Off means they get both.
- **D** What happens on this path: the channel, the message and anything else.
> **Note:** Not sure how paths fit together? Press **How it works** at the top of the Welcomer page for a one minute tour.
Here's every path. You set the numbers yourself, like how many days count as "a while".
**Joins**
| Path | Runs when |
| --- | --- |
| Everyone else | Anyone joins. This is your normal welcome. |
| Returning member | They've been in your server before. |
| Joined via an invite | They used an invite you list. |
| Milestone | You reach a member milestone, like your 1,000th. |
| Bot joined | A bot is added to your server. |
| Lots at once | Lots of people join within seconds, like a raid. |
| Suspicious account | Their account is brand new, or their name looks like spam. |
| Join and leave spam | They keep joining and leaving. |
| Accepted the rules | They accept your server's rules. |
| First message | They send their first message. |
| Stayed a while | They're still here a few days later. |
| Didn't accept the rules | They still haven't accepted the rules after a few hours. |
**Leaves**
| Path | Runs when |
| --- | --- |
| Left on their own | Anyone leaves. This is your normal goodbye. |
| Kicked | A moderator kicked them. |
| Banned | A moderator banned them. |
| Pruned | A server prune removed them. |
| Bot removed | A bot was removed from your server. |
| Left quickly | They left soon after joining. |
| Left while in trouble | They were timed out, or had a role you pick. |
| Long timer left | They had been in your server for a long time. |
**Boosts**
| Path | Runs when |
| --- | --- |
| First boost | They boost for the first time. This is your normal thank you. |
| Boosted again | They add another boost. |
| Stopped boosting | Their boost ends. |
## Free and Premium
| | Free | Premium |
| --- | --- | --- |
| Welcome, goodbye and boost messages | Yes | Yes |
| Welcome cards, DMs and roles | Yes | Yes |
| Special paths | 2 per tab | All 23 |
| Different versions of a message, picked at random | No | Up to 10 |
| Different settings for each server | No | Yes |
| Change the Welcomer in the builder | View only | Yes |
## Moving from the old Welcomer
If you used the old Welcomer, the new page shows a **Move my settings** button. It copies your old settings across, turns the new Welcomer on and turns the old one off. Your old settings stay saved.
## Advanced: change it in the builder
Each tab is an event in the builder: **Member Joined**, **Member Left** and **Member Boosted**. Find them under **Manage the events directly** at the bottom of the Welcomer page.

- **A** **Open** takes you to the event in the builder.
Every path is a branch in the event. Add your own blocks under any path.

- **A** The event. It runs when someone joins.
- **B** A path. The blocks under it are what that path does.
> **Note:** Changing the events needs Premium. Free bots can open them to look.
## Something not working?
### My welcome isn't posting
- Check the Welcomer is enabled and you pressed **Save Changes**.
- Look for an amber mark on the path. It means something is missing, like a channel.
- Make sure your bot can **View Channel** and **Send Messages** in that channel.
### Kicks and bans show up as normal leaves
Your bot needs the **View Audit Log** permission to see who kicked or banned someone.
### Joined via an invite never runs
Your bot needs the **Manage Server** permission to see which invite was used.
### Accepted the rules never runs
Your server needs **rules screening** or **onboarding** turned on in Discord.
Still stuck? Ask in our [support server](https://discord.gg/botghost).
---
# Verification
Source: https://botghost.com/docs/server-management/verification
Keep bots and raids out. New members press a button, type a code from a picture, or answer a few questions before they can chat.
Verification makes new members prove they're real before they can see the rest of your server. Your bot posts a panel with a **Verify** button. New members press it and, depending on how you set it up, they're let straight in, type a code from a picture only they can see, or answer a few questions that the bot or your staff check. Once they pass, the bot gives them your Verified roles. Verification is free for every bot.
The [Discord verification bot](https://botghost.com/discord-verification-bot) page gives a shorter tour of what Verification can do.

*What your members will see*
## Before you start
You need:
- Your bot in your Discord server. See [Invite Your Bot](https://botghost.com/docs/getting-started/invite-your-bot) if it isn't yet.
- A Verified role, like `Member`. Your bot's own role must be **above** it, with **Manage Roles** turned on.
- A channel for the panel, like `#verify`. Everyone should be able to see it. In it, your bot needs **View Channel**, **Send Messages** and **Embed Links**.
- Your other channels hidden from `@everyone` and shown to the Verified role. Verification gives the role; Discord's channel permissions decide what the role can see.
Some settings need more permissions:
| Setting | Your bot needs |
| --- | --- |
| Kicking members (wrong tries, time, raids) | **Kick Members** |
| Banning members | **Ban Members** |
| Timing members out after too many tries | **Timeout Members** |
| Pausing invites during a raid lock | **Manage Server** |
## Set up verification
### Step 1: Turn on Verification
Open **Verification** in your bot's dashboard and press **Enable** at the top right.

- **A** **Enable** turns Verification on. It adds the `/verification` commands, the **Verify member** right click command, and the events Verification needs.
- **B** The server you're setting up. Every Verification setting belongs to one server (its roles, its channels and its panel), so pick the server first. The page shows the server's icon and name on the settings you're changing.
- **C** **Reset to Default** puts every setting back to how a new Verification starts. The panel channel and the roles stay.
- **D** **Docs** opens this page.
> **Note:** Still using the old Verification module? The page offers to move your settings across. See [Moving from the old Verification](https://botghost.com/docs/server-management/verification#moving-from-the-old-verification).
### Step 2: Pick the Verified role and the panel channel
On the **Verify** tab, pick the roles members get in [Roles they get](https://botghost.com/docs/server-management/verification#roles-they-get), and the channel in [Where the panel goes](https://botghost.com/docs/server-management/verification#where-the-panel-goes).
### Step 3: Save
A bar pops up at the bottom of the page. Press **Save Changes**. Your bot restarts to pick up the changes, which takes about 20 seconds.

### Step 4: Post the panel
Press **Post the panel** on the **Verify** tab, or run `/verification panel` in your server. To try it out, press **Verify** with a second Discord account.

- **A** What to do next. Once everything is done, it says **Verification is ready**.
- **B** The steps, ticked off as you do them. Press one to go to it.
## The tabs
Everything else is on up to seven tabs. The preview on the right shows what members see in Discord for the tab you're on.

- **Verify**: how members verify, the roles they get, the panel and the Help button.
- **Code**: the code picture and the rules before it. Only shown while members verify by typing a code.
- **Questions**: the form, the right answers and staff review. Only shown while members verify by answering questions.
- **Checks**: who has to verify, Discord's rules screening, account age and profile pictures.
- **Limits**: wrong tries, the time to verify, and members who come back.
- **Raids**: locking verification when a lot of accounts join at once.
- **Logs**: the log channel and the staff roles.
## Verify
### How members verify

Pick one way for this server:
| Way | What members do | Good for |
| --- | --- | --- |
| **Press a button** | Press **Verify** and they're in | Stopping bots that only join and post |
| **Type a code** | Press **Verify**, see a code in a picture only they can see, press **Type the code** and type it back. Capitals don't matter | Stopping bots that can press buttons. It starts on this one |
| **Answer questions** | Press **Verify** and fill in a short form. The bot checks the right answers, or your staff read them and press **Approve** or **Deny** | Servers that want to know who's joining |
Whichever you pick, the checks on the **Checks** tab run first, and the **Limits** tab applies.
### Roles they get

- **A** **Give them**: the Verified roles, given once a member verifies. Your bot can only give roles below its own; the page says **Can't give** on a role it can't.
- **B** **Take this role away**: an Unverified role, given when a member joins and taken away once they verify. Leave it empty if you don't use one. It can't be one of the roles they get.
### Where the panel goes

- **A** **Panel channel**: where the panel is posted. New members should see this channel and nothing else until they verify.
- **B** **Post the panel**: posts it in the channel with the **Verify** button. Once it's there, the button says **Post it again**: after you change the panel, press it to update the panel where it is.
Save before you post: posting uses your saved settings. Right after a save, the button waits about 20 seconds for your bot to restart.
### The verify panel

- **A** **Message**: a box for each text part of the panel, like the heading, how it works and the footer.
- **B** **Edit message** opens the Message Builder, for pictures, separators and the layout.
- **C** The variables this message fills in. Press one to copy it. `{verify_steps}` is how to verify in this server, as numbered steps for the way you picked.
- **D** **Verify button**: the words on the button, and **Its emoji**. Leave the emoji empty for none.
- **E** **Button colour**: Green, Blurple, Grey or Red.
The bot adds the buttons under the panel itself, so you don't add them in the Message Builder. The panel's buttons keep working for as long as the panel is there.
### Help button

- **A** **Add a Help button**: a second button on the panel. Pressing it shows how to verify, privately. Useful when members get stuck on the code or the questions.
- **B** **Help button**: the words on it.
The **When someone presses Help** card under it is the reply they get.
## Code
This tab shows while members verify by typing a code.
### The code picture

- **A** **Code length**: from 5 to 8 letters and numbers. It starts at 6. Codes leave out letters and numbers that look alike, like `O` and `0`.
- **B** **It works for**: from 1 to 15 minutes. It starts at 5. After that, the member presses **Verify** for a new code.
- **C** **The picture**: how the code is drawn. Each member gets a new code every time they press **Verify**.
- **D** **Edit the picture** opens the Card Studio, to change the colours, the background and the font. Put `{verify_code}` where the code goes. **Back to the default** puts the captcha design back.
- **E** **Button under the picture**: the words on the button that opens the box to type the code in. It starts as **Type the code**.
The code picture is a private reply: only the member who pressed **Verify** sees it. Each member gets one new code every 20 seconds at most, so pressing **Verify** over and over can't hold up everyone else. After a wrong code they can press **Verify** for a new one straight away.
### Rules before the code

- **A** **Show the rules**: puts your rules at the top of the form members type the code in, with a box they must tick.
- **B** **The rules**: up to 4,000 characters.
- **C** **The box**: the words beside it, like **I've read and accept the rules**.
## Questions
This tab shows while members verify by answering questions.
### The questions

- **A** Each question, with its right answer, **Any answer** or **Staff read it**.
- **B** **Edit the questions** opens the form editor.
The form takes up to 5 fields: text boxes, dropdowns or choices. Each question can have a right answer, and capitals don't matter. Leave it empty to take any answer, like for "How did you find this server?". For a dropdown or choices, type the option's value. It starts with three questions; the third, "Have you read the rules? Type yes", takes `yes`.

*Edit the questions opens the form editor*
- **A** **Form title**: the title at the top of the form.
- **B** **Questions**: press one to change it. **Add a question** adds another, up to 5.
- **C** **Right answer** for the question you picked.
- **D** **How it looks in Discord**, as you change it.
### How answers are checked

- **A** **The bot checks the right answers**: a member with every answer right is let straight in. A wrong answer counts as a wrong try (**Limits** tab), and they get **When the answer is wrong**.
- **B** **Staff approve**: the answers are posted for your staff with **Approve** and **Deny** buttons. The member gets their roles once a staff member presses **Approve**. **Approve button** and **Deny button** are the words on them.
While answers wait for the staff, pressing **Verify** again just says they're with the staff.
### Where staff see answers
- **Review channel**: where each member's answers are posted, with Approve and Deny. Leave it empty to use the log channel (**Logs** tab). With neither, answers can't be sent.
Only staff can press **Approve** and **Deny**: members with **Manage Roles** or a staff role (**Logs** tab).
### If denied
- **Then**: **Nothing**, **Kick** or **Ban**, for a member whose answers are denied.
- **DM them the result**: off to start with. Turn it on to DM members when they're approved or denied. Members with DMs closed just don't get it.

*What your staff see*
## Checks
### Rules screening
- **Wait for Discord's rules screening**: on to start with. Discord's own Rules Screening asks new members to accept your rules when they join. While this is on, verification starts once they've accepted them, and pressing **Verify** before that tells them to accept the rules first.
Turn Rules Screening on in Discord, in **Server Settings > Safety Setup > DM and Spam Protection**, or under **Onboarding**.
### Who has to verify

- **A** **Everyone**: every new member presses **Verify**. It starts on this one.
- **B** **Only suspicious accounts**: accounts that look fine get the Verified roles as soon as they join, and only the others verify.
- **C** **An account looks suspicious when**: switch on the checks you want.
- **The account is newer than** a number of days. It starts at 7.
- **No profile picture**: they still have Discord's default picture.
- **AutoMod flagged their name**: AutoMod held back their name or server tag in this server.
### Account age

- **A** **Discord account at least**: how many days old a member's Discord account must be to verify, up to 365. It starts at 0, which lets any account verify.
- **B** **If it's too new**:
- **Ask them to come back later**: they're told when they can verify.
- **Kick**.
- **Let them in when old enough**: they finish verifying now and get their roles by themselves once the account is old enough, up to 90 days later.
### Profile picture
- **C** **Needs a profile picture**: checked when they press **Verify**. Accounts still on Discord's default picture are often made in bulk.
- **D** **If they have none**: **Ask them to add one**, or **Kick**.
### Members who skip verification
- **Skip roles**: members with one of these roles never have to verify, like staff, or bots you add by hand. Leave it empty so everyone verifies. Bots that join are always skipped.
## Limits
### Wrong answers

- **A** **Wrong tries allowed**: how many wrong codes or answers someone gets, up to 10. It starts at 3.
- **B** **Then**: what happens when they run out.
- **Wait before trying again**: they can try again after a wait, from 1 minute to 7 days. It starts at 10 minutes.
- **Time out**: a Discord timeout for that long.
- **Kick**.
Staff can clear someone's tries and wait with `/verification reset`.
### Time to verify
- **C** **Remove members who don't verify in time**: off to start with. The clock starts when they join (after rules screening, while that's on).
- **D** **They have**: from 1 minute to 7 days. It starts at 30 minutes. **Then**: **Kick** or **Ban**.
- **E** **DM a warning this long before**: a DM before the time runs out, saying where to verify. Leave it empty for no warning DM. Members with DMs closed won't get it.
### Members who come back
- **F** **When they come back**: for a verified member who leaves and joins again within 90 days.
- **Give their roles back**: they get the Verified roles straight away. It starts on this one.
- **Verify again**.
## Raids
### Lock verification during a raid

When a lot of accounts join at once, verification locks for a while so nobody can verify. Members who press **Verify** during a lock are told to try again later. When the lock ends, verification opens again by itself.
- **A** **Lock it by itself**: off to start with.
- **B** **When this many join**, from 2 to 100 accounts, **Within** 10 seconds to 1 hour. It starts at 10 accounts within 1 minute.
- **C** **Lock it for**: from 1 minute to 24 hours. It starts at 30 minutes.
Staff can lock and open verification by hand with `/verification lockdown`.
### Pause invites while locked
- **D** **Pause invites too**: also turns on Discord's own **Pause Invites**, so no more accounts can join during the lock. Your bot needs **Manage Server**. Discord pauses invites for 24 hours at most.
### During a lock
- **E** **New joins**: **Verify as normal** once the lock ends, or **Kick new accounts** newer than a number of days. It starts at 7.
### Who gets pinged
- **F** **Ping this role**: pinged in the log channel when a lock starts. Leave it empty to ping nobody.
Discord has its own Raid Protection too, in **Server Settings > Safety Setup**. It works well alongside this.
## Logs
### Log channel

- **A** **Log channel**: who verified and how, who got it wrong, who was removed, and every raid lock. Leave it empty for no log.
- **B** **Log every wrong answer**: off, a wrong answer is only logged when someone runs out of tries.
### Staff roles
- **C** **Staff roles**: members with one of these roles can use `/verification` and **Verify member**, and approve answers. Members with **Manage Roles** always can. Leave it empty to keep it to **Manage Roles**.
## The bot's messages
Every message Verification sends has its own card on the tab it belongs to. Each card has the message, **Edit message** to open the Message Builder, and the variables it fills in. Messages to the member are private replies only they can see, except the ones marked DM. DMs are off until you turn on the setting that sends them.

| Tab | Message | When it's sent |
| --- | --- | --- |
| Verify | When the panel is posted | The panel, in the panel channel |
| Verify | When someone presses Help | They press **Help** on the panel |
| Verify | When someone is verified | They're in |
| Verify | When they're already verified | They press **Verify** but already have the Verified role |
| Verify | When something goes wrong | The bot couldn't let them in. Most often, its role is below the Verified role. `{verify_problem}` says why |
| Code | When they get their code | The code picture, with the **Type the code** button |
| Code | When the answer is wrong | The code (or a quiz answer) is wrong and they have tries left |
| Code | When the code has run out | They type a code after it stopped working |
| Code | When they ask for codes too fast | They press **Verify** again within 20 seconds of getting a code. It tells them to use the code they got |
| Code | When the picture can't be drawn | The bot is drawing too many code pictures at once. They press **Verify** again in a few seconds |
| Questions | When someone sends answers | Posted for the staff, with Approve and Deny |
| Questions | When answers are approved | The staff post, once someone presses **Approve** |
| Questions | When answers are denied | The staff post, once someone presses **Deny** |
| Questions | When answers are sent | Their answers are with the staff |
| Questions | When answers are already with the staff | They press **Verify** while their answers wait |
| Questions | When they're approved (DM) | The staff approve them, while **DM them the result** is on |
| Questions | When they're denied (DM) | The staff deny them, while **DM them the result** is on |
| Checks | When the account is too new | Their account is younger than the account age |
| Checks | When they have no profile picture | A profile picture is needed and they have none |
| Checks | When they haven't accepted the rules | They press **Verify** before accepting Discord's Rules Screening |
| Checks | When a new account is held | They passed, and get in by themselves once their account is old enough |
| Checks | When a held account presses again | They press **Verify** again while they wait |
| Limits | When they're removed | Just before they're kicked for too many tries, or for their account |
| Limits | When they've had too many tries | They run out of tries and have to wait, or are timed out |
| Limits | When they're warned before removal (DM) | Before the time to verify runs out, while a warning is set |
| Raids | When verification is paused | They press **Verify** during a raid lock |
| Raids | When a raid lock starts | In the log channel, pinging the role you picked |
| Raids | When a raid lock ends | In the log channel |
| Logs | When someone is verified | In the log channel, with how they got in |
| Logs | When someone gets it wrong | In the log channel when they run out of tries (and on every wrong answer, while that's on) |
| Logs | When someone is removed | In the log channel when Verification kicks or bans someone |
| Logs | When staff take verification away | In the log channel after `/verification remove` |
| Logs | When staff check someone | The private reply to `/verification status` |
## Commands

- **A** `/verification`: press **6 subcommands** to see them all. Each subcommand is its own command.
- **B** **Verify member**: right click a member, **Apps**, **Verify member**.
- **C** **Settings** opens the command in the builder. The switch next to it turns the command on or off.
- **D** A subcommand: its switch turns it on or off, and **Edit** opens it in the builder.
| Command | What it does |
| --- | --- |
| `/verification panel` | Post the verify panel, or update the one that is there. `channel` posts it somewhere else |
| `/verification approve` | Verify a member by hand |
| `/verification remove` | Take a member's Verified roles away |
| `/verification reset` | Clear a member's wrong tries and wait |
| `/verification status` | See whether a member is verified and how, privately |
| `/verification lockdown` | `on` pauses verification during a raid, `off` opens it again |
| **Verify member** | Right click a member to verify them by hand |
Every command is for staff: members with **Manage Roles** or a staff role (**Logs** tab). Anyone else who runs one is told it's for staff. To hide the commands from members in Discord, set it per role in **Server Settings > Integrations**.
## Events
Verification is made of ordinary builder blocks. Open an event to see how it works, or add your own blocks.

- **Member Joined** skips bots, waits for Discord's rules screening when it's on, and starts verification for everyone else.
- **Accepted the Rules** starts verification for members who just accepted the server's rules, while **Wait for Discord's rules screening** is on.
- **Start** gives returning members their roles back, counts joins for the raid lock, lets trusted accounts straight in, gives the Unverified role and starts the time to verify.
- **Verify Them** is the one place a member is let in: it gives the Verified roles, takes the Unverified role, stops their timers, keeps when and how they got in, and logs it.
- **Post the Panel** posts the panel in its channel, or updates the one that is there. It holds what the **Verify** and **Help** buttons do.
- **Member Left** stops a leaving member's timers, clears their tries and answers, and forgets them 90 days later unless they come back.
- **A** **Open in builder** opens the event in the Command Builder.
- **B** The switch turns the event on or off.
- **C** **Show variable names** shows the variable behind each setting on the page, if you want to use them in your own commands.
**Start**, **Verify Them** and **Post the Panel** run when another block triggers them, with **Trigger a Custom Event**: the panel's buttons, the commands and the page all use them.
> **Note:** The settings on this page are read by the events' blocks, so changing a setting never changes the events. If you change an event and want the original back, use its reset on the Verification page.
## Message variables
Every Verification message can use these. Each message card lists the ones it fills in.
| Variable | What it shows |
| --- | --- |
| `{server}` | The server's name |
| `{user_name}` | The member's name |
| `{user_displayName}` | The member's display name |
| `{verify_steps}` | How to verify in this server, as numbered steps for its way of verifying |
| `{verify_member}` | The member, as a mention (logs and staff messages) |
| `{verify_member_name}` | The member's name (logs and staff messages) |
| `{verify_member_id}` | The member's ID |
| `{verify_account_age}` | How old their account is, in days |
| `{verify_joined}` | When they joined. Use it as `` |
| `{verify_how}` | How they got in, like "the code" or "staff" |
| `{verify_by}` | The staff member who let them in or decided their answers, as a mention |
| `{verify_by_line}` | " Β· let in by @name" when staff let them in, empty otherwise |
| `{verify_tries}` | How many wrong tries they've had |
| `{verify_tries_left}` | How many tries they have left |
| `{verify_tries_word}` | "try" or "tries" |
| `{verify_tries_limit}` | How many tries they get |
| `{verify_wait_until}` | When they can try again. Use it as `` |
| `{verify_locked_until}` | When a raid lock ends. Use it as `` |
| `{verify_hold_until}` | When a held account gets in. Use it as `` |
| `{verify_limit_at}` | When the time to verify runs out. Use it as `` |
| `{verify_channel}` | The panel's channel, as a mention |
| `{verify_expires_minutes}` | How many minutes a code works for |
| `{verify_type_label}` | The words on the Type the code button |
| `{verify_code_wait}` | When they can get a new code. Use it as `` |
| `{verify_reason}` | Why they were removed |
| `{verify_raid_reason}` | Why a raid lock started |
| `{verify_invites_line}` | "New invites are paused." when invites are paused with the lock, empty otherwise |
| `{verify_alert}` | The role pinged when a raid lock starts, as a mention |
| `{verify_answers}` | Their answers, each under its question |
| `{verify_problem}` | What went wrong |
| `{verify_status}` | "Not verified", or when and how they verified (status reply) |
| `{verify_rules}` | Whether they've accepted the server's rules (status reply) |
| `{verify_review}` | Whether their answers are waiting for the staff (status reply) |
| `{user_check_reason}` | Why their account didn't pass, like "Your account is 2 days old. It needs to be 7 days old." |
| `{user_check_wait}` | When their account will pass. Use it as `` |
## Every limit
| What | Limit |
| --- | --- |
| Code length | 5 to 8 letters and numbers, 6 to start |
| How long a code works | 1 to 15 minutes, 5 to start |
| Questions | 5 fields |
| Wrong tries | Up to 10, 3 to start |
| Wait or timeout after too many tries | 1 minute to 7 days |
| Time to verify | 1 minute to 7 days |
| Account age | Up to 365 days |
| Holding a new account | Up to 90 days |
| Raid lock | 2 to 100 joins within 10 seconds to 1 hour, locked for 1 minute to 24 hours |
| Code pictures | 60 a minute per bot, one every 20 seconds per member |
| Members who come back | Within 90 days |
Every feature is free for every bot. On free bots, the module's messages have a small **Made with BotGhost** line under them. Premium bots don't.
## What Verification keeps
- Only member IDs, how many wrong tries someone has had, and when and how they verified. No IP addresses, no device details and nothing from outside Discord.
- Answers to the questions are posted for your staff, and Verification doesn't keep them.
- A member's record is forgotten 90 days after they leave, unless they come back.
## Moving from the old Verification
If your bot still has the old Verification module on, the page shows **Your bot still uses the old Verification** at the top.
1. Press **Move my settings**. The channel, the role, the panel, the button, the log channel, the success message, the tries and the time limit move into the server that has the old Verified role. The old module is switched off, so the two never both kick.
2. Press **Save Changes**, then **Post the panel**.
3. Delete the old panel in Discord yourself: the old module never kept where it was.
Once nothing needs them, the page offers to delete the old module's leftover variables. Turning the new Verification on while the old one is still on asks to switch the old one off first.
## Good to know
- Each server has its own settings: roles, channels, the panel, messages and every check. Pick the server at the top of the page before you change them.
- Bots that join are always skipped.
- After an update to Verification, the page shows an **Update** button. Your own changes to the events and messages are kept.
## Common questions
**Members verify but don't get the role**
Check that your bot's role is above the Verified roles in **Server Settings > Roles**, and has **Manage Roles**. The member gets **When something goes wrong**, saying why.
**Members can still see every channel**
Verification only gives roles. Hide your channels from `@everyone` and allow the Verified role in each channel's (or category's) permissions.
**Nothing happens when members press Verify**
Check your bot is online, and that the panel was posted after your last save: press **Post it again** on the **Verify** tab.
**The code picture doesn't show**
Lots of people may be verifying at once. They get **Lots of people are verifying** and can press **Verify** again in a few seconds for a new code.
**Members are told to accept the rules first**
**Wait for Discord's rules screening** is on (**Checks** tab), and they haven't accepted your server's rules yet. They accept them from the banner at the bottom of their screen. If your server doesn't use Rules Screening, turn the setting off.
---
# Honeypot
Source: https://botghost.com/docs/server-management/honeypot
A trap channel for spam bots and hacked accounts. Anyone who posts there is removed, their scam is deleted everywhere, and real members get an invite back.
Honeypot gives your server a trap channel that no real member should post in. Hacked accounts and spam bots post the same scam (a fake Steam gift, free Nitro, a crypto giveaway) in every channel they can reach, so they post in the trap too. When they do, your bot DMs them how to make their account safe, with an invite back, then softbans them: it bans them with their messages from the last hour deleted in every channel, then unbans them straight away. The scam is gone from every channel, and the real owner can rejoin once their account is safe.
Honeypot is free for every bot. There's no Premium part, and its runs, variables and stored values never count toward your free limits.

*What your members and staff will see*
## Before you start
You need:
- Your bot in your Discord server. See [Invite Your Bot](https://botghost.com/docs/getting-started/invite-your-bot) if it isn't yet.
- Your bot's own role **above** your members' roles. A bot can't ban, kick or time out anyone whose highest role is above its own.
- A staff channel for the log, like `#mod-log`. In it, your bot needs **View Channel**, **Send Messages** and **Embed Links**.
- A trap channel, or let the bot make one. In it, your bot needs **View Channel**, **Send Messages**, **Embed Links** and **Manage Messages**.
- The **Message Content** intent turned on in the Discord Developer Portal, so the log can quote what they posted.
Each action and setting needs its own permission:
| Setting | Your bot needs |
| --- | --- |
| Softban, Ban, Ban for good, Unban and the second sweep | **Ban Members** |
| Kick | **Kick Members** |
| Timeout and Remove timeout | **Timeout Members** |
| Give a role and Give back roles | **Manage Roles**, with its role above those roles |
| Deleting the message in the trap, and the notes | **Manage Messages** in the trap channels |
| Invite back | **Create Invite** in the channel the invite is for |
| Create a trap channel for me | **Manage Channels** |
| Surge (pausing invites and DMs) | **Manage Server** |
## Setup
### Step 1: Turn on Honeypot
Open **Honeypot** in your bot's dashboard and press **Enable** at the top right.

- **A** **Enable** turns Honeypot on. It adds the events Honeypot needs and the custom variables it keeps its settings in. Honeypot has no commands.
- **B** The server you're setting up. Every Honeypot setting belongs to one server (its trap channels, its roles and its log), so pick the server first. The page shows the server's icon and name on the settings you're changing.
- **C** **Reset to Default** puts every setting in that server back to how a new Honeypot starts. The channels and roles stay.
- **D** **Docs** opens this page.
### Step 2: Pick or create a trap channel
On the **Traps** tab, pick a channel in [Trap channels](https://botghost.com/docs/server-management/honeypot#trap-channels), or press **Create a trap channel for me**. The bot makes `#do-not-post-here` at the top of your channel list and adds it to the trap channels.
The buttons on the page use your saved settings, so press **Save Changes** after turning Honeypot on, before you press **Create a trap channel for me**.
### Step 3: Pick a log channel
On the **Log** tab, pick a staff channel in [Log channel](https://botghost.com/docs/server-management/honeypot#log-channel). Every catch goes there, with buttons for staff.
### Step 4: Save
A bar pops up at the bottom of the page. Press **Save Changes**. Your bot restarts to pick up the changes, which takes about 20 seconds.

### Step 5: Post the warning
On the **Traps** tab, press **Post or update the warning**. It tells real members to stay out of the trap. See [The warning post](https://botghost.com/docs/server-management/honeypot#the-warning-post).

- **A** What to do next. Once everything is done, it says **You're set**.
- **B** The steps, ticked off as you do them: **Pick or create a trap channel**, **Pick a log channel** and **Post the warning**. Press one to go to it.
### Step 6: Try it from an account that isn't staff
Post something in the trap from an account that isn't staff, like a friend's or a second account. With the settings Honeypot starts with, that account gets the DM, is softbanned, and the log shows the catch within a few seconds.
Posting from your own account won't catch you: owners and staff are always skipped. You get a note in the channel and the sample DM instead, which is a good way to check the DM. See [When staff post there](https://botghost.com/docs/server-management/honeypot#when-staff-post-there).
## The tabs
Everything else is on five tabs. The preview on the right shows what members and staff see in Discord for the tab you're on.

- **Traps**: the trap channels, the warning post and the trap roles.
- **Action**: what happens to someone who's caught, the second sweep and giving roles back.
- **Message them**: the DM, the invite back and the sample staff get.
- **Safety**: who's skipped, staff posting in the trap, going easy on regulars and the surge pause.
- **Log**: the log channel, the log messages and the count.
## Traps
### Trap channels

Anyone who posts in a trap channel is caught.
- **Trap channels**: up to 5 text or announcement channels. Keep them visible and writable for everyone, near the top of the channel list. Don't call one honeypot.
- **Create a trap channel for me**: makes `#do-not-post-here` at the top of the channel list, with the topic "Don't post here. Spam bot trap: anyone who posts is removed." It adds the channel to the trap channels, then the page shows it. The channel gets no permission changes of its own, so it follows your server's `@everyone` permissions.
If a trap channel is deleted, or the bot can't see it any more, the page says **Channel not found** on its row, with a cross to take it out. Nothing is caught there.
### The warning post

The warning post goes in each trap channel, so real members know to stay out. It says the channel is a trap, that anything posted there gets the account removed, and to check their DMs for an invite back if they posted by mistake. Its last line shows how many spam accounts have been caught so far, kept up to date.
- **Message**: the post. **Edit message** opens the Message Builder.
- **Post or update the warning**: posts it in every trap channel. A post that's already there is edited where it is, so press it again after you change the message. If someone deletes the post, pressing it posts a new one.
Save before you post: posting uses your saved settings. Right after a save, the button waits for your bot to restart. Under the button, the page says whether the warning is in every trap channel, or which one it's missing from.
The count on the post is updated when someone is caught, at most once a minute, so a raid doesn't flood Discord with edits.
### Trap roles

Anyone who gets one of these roles is caught, the same way as posting in a trap channel.
- **Catch members who get a trap role**: on to start with. Nothing happens until you pick a role.
- **Trap roles**: up to 10. Staff who get one are skipped.
Add a trap role to **Onboarding** (in **Server Settings**) as an option no real person would pick. An account that picks every option gets the role and is caught before it can post anywhere. When their roles are given back later, the trap role is left out.
> **Warning:** Keep trap roles above your moderators' roles in **Server Settings > Roles**. Honeypot can't tell who gave someone a trap role, so a moderator with **Manage Roles** whose role sits above it could hand it to anyone and get them caught, even without **Ban Members**. The page warns you when a role like that is above one of your trap roles.
## Action
### What happens to them

- **Action**: what the bot does to someone who's caught.
- **Softban** (to start with) removes them and deletes their messages, but they can rejoin once their account is safe.
- **Ban** removes them for good and deletes their messages. Staff can unban them from the log.
- **Kick** removes them. They can rejoin with an invite.
- **Timeout** keeps them in the server but stops them talking for a while.
- **Give a role** gives them a role you pick, like one that hides the rest of the server.
- **Only log**: nothing happens to them. Staff see the log and decide.
- **Delete their messages from**: for Softban and Ban. Their messages in every channel, from this far back: **1 hour** (to start with), **6 hours**, **12 hours**, **24 hours**, **3 days** or **7 days**.
- **Timeout for**: for Timeout. From 1 minute to 28 days, Discord's longest. It starts at 24 hours.
- **Role to give**: for Give a role. The bot can only give roles below its own.
Only Softban and Ban delete their messages in other channels (that's Discord's rule). With Kick, Timeout, Give a role and Only log, only the message in the trap is deleted.
Whatever the action, their message in the trap is deleted first.
### Sweep again
- **Sweep again after 2 minutes**: on to start with, for Softban and Ban. Discord sometimes misses a message sent at the same moment as the ban. Two minutes later, the bot bans them by their ID again with the same delete window (and unbans them again after a softban), so anything left is deleted.
The sweep is skipped if they've already rejoined. Pressing **Ban for good** or **Unban** on the log in those two minutes stops it.
### Give back roles

Softban, Ban and Kick take their roles, because they leave the server. With the other actions they keep them. While either switch below is on, the bot keeps a note of their roles for 30 days so they can have them back.
- **A Give back roles button on the log**: on to start with. Staff press it once the member is safe. If they haven't rejoined yet, the roles come back when they do.
- **Automatically when they rejoin**: off to start with. Their account may not be safe yet, so leave this off unless you trust they've secured it.
With **Ban**, the log has only an **Unban** button, no **Give back roles**. The bot still keeps the note for 30 days: if you unban them, they get their roles back when they rejoin while **Automatically when they rejoin** is on.
Roles the bot can't give are never noted: `@everyone`, and roles Discord manages, like a bot's own role or the Server Booster role. The trap role they picked is left out too. If someone is caught again before their roles were given back, the first note is kept.
## Message them
### Message them first
- **Send them a DM first**: on to start with. It says how to make their account safe. It's sent before they're removed, while the bot still shares a server with them. If their DMs are closed, the bot carries on and the log says **DMs closed**.
### The DM

The DM says what happened to them in the server, that their account posted in a channel nobody is meant to use, and that someone else has probably got into their account. Then it lists the steps to make the account safe:
1. Change your password. That logs the other person out.
2. Turn on two-factor authentication.
3. In Settings, Authorized Apps, remove any you don't know.
4. Run a virus scan. Scam links often install a token stealer.
It links to Discord's guide to a hacked account, adds the invite back when there is one, and ends with "Replies to this bot aren't read."
The heading changes with the action: **You were removed from** (Softban and Kick), **You were banned from**, **You were timed out in**, **Your access was limited in** (Give a role) or **Your message was deleted in** (Only log), then the server's name. That's `{hp_dm_title}`.
- **Message**: the DM. **Edit message** opens the Message Builder. If you change it, keep `{hp_invite_line}` in it, or the invite back won't show.
### Invite back
- **Add an invite back**: on to start with. A one-use invite in the DM, so they can rejoin once their account is safe. It's only for Softban and Kick: a ban keeps them out, and the other actions leave them in the server.
- **Invite to**: the channel they land in when they rejoin. Leave it empty to use the first trap channel. Picking a welcome or rules channel is better (see [the common questions](https://botghost.com/docs/server-management/honeypot#common-questions)).
- **Works for**: 1 to 7 days, Discord's longest. It starts at 7.
The invite goes out in the DM, so it's only made while **Message them first** is on.
### The sample staff get
When staff post in the trap or get a trap role, nothing happens to them, but they get this DM: the same DM a member would get, with "This is a sample. You're staff, so nothing happened." at the top. Its last line says members also get a one-use invite back.
- **Message**: the sample. **Edit message** opens the Message Builder.
## Safety
### Who's skipped

Staff are never caught. The server owner and anyone with **Administrator**, **Manage Server**, **Manage Messages**, **Ban Members** or **Kick Members** are always skipped.
- **More roles to skip**: members with any of these roles are treated like staff. They can also press the log's buttons.
### When staff post there
When staff post in a trap channel, their message is deleted, they get [the sample DM](https://botghost.com/docs/server-management/honeypot#the-sample-staff-get), and the log says so. Use it to test.
- **Show a note**: on to start with. A note in the trap channel, deleted after 15 seconds.
- **The note staff see**: the note. It starts as "you're staff, so nothing happened. A member would have been softbanned. Check your DMs to see what they'd get."
### Go easy on regulars
- **Go easy on regulars**: off to start with, because a trap is a channel nobody should speak in. While it's on, a member who's been in the server at least the number of days you pick, and whose message has some text but no link, picture or `@everyone`, only has the message deleted. A hacked regular posting a scam link is still caught.
- **Here for at least**: 1 to 3,650 days. It starts at 30.
- **The note regulars see**: posted in the trap channel and deleted after 30 seconds. It starts as "this channel is a trap for spam bots, so your message was deleted. You've been here a while, so nothing else happened."
Links here are anything starting with `http:` or `https:`, and Discord invites. `@here` counts like `@everyone`. A message with no text (a forward, a sticker, or any message when your bot doesn't have the Message Content intent) is never treated as harmless, so it's caught.
### Surge

When several accounts are caught at once, the bot pauses invites and DMs and tells staff.
- **Pause on a surge**: on to start with. Discord pauses invites and DMs for the whole server, so a raid can't bring more in.
- **Catches**: how many accounts make a surge, from 2 to 50. It starts at 3.
- **Within**: from 1 to 60 minutes. It starts at 10.
- **Pause for**: from 1 to 24 hours, Discord's longest. It starts at 2.
- **Role to ping**: leave it empty to ping nobody.
- **When a surge pauses invites**: the alert, posted in the log channel with a **Resume invites** button. It goes once for each window.
The minutes are counted in fixed blocks of time (10:00 to 10:10, then 10:10 to 10:20, with 10 minutes), so catches either side of the change don't add up.
## Log
### Log channel
- **Log channel**: a staff channel for every catch, with buttons for staff. The bot needs to see it, send messages and embed links there. Surge alerts go here too.
With no log channel, catches still happen; nothing is logged.
### The log messages

Each log message has its own card on the **Log** tab:
- **When someone is caught**: what was done and to who ("Softbanned @kev"), where they posted or which trap role they picked, when their account was made and when they joined, their message as a quote (the first 500 characters), what else happened, their ID and the catch number. The "what else happened" line reads like "Messages from the last hour deleted Β· DM sent Β· invite sent Β· second sweep in 2 minutes".
- **When it fails**: the bot couldn't act, with the reason and what to change, like the bot's role being below theirs or a missing permission.
- **When a regular posts**: a regular's message was only deleted, while **Go easy on regulars** is on.
- **When staff post**: staff tried the trap or got a trap role.
- **When roles come back**: someone who was caught rejoined and got their roles back. It starts as "Roles given back" with "@kev rejoined and got their roles back." and their ID.
The log post gets buttons for staff, depending on the action:
| Action | Buttons |
| --- | --- |
| Softban, Kick | **Ban for good**, and **Give back roles** while **A Give back roles button on the log** is on |
| Ban | **Unban** |
| Timeout | **Ban for good**, **Remove timeout** |
| Give a role, Only log | **Ban for good** |

- **Ban for good**: bans them by their ID, even if they've left, and forgets their saved roles.
- **Unban**: lifts the ban.
- **Remove timeout**: takes the timeout off.
- **Give back roles**: gives back the roles they had when they were caught. If they haven't rejoined yet, the bot says "They haven't rejoined yet. Their roles come back when they do." and gives them back when they rejoin.
After a press, the log post says who did what, like **Banned for good by @Vez**, and its buttons go. Anyone with **Administrator**, **Manage Server** or **Ban Members**, or a role in **More roles to skip**, can press them. Anyone else is told "You need Ban Members to do that." The buttons keep working for a year.
If a softban's ban worked but the unban didn't, they're still banned: the failure log says so and has an **Unban** button. When the ban itself failed, there's nobody to unban, so the failure log has no button.
### Caught so far

How many accounts were caught in the server. It's the count on the warning post, and every catch counts.
- **Reset count**: press it twice to put the count back to 0. The warning post shows it the next time someone is caught.
## What happens when someone is caught
1. A spam account posts "Free Nitro, claim here" in a trap channel. Their message is deleted.
2. The bot DMs them how to make their account safe, with a one-use invite back.
3. They're softbanned: banned with their messages from the last hour deleted in every channel, then unbanned.
4. The log channel gets the catch, with **Ban for good** and **Give back roles**. The count on the warning post goes up.
5. Two minutes later the second sweep deletes anything the first one missed.
6. If they post again in that minute, the message is only deleted: one catch per member a minute, however many messages.
Staff who post there aren't caught. Their message is deleted, they get a note and the sample DM, and the log says so.
## The bot's messages
Every message Honeypot sends has its own card on the tab it belongs to. Each card has the message, **Edit message** to open the Message Builder, and the variables it fills in (**Fills in**).

| Tab | Message | When it's sent |
| --- | --- | --- |
| Traps | The warning post | In every trap channel by **Post or update the warning**, kept up to date with the count |
| Message them | The DM | To the member before the bot acts, while **Message them first** is on |
| Message them | The sample staff get | To staff who post in the trap or get a trap role |
| Safety | The note staff see | In the trap channel when staff post there, deleted after 15 seconds |
| Safety | The note regulars see | In the trap channel when a regular is let off, deleted after 30 seconds |
| Safety | When a surge pauses invites | In the log channel on a surge, with **Resume invites** |
| Log | When someone is caught | In the log channel, with buttons for staff |
| Log | When it fails | In the log channel when the bot couldn't act |
| Log | When a regular posts | In the log channel when a regular's message was only deleted |
| Log | When staff post | In the log channel when staff try the trap |
| Log | When roles come back | In the log channel when someone who was caught rejoins and gets their roles back |
The DMs are sent as DMs. If their DMs are closed, the bot carries on.
Mentions in these messages never ping anyone, with two exceptions: the notes in the trap channel ping the member they're for, and the surge alert pings the role you pick in **Role to ping**.
## Events
Honeypot is made of ordinary builder blocks. Open an event to see how it works, or add your own blocks.

- **Message Sent** checks every message the bot can see. Only one check runs unless the message is in a trap channel. There, the message is deleted; staff get the note, the sample DM and a log line; a regular is let off while **Go easy on regulars** is on; and anyone else is caught. Other bots, webhooks and Discord's own system messages (like "joined the server") never count.
- **Trap Role** runs when a member gets a role. When it's one of the trap roles, staff get the sample DM and a log line, and anyone else is caught.
- **Catch** does the catch: it saves their roles, counts it, makes the invite back, DMs them, then does the action, the log post with its buttons, the warning posts' count, the second sweep and the surge pause. It also holds what the log's buttons do.
- **Set Up** runs from the page: **Create a trap channel for me**, **Post or update the warning** and **Reset count**.
- **Rejoin** runs when someone who was caught comes back. It gives their roles back while **Automatically when they rejoin** is on, or when a moderator pressed **Give back roles** before they rejoined.
- **Bot Left** deletes the count, the warning posts' IDs, the locks, the saved roles and the surge counts Honeypot kept for a server when your bot leaves it. The page's settings for it are kept.
**Open in builder** opens an event in the Command Builder, and the switch turns it on or off. **Show variable names** shows the variable behind each setting on the page, if you want to use them in your own commands. `{BGVAR_honeypot_state.caught}` is the count, if you want to show it somewhere else.
You can add blocks to any of them, like a ping in your mod channel at the end of Catch. Catch is a **When triggered by a block** event, so your own blocks can run it too, with `member`, `place` (the trap channel or role), `kind` (`channel` or `role`) and `text` (their message).
> **Note:** The settings on this page are read by the events' blocks, so changing a setting never changes the events. If you change an event and want the original back, use **Put it back how it was** beside it on the Honeypot page. While Catch is changed, the log's buttons last as long as your plan's other buttons instead of a year.
## Message variables
Each message card lists the variables its message fills in.
| Variable | What it shows |
| --- | --- |
| `{server}` | The server's name |
| `{hp_member}` | The member, as a mention |
| `{hp_member_name}` | The member's name |
| `{hp_member_id}` | The member's ID |
| `{hp_where}` | Where they were caught: "Posted in #do-not-post-here" or "Picked the trap role @Free Nitro" |
| `{hp_dm_title}` | What happened to them, before the server's name in the DM: "You were removed from" (Softban, Kick), "You were banned from", "You were timed out in", "Your access was limited in" (Give a role) or "Your message was deleted in" (Only log) |
| `{hp_did}` | What they did, for the DM: "Your account posted in #do-not-post-here, a channel nobody is meant to use", or the trap role they picked |
| `{hp_text}` | Their message as a quote (the first 500 characters), or a line saying it had no text |
| `{hp_created}` | When their account was made, like 3 years ago |
| `{hp_joined}` | When they joined the server, like 2 years ago |
| `{hp_days_here}` | How many days they've been in the server |
| `{hp_action_done}` | What happened, like Softbanned |
| `{hp_action_word}` | What the bot tried, like softban |
| `{hp_action_would}` | What would have happened to a member, like softbanned |
| `{hp_result_line}` | What else happened: messages deleted, DM sent or DMs closed, invite sent, the second sweep; and who pressed a button on the log |
| `{hp_error}` | Why it failed, with what to change |
| `{hp_count}` | How many accounts were caught in this server so far |
| `{hp_invite_line}` | The invite back, as a line with the link (empty when there's no invite) |
| `{hp_surge_count}` | How many accounts were caught in the surge |
| `{hp_surge_minutes}` | The surge window, in minutes |
| `{hp_surge_hours}` | How long invites and DMs are paused, in hours |
| `{hp_surge_ping}` | The role to ping, as a mention (empty when none is picked) |
## Every limit
| What | Limit |
| --- | --- |
| Trap channels | 5 |
| Trap roles | 10 |
| Delete their messages from | 1 hour to 7 days, 1 hour to start |
| Timeout | 1 minute to 28 days, 24 hours to start |
| Invite back | One use, 1 to 7 days, 7 to start |
| Go easy on regulars | 1 to 3,650 days in the server, 30 to start |
| Surge catches | 2 to 50, 3 to start |
| Surge window | 1 to 60 minutes, 10 to start |
| Surge pause | 1 to 24 hours, 2 to start |
| Catches per member | One a minute; more messages are only deleted |
| Second sweep | 2 minutes after the catch |
| The note staff see | Deleted after 15 seconds |
| The note regulars see | Deleted after 30 seconds |
| The count on the warning post | Updated at most once a minute |
| Saved roles | Kept for 30 days |
| Their message in the log | The first 500 characters |
| Log buttons | Keep working for a year |
Every feature is free for every bot. On free bots, the log, the notes and the surge alert sometimes have a small **Made with BotGhost** line under them, about one time in three. The DM and the warning post never do, and Premium bots never do. Honeypot's runs, variables and stored values never count toward your free limits.
## What Honeypot keeps
- The count for each server.
- The ID of the warning post in each trap channel, so it can be edited.
- A one minute lock on each member who's being caught.
- Their roles when they were caught, while either **Give back roles** switch is on. They're forgotten once given back, when someone presses **Ban for good**, or after 30 days.
- The surge counts, forgotten after two windows.
Their message is never stored: it's only in the log post. When your bot leaves a server, everything Honeypot kept for it is deleted. The page's settings for it are kept.
## Good to know
- Each server has its own settings: trap channels, roles, the log and every message. Pick the server at the top of the page before you change them.
- A catch takes a few seconds from the post to the log.
- Without the **Message Content** intent, the log says the message had no text, and **Go easy on regulars** never lets anyone off.
- After an update to Honeypot, the page shows an **Update** button. Your own changes to the events and messages are kept.
## Common questions
**A real member was caught by mistake. How do I undo it?**
Their messages from the delete window can't be brought back, but the rest can be undone from the log post:
- **Softban** or **Kick**: they got the DM with an invite back. Press **Give back roles** on the log. If they haven't rejoined yet, their roles come back when they do.
- **Ban**: press **Unban**, then send them an invite.
- **Timeout**: press **Remove timeout**.
- **Give a role**: take the role off them in Discord.
If members keep posting there by mistake, check the warning post is in the channel, or turn on [Go easy on regulars](https://botghost.com/docs/server-management/honeypot#go-easy-on-regulars).
**Someone posted in the trap and nothing happened**
Check your bot is online, Honeypot is on, you saved, and the channel is in **Trap channels** for that server. Check the **Message Sent** and **Catch** events are switched on. If you posted yourself, you're staff: you get a note and the sample DM, and nothing else happens. Try from an account without **Administrator**, **Manage Server**, **Manage Messages**, **Ban Members**, **Kick Members** or a role in **More roles to skip**.
**The log says it couldn't softban them**
Your bot's role must be above the member's highest role, with **Ban Members** turned on. Drag your bot's role above your member roles in **Server Settings > Roles**. The log's reason says what Discord refused. For Kick, Timeout and Give a role, the bot needs **Kick Members**, **Timeout Members** or **Manage Roles** instead.
**Their DMs are closed**
The bot carries on with the action, and the log says **DMs closed**. They don't get the steps or the invite back. If it was a real member, a moderator can send them an invite once their account is safe.
**How do trap roles work with Onboarding?**
In **Server Settings > Onboarding**, add a question with an option that gives one of your trap roles and that no real person would pick. Spam accounts that pick every option get the role, and Honeypot catches them straight away, before they post anywhere. Turn on **Catch members who get a trap role** and pick the role on the **Traps** tab. Staff who get it are skipped.
**Why must the trap channel stay visible and writable?**
Hacked accounts and spam scripts post wherever they can. A trap channel they can't see, or can't post in, never catches anyone. Keep it near the top of the channel list too, since many scripts post in the first channels they find. The warning post tells real members to stay out.
**Why shouldn't I call it honeypot?**
A name like honeypot or trap tells a spammer what the channel is, and they skip it. A plain name like `do-not-post-here` works, with the warning post saying why.
**Why did the invite back land them in the trap channel?**
An invite has to point at a channel. When **Invite to** is empty, the bot uses the first trap channel, so someone who rejoins lands right in the trap. The warning post tells them not to post there. Pick a welcome or rules channel in **Invite to** on the **Message them** tab so they land somewhere safe.
**Invites to my server are paused**
A surge paused them: enough accounts were caught within your window. Press **Resume invites** on the alert in the log channel, or wait: they come back on their own after the time in **Pause for**. To stop it happening, turn off **Pause on a surge** or raise **Catches** on the **Safety** tab.
---
# Statistic Channels
Source: https://botghost.com/docs/server-management/statistic-channels
Create voice channels to track metrics of your server!
.png)
> **Warning:** This module requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
BotGhost provides a [Statistic Channels module](https://dashboard.botghost.com/dashboard/module/ee045a3d-05a6-409a-b435-7d170c5e70c3/statisticchannels) for its users. This module will allow you to keep track of metrics and statistics for your server within voice channels in your channel list.
## Settings
### New Counter Setup
In this area, you can view and modify the settings of the Statistic Channels module. Below you may find some information on each setting of the module.
.png)
> **Note:** **Note:** To set up a new statistic channel, you'll need to create a voice channel. Need help? [View Discord's guide on how to create a voice channel](https://support.discord.com/hc/en-us/articles/19583625604887-Voice-Channels-FAQs#h_01HGXJWRPAZBM3FY6333C9WBQ3).
#### Channel Selection Type
This setting allows you to customize how to select your voice channel.
**Dropdown Menu**
The Dropdown Menu option allows you to select your voice channel from a dropdown list of channels in your server.
.png)
#### Channel Selection
This setting allows you to select your voice channel to track the metrics you set for this channel.
**Channel ID Input**
The Channel ID Input option allows you to select your voice channel by pasting the ID of the channel into the dashboard.
.png)
#### Channel ID
This setting allows you to paste the ID of your voice channel to track the metrics you set for this channel. You can also use a variable.
#### Channel Name
This field is where you input the channel name for the statistic channel. You can use the `{value}` [variable](https://botghost.com/docs/custom-commands-and-events/variables) to reference the metric.
> **Note:** To save the statistic channel's settings, you need to click "Add" in the bottom-right corner of the settings. This will create an [Active Counters](https://botghost.com/docs/server-management/statistic-channels#active-counters) and an [Events](https://botghost.com/docs/server-management/statistic-channels#events) for those settings. Additionally, the fields in this section will be reset so you can setup another channel.
#### Statistic Type
You will be able to choose from one of these metrics to track.
.png)
#### Auto-Lock Channel
If this switch is enabled then the channel will be locked, meaning no users will be able to join those channels, unless there is a role or admin permission overriding that.
### Active Counters
.png)
When adding a new statistic channel, it and its settings will appear in this section. All statistic channels will be ordered by the number in which they were created. To view, edit, and delete the settings you selected for that channel, simply click the statistic channel you wish to do so for.
.png)
> **Note:** To save the edits you made on the statistic channel's settings, you need to click "Edit" in the bottom-right corner of the settings.
---
## Events
In this area, you can view and modify the events of the Statistic Channels module. Below you may find some information on each event of the module. All statistic channels will be ordered by the number in which they were created.
.png)
**Statistic Channel #...**
Once a active counter has been added, the corresponding event will be shown in this section. You can edit the logic within them to your liking.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intented.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Modmail
Source: https://botghost.com/docs/server-management/modmail
Set up modmail, an easy way for members to contact staff
.png)
> **Warning:** This module requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The [Modmail](https://dashboard.botghost.com/dashboard/module/249b4aee-5617-4985-b60b-be262e567fc7/modmail) module allows users to send a Direct Message to your bot to open a form thread in a form channel of your choice to contact server staff privately, or report server members and more.
## Settings
### Settings
Here you can configure the settings for the modmail module, from changing the DM Messages to selecting the form channel you would like it to be posted in.
#### **Receive Requests**
This option is enabled by default and disabling this setting will stop users from opening a modmail thread and instead return a closed message when they direct message your bot.
#### **Form Channel**
Here you must paste your forum channels ID to allow users to open modmail threads, you can create a forum channel in your discord server, for a guide on how to get a channel ID you can check [here](https://botghost.com/docs/getting-started/standard-practices/advanced-practices#how-can-i-get-a-channel-id).
#### **DM Message Title**
This field is where you can edit the direct message title which is sent to users upon contacting your bot via direct messages.
#### **DM Message Description**
Here you can edit the message that is sent to the user upon contacting your bot via DMs. All [variables](https://botghost.com/docs/custom-commands-and-events/variables) may be used.
### Ban Command
This is where you can configure the settings for the `/modmail-ban` command.
#### **Enable Ban Command**
This toggle is where you can enable/disable the ability for staff to use the `/modmail-ban` command.
#### Select The Needed Permissions
This dropdown section is where you can change the permissions for use of the `/modmail-ban` command, the default value of this is set to **Administrator** but can be changed to:
| Permission | Details |
| --- | --- |
| Administrator | Requires the administrator permission in your server. |
| Server Manager | Requires the manage server permission. |
| Moderator | Requires the manage permissions. |
#### **Ban Message**
In this field, you can set the message that is displayed to a user when they attempt to make a modmail thread after they have been banned from using modmail.
---
## Commands
In this area, you can view and modify the commands of the Modmail module. Below you may find some information on each command of the module.
.png)
**/modmail-ban**
When triggered, this command will restrict a selected users ability to use the modmail system resulting in a ban message being displayed upon trying to open a new modmail thread.
**/modmail-clear**
When triggered this command will clear the modmail data for a user allowing them to use the modmail system again, this is useful incase the system breaks and acts as though a user has a thread already open.
## Events
In this area, you can view and modify the events of the Modmail module. Below you may find some information on each event of the module.
.png)
**Modmail**
This is the main event which detects when a user sends a DM to your bot and starts a thread. Here you can edit the event and customise it to your liking and add onto the pre-existing functionalities of the module.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intended.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Auto-React
Source: https://botghost.com/docs/server-management/auto-react
Automatically add reactions to new messages sent in a channel
.png)
> **Warning:** This module requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
BotGhost provides an [Auto-React module](https://dashboard.botghost.com/dashboard/module/d12ee953-765f-47bd-b855-b9dd18fe052e/auto-react) for its users. This module will allow you to automatically add reactions on newly sent messages.
## Settings
### Basic Setup
In this area, you can view and modify the settings of the Auto-React module. Below you may find some information on each setting of the module.
.png)
#### Enabled Channels
This setting allows you to enable automatic reactions in specific channels.
#### Reaction Emojis
This setting allows you to set the emoji to react with. You can use default and custom emojis.
### Condition Setup
.png)
#### Ignore Embeds
This setting allows you to only react to messages that include plain text.
#### Allowed Roles
This setting allows you to specify what roles the author of the message must have for automatic reactions. By refraining from setting any roles, all users will be subject to the filter regardless of their roles.
#### Check for Words
This setting allows you to specify what words the message must have for automatic reactions. By refraining from setting any words, all messages will be subject to the filter regardless of their content.
---
## Events
In this area, you can view and modify the events of the Auto-React module. Below you may find some information on each event of the module.
.png)
**Auto-React**
This event is the core of the module: it triggers upon newly sent messages and ensures to filter all messages and automatically react based on the settings you set.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intented.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Sticky Roles
Source: https://botghost.com/docs/server-management/sticky-roles
Automatically re-assign roles to members that leave and re-join!
.png)
> **Warning:** This module requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The [Sticky Roles](https://dashboard.botghost.com/dashboard/module/911f6c91-a771-4cd7-b848-807bf4bd6588/stickyroles) module will allow server members to regain some or all of their roles upon leaving and rejoining the server.
## Settings
### Role Settings
In this area, you can customize how the module functions.
.png)
#### **Role Filtering Type**
This is how you specify if certain roles should be added upon rejoining or excluded.
| Type | Details |
| --- | --- |
| Ignored Roles | This selector is how you choose what roles should not be added when a user rejoins. Keep in mind that if this option is enabled, then all other roles besides the ones selected will be added to the user. |
| Allowed Roles | This selector is how you choose sticky roles that get added to a user when they rejoin. Excluding roles from the selector while this option is enabled will result in those roles simply not being added. |
#### **Ignore Moderation Actions**
If this switch is enabled then the bot will ignore moderation actions, so if a user is banned or kicked it will still add them upon rejoining. However it is the opposite if it's disabled.
#### **Send Direct Message**
Here you may toggle whether members who get roles back upon rejoining will receive a direct message with a list of those roles.
#### **Direct Message Setup**
If the direct message option is enabled, then you can configure the message. The message can be toggled to [plain text](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/plain-text-reply) or [embed](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/embed-reply) type and will be sent upon rejoining along with the roles. You can use the `{roles}` [variable](https://botghost.com/docs/custom-commands-and-events/variables) to list all the roles that were added when the user rejoined.
---
## Events
In this area, you can view and modify the events of the Sticky Roles module. Below you may find some information on each event of the module.
*Events of the sticky roles module*
**Leave Handler**
This event stores the roles that a user had upon leaving the server into a custom variable.
**Join Handler**
This event re-assigns the stored roles that should be assigned according to the module's customization, and DMs the user if/with any roles were re-assigned (if enabled).
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intended.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Emoji Manager
Source: https://botghost.com/docs/server-management/emoji-manager
Create, edit and copy emojis on your server with ease!
.png)
> **Warning:** This module requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The [Emoji Manager](https://dashboard.botghost.com/dashboard/module/c2cde45e-a789-4b31-ad44-5c7ceca5a5cd/emojimanager) module will allow you to view a list of custom emojis, create a new one in your server, restrict the use of an existing emoji, and copy an emoji from a different server to yours.
## Settings
### Permissions Setup
This section is how you can configure all the permission based necessities for the emoji commands.
.png)
#### **Sync Default Permissions**
This option when enabled, will force users to have the manage expressions permission along with the role based permissions in the rest of the settings.
#### **Role Permissions: Selection Type**
| Type | Details |
| --- | --- |
| Only selected roles | If this option is selected then only the selected roles in the field below will be allowed to use the emoji manager commands. |
| All roles except | If this option is chosen instead, then all roles in the field below will be the ones which aren't able to use the commands, and the rest of the server roles can. |
#### **Role Permissions: Roles**
This field is where you can specify and select the server roles that are going to be applied towards the setting above.
### Commands Setup
Define how many emojis should display while using the /emojis-view command, enable logging, and select the desired channel.
.png)
#### **Emojis-View: Emojis per Page**
This field is where you can input the amount of emojis shown when using the emoji-view command. There is a maximum of 25 emojis and this field only accepts integers.
#### **Enable Logging**
Enable this option to log all actions / changes applied to your server's emoji in a channel. This includes the usage of all commands except `/emojis-view`.
#### **Logging Channel**
Select a channel in which actions of the module will be logged. *This setting is only visible with* [Enable Logging](https://botghost.com/docs/server-management/emoji-manager#enable-logging) *enabled.*
---
## Commands
In this area, you can view and modify the commands of the Emoji Manager module. Below you may find some information on each command of the module.
.png)
**/emojis-view**
This command allows you to view all created emojis that were made via this module and other server emojis.
**/emoji-create**
With this command you can create emojis and add them to the server's emojis.
**/emoji-restrict**
This command will restrict certain users based off the roles they have from using the commands.
**/emoji-copy**
This command can copy an emoji from another server and upload it to your server.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intended.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Polls Filter
Source: https://botghost.com/docs/server-management/polls-filter
Easily block unwanted polls in your server channels!
.png)
The [Polls Filter module](https://dashboard.botghost.com/dashboard/module/5631dcc3-4ef8-49ee-8ab0-7dc763ad44ff/pollsfilter) allows you to filter newly sent messages that contain polls.
## Settings
In this area, you can view and modify the settings of the Polls Filter module. Below you may find some information on each setting of the module.
### Bot Response
.png)
#### Delete message
This setting allows you to automatically delete the filtered message.
#### Timeout User
This setting allows you to automatically mute the author of the filtered message for a specified number of seconds.
#### Timeout Member
This setting allows you to customize how long, in seconds, the author of the filtered message should be muted. *This setting is only visible with* [*Timeout User*](https://botghost.com/docs/server-management/polls-filter#timeout-user) *enabled.*
#### Send a message when the filter is triggered
This setting allows you to automatically send a specified message to the channel the message was filtered in, and optionally delete it after a specified number of seconds.
#### Message
This setting allows you to customize the message that should be sent to the channel the message was filtered in. *This setting is only visible with* [*Send a message when the filter is triggered*](https://botghost.com/docs/server-management/polls-filter#send-a-message-when-the-filter-is-triggered) *enabled.*
#### Delete Notification
This setting allows you to customize how long, in seconds, the specified message should be visible before it gets deleted. To ensure the message does not get deleted, set this setting to `0`. *This setting is only visible with* [*Send a message when the filter is triggered*](https://botghost.com/docs/server-management/polls-filter#send-a-message-when-the-filter-is-triggered) *enabled.*
#### Send a DM when the filter is triggered
This setting allows you to automatically direct message the author of the filtered message.
#### Message
This setting allows you to customize the direct message that should be sent to the author of the filtered message. *This setting is only visible with* [*Send a DM when the filter is triggered*](https://botghost.com/docs/server-management/polls-filter#send-a-dm-when-the-filter-is-triggered) *enabled.*
### Filters
.png)
#### Channel Restrictions
This setting allows you to customize what channels can and cannot contain polls.
| Restriction Type | Information |
| --- | --- |
| No channel restrictions | Server members will be able to send polls everywhere. |
| Enable for all channels except... | Server members will be able to send polls in all channels except the channels provided in the menu below. |
| Disable for all channels except... | Server members will be able to send polls only in channels provided in the menu below. |
#### Role Restrictions
This setting allows you to customize what roles can and cannot send polls.
| Restriction Type | Information |
| --- | --- |
| No role restrictions | All server members will be able to send polls. |
| Enable for all channels except... | All server members except those with the roles provided in the menu below will be able to send polls. |
| Disable for all channels except... | Only server members with the roles provided in the menu will be able to send polls. |
---
## Events
In this area, you can view and modify the events of the Polls Filter module. Below you may find some information on each event of the module.
.png)
**Polls Filter**
This event is the core of the module: it triggers upon newly sent messages and ensures to filter all messages that contain polls based on the settings you set.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intented.
>
> Additionally, a copy of the edited command / event will be created if you update the module.
---
# Timed Messages
Source: https://botghost.com/docs/messages/timed-messages
Send embed or plain text messages with scheduled intervals!
.png)
The [Timed Messages](https://dashboard.botghost.com/dashboard/module/5f1b4c67-b37b-487c-8287-a694b1e01ce8/timedmessages) module will have your bot send a message to channels at repeated scheduled intervals.
## Settings
### Create Timed Message
New timed messages may be created within this part of the module. Click the add button at the very bottom left of this image to add it to the active timed messages.
.png)
#### **Timed Message Name**
This field is the input for a unique name for the timed message.
#### **Channel Selection**
Select any text or announcement channel in your server to send the timed message to.
#### **Time Interval - Days**
In this field is the delay amount in days between timed messages (If blank it defaults to 0).
#### **Time Interval - Hours**
In this field is the delay amount in hours between timed messages (If blank it defaults to 0).
#### **Time Interval - Minutes**
Choose a delay between 0 and 60 minutes with 5-minute intervals. Default is 0 minutes.
#### **Message**
This is where you can setup the contents of a [plain text](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/plain-text-reply) or [embed](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/embed-reply) message. You may toggle it by clicking on the switch in the corner.
#### **Block Stacked Messages**
If enabled, when the timed message is executed the bot will check if the last message in the channel was by your bot. If so it will skip the sending of this timed message.
> **Note:** To save the timed message settings, you need to click "Add" in the bottom-right corner of the settings. This will reset the fields so you can set up another timed message.
### Active Timed Messages
These are timed events that are already created in the module and can be edited or deleted underneath the options to create / edit a new timed message.
> **Note:** To save the edits you made on the rotating status's settings, you need to click "Edit" in the bottom-right corner of the settings.
.png)
---
## Events
In this area, you can view and modify the events of the Discord Automod module. Below you may find some information on each event of the module.
.png)
**Timed Messages Handler**
This event will search for all active timed events, loop through and send them at a specific interval.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intended.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Reaction Roles
Source: https://botghost.com/docs/messages/reaction-roles
Add or remove roles when a user adds a reaction to a message
The Reaction Role module allows you to configure messages that allow users to assign and remove roles by reacting to a message.
## Common Issues
Experiencing issues with the module? Check out the common issues below. If your issue is not listed in this page, make sure your module is updated to the latest version. If you are still experiencing issues with the module, join our [support server](https://discord.gg/botghost) to ask for further help.
### **The bot is not reacting to the message**
If the bot is not adding the first reaction to the message, try the following steps:
**Step 1.** Make sure the [Remove Reaction](https://botghost.com/docs/messages/reaction-roles#remove-reaction) setting is disabled.
**Step 2.** If this didn't solve the issue, add the reaction to the message yourself.
**Step 3.** If you're still experiencing issues, join our [support server](https://discord.gg/botghost) to ask for further help.
### **The bot doesn't recognize an emoji**
If the bot is not recognizing an emoji and not adding the role, try the following steps:
**Step 1.** Make sure you added the right unicode character for default emojis, like this: `1οΈβ£`, or the right name for custom emojis. For instance, if your custom emoji is called `<:BotGhostWave:1048697598355189850>`, only add `BotGhostWave`.
**Step 2.** If you're still experiencing issues, join our [support server](https://discord.gg/botghost) to ask for further help.
### **The module is not working at all**
If the module is not doing anything, try the following steps:
**Step 1.** Check if your bot is on [BotPanel](https://botpanel.gg/). If it is, enable the module there too and set it up from BotPanel, or remove the bot from BotPanel if you're not intending to use it.
**Step 2.** Reset your bot's token on the [Discord Developer Portal](https://discord.com/developers/). Paste your token into your bot's [settings](https://botghost.com/docs/general-settings-and-collaboration/settings#bot-token) and start the bot.
**Step 3.** If you're still experiencing issues, join our [support server](https://discord.gg/botghost) to ask for further help.
---
## Watch the Tutorial
[YouTube video](https://www.youtube.com/watch?v=LU1lzWS1GTw)
---
## Settings
### Setup
The Reaction Role module has different configurations which change how roles are given or removed.
#### **Message ID**
Here you will need to enter the [message ID](https://support.discord.com/hc/en-us/articles/206346498-Where-can-I-find-my-User-Server-Message-ID) of the message you wish to use as the reaction roles panel.
#### **Reaction Emoji**
Here you can enter the emoji that is used on the reaction message, this can be discord emojis or custom emojis.
#### **Roles To Add**
Here you can select the roles to add to the user when they react to the message.
#### **Roles To Remove**
Here you can select some roles the bot should remove when the user reacts to the message.
#### **Restrict To One Reaction**
Here you can enable/disable the option to restrict a user's reaction to one reaction at a time.
#### **Remove Reaction**
Here you can enable/disable the option for the bot to remove the user's reaction once they have been given the role.
#### **Blacklisted Roles**
Here you can select some roles that are unable to use this reaction message. Users with this role will not be able to react to the message as the bot will instantly delete it.
> **Note:** To save the reaction roles settings, you need to click "Add" in the bottom-right corner of the settings. This will reset the fields so you can set up another reaction role.
### Active Reaction Roles
Once you have added a reaction role from the settings above, a new area will appear that contains all the active reaction roles. You may edit / delete any of these active reaction roles on the bottom right of the image below.
> **Note:** To save the edits you made on the reaction role settings, you need to click "Edit" in the bottom-right corner of the settings.
---
## Events
In this area, you can view and modify the events of the Reaction Roles module. Below you may find some information on each event of the module.
**Reaction Roles #...**
Once you add a Reaction Role, the corresponding event will be created. This will handle the newly created Reaction Role.
---
> **Important:** It's advised that you do not edit the events unless you have a good understanding of BotGhost and its Event Builder. If you encounter any issues, you might want to reset the module for it to work again as intented.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Autoresponder
Source: https://botghost.com/docs/messages/autoresponder
Automatically send a reply to server messages, based on keywords!
.png)
The [Autoresponder](https://dashboard.botghost.com/dashboard/module/8de92a0c-1e68-4577-900d-26e2bda7b396/autoresponder) module will allow you to set keywords that will trigger a response from the bot. This can be from a simple "hello" to a whole sentence under the settings you select.
## Settings
### Autoresponder Setup
Customize the autoresponder in it's entirety and modify certain aspects or nothing at all. Click on the add button at the bottom right to add the autoresponder to the active list.
#### **Trigger Detection Type**
Define how the bot should handle the trigger keywords, whether the message contains, is equal to, starts with, or ends with a keyword.
#### **Trigger Keywords**
Set the keywords that will trigger the autoresponder. Currently, up to 100 keywords for each active autoresponder.
> **Note:** To add the keyword, you may press 'Enter' in your keyboard. Added keywords will appear on the right.
#### Message
Configure the message content and type, whether you wish to send an embed or plain text. All [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
#### **Channel Cooldown**
In this field you can input the channel cooldown in seconds between autoresponders.
#### **Mention Users**
With this selection you can choose whether you to mention the user triggering the keyword or not.
#### **Channel Selection - Type**
This section is where you can choose whether to enable all channels except those whitelisted, or the selected channels that can trigger the autoresponder.
#### **Channel Selection - Channels**
Based off [Channel Selection - Type](https://botghost.com/docs/messages/autoresponder#channel-selection-type), you can choose channels that will either block or allow the autoresponder to trigger.
#### **Role Selection - Type**
In this field you can choose whether to enable all roles except those whitelisted, or the selected roles.
#### **Role Selection - Roles**
Based off [Role Selection - Type](https://botghost.com/docs/messages/autoresponder#role-selection-type), you can choose roles that will either block or allow the autoresponder to trigger.
> **Note:** To save the autoresponder's settings, you need to click "Add" in the bottom-right corner of the settings. This will reset the fields so you can set up another autoresponder.
### Active Responders
These are the active autoresponders that will trigger based off many factors such as roles, channels and keywords. The current maximum is 100 for premium users. Once opened, at the bottom right you can edit / delete the auto responder.
> **Note:** To save the edits you made on the autoresponder's settings, you need to click "Edit" in the bottom-right corner of the settings.
*Potential active responders of the Autoresponder module*
---
## Events
In this area, you can view and modify the events of the Autoresponder module. Below you may find some information on each event of the module. All Autoresponders will be ordered by the number in which they were created.
*Potential Custom Events of the Autoresponder module*
**Autoresponder #...**
Once a autoresponder is added, it's corresponding event will be added as an event. These events control how the autoresponder functions based off the settings you chose and send the message to the channel.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intended.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Embed Builder
Source: https://botghost.com/docs/messages/embedbuilder
Create awesome and creative embeds and send them to your server instantly!
.png)
The Embed Builder makes it very simple and easy to send multiple embeds to server with no effort! Using the Embed Builder you can send, edit, and maximize customizability!
## General Settings
### Embed Selector
The Embed Selector lets you choose from all previous / running embeds that have been sent to all servers! Just select which embed you want to edit from the dropdown and get editing right away, taking away the hassle of having to find the message and copy the ID to edit it. Only embeds you've saved using the 'Save Embeds' button will appear here!
### Message Link
The Message Link feature lets you edit embeds without having to re-send the embed, this means all reactions and content underneath it will remain where they are and the message itself with just show as edited. You can only edit messages that are saved in your embed selector, if they aren't there then you wont be able to edit that message.
*If your link contains discordapp.com, remove the 'app'*
### Channel
The channel option is the place that your embed is going to be sent to, simply select the channel you want your embed to be sent to and it'll be sent there.
### Embed Content
The Embed Content is the non-embedded - plain - text above your embed. This text will appear as a normal message but will remain connected to your embed, meaning they're apart of the same message. If you want to ping channels, roles, or members above your embed and have them get the notification, you can use <#CHANNEL-ID> for channels, <@&ROLE-ID> for roles, and <@!USER-ID> for members of your server. *How to get a Channel, Role or User ID? Click* [*here*](https://btghst.info/copyID)*!*
## Author Settings
### Name
The name of your author, this will appear at the top of your embed, even above your title.
### URL
The URL that people will be redirected to after clicking the authors name!
.png)
### Image URL
The Image URL is the image that will appear next to the authors name. Perfect for adding extra decoration and detail to your embed!
**For images the links (URLs) should end with .jpg .jpeg .png or .gif*
## Body Settings
### Title
The title of your body, this will represent all of your body's content and will stick out much more than other text, being bold and bigger.
### Description
The description of your body can contain much more information compared to the title but comes in more of a smaller size. Better for containing more information than any other option.
.png)
*The Body's Description can contain up to 4096 characters!*
### URL
The URL of the body is the place where the person will be redirected to when they click the title of the body.
## Fields
### Field Name
The field name is the 'title' of the field, except it doesn't act like all other titles. Your field names won't appear bigger than the field content in any way other than being bold, it'll just be above the content.
### Field Content
Your field content is all of the writing you want to appear below the field name, used to organize your fields with information underneath the field name.
### **Inline Field**
The Inline Field option will make fields arranged in a line form from left to right. You must have at least two fields with both Inline's toggled on for them to appear in a line. You can't have more than three fields Inlined with each other.
> **Important:** Inlines only show up on desktop!
## Images
### Image URL
The Image URL is the image that will appear at the bottom of the embed. This will show as a bigger image compared to the Thumbnail URL!
**For images the links (URLs) should end with .jpg .jpeg .png or .gif*
### Thumbnail URL
The Thumbnail URL is a image that will appear in the top right of the embed, this image will be in a smaller form than the Image URL but can appear bigger if the image has the right dimensions.
**For images the links (URLs) should end with .jpg .jpeg .png or .gif*
## Footer
### Text
The content of your footer, this will display at the bottom of your embed with very tiny, yet, noticeable text.
### Image URL
An image appearing to the left of your footer, similar to the author image but appears at the bottom near the footer.
**For images the links (URLs) should end with .jpg .jpeg .png or .gif*
> **Note:** Experiencing issues with the embed builder module or do you just need help? Checkout our support options [**here**](https://app.gitbook.com/s/-Lm_hW5MApY3J0lRhi0M/support)**!**
---
# Sticky Messages
Source: https://botghost.com/docs/messages/sticky-messages
Highlight important server messages at the bottom of the channel and keep your members updated.
.png)
> **Warning:** This module requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The [Sticky Messages](https://dashboard.botghost.com/dashboard/module/1acdd900-f547-481f-b1ef-725384b5884b/stickymessages) module allows you to send a message to a channel of your choice after a number of messages. This is great for highlighting important information or adding frequent reminders!
## Settings
### Setup
Here you can configure all the settings for the sticky messages module from changing the actual message, the frequency and more.
#### **Manager Role**
In this dropdown, you can select a role to allow users with this role to add / remove messages set with the module.
#### **Default Sticky Message**
This field is where you can change the default message that's sent to the channel after a number of messages as defined in the module settings below.
#### **Repost Message Count**
In this field you can change how frequent the message is sent. The number that's input is the basis for how many messages until the sticky message is sent. The default value for this is set to 10 and the field only accepts integers.
#### **Show Author**
This toggle allows you to enable / disable the ability to show the sticky message author in the embed message. The author is the user who originally posted the sticky message and only works in embeds.
#### **Add Reactions**
With this toggle, you can enable / disable the option for the bot to add a specified or default reaction to the sticky message when it is sent.
#### **Reaction Emoji**
In this section, you can set the emoji that is added as a reaction to the sticky message, if the above toggle is enabled. You can use both custom emoji's or basic discord emoji's for this. You can find a guide [here](https://botghost.com/docs/getting-started/standard-practices/advanced-practices#how-can-i-get-a-custom-emojis-id) on how to get the ID and name of a custom emoji.
---
## Commands
This area is where you can enable / disable the sticky post command as well as configure the command.
**/sticky-post**
When triggered this command will allow you to send a new sticky message to any channel you select from the command option.
.png)
## Events
In this area, you can view and modify the commands of the Sticky Messages module. Below you may find some information on each command of the module.
**Sticky Messages (Poster)**
This event will count the messages in the channels and send the designated sticky message when it reaches the defined message count as set in the settings above.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intended.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Polls
Source: https://botghost.com/docs/messages/polls
Post questions for your server members to vote about!
.png)
> **Warning:** This module requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
Using the [Polls](https://dashboard.botghost.com/dashboard/module/a1cb21af-b61d-44a6-86b7-5180920fd49d/polls) module you can create and deploy fun and interactive polls for your server members to vote on that are highly customizable.
## Settings
### Permission Settings
Customize the permissions for the polls. Ranging from editing role and channel permissions and more.
.png)
#### Manager Roles
This option will allow you to select some roles to grant manager permissions to using the role dropdown, users with these roles will be able to run the poll-management commands of the module.
#### Whitelisted Channels
This option will allow you to select some channels to restrict the modules usage. When at least one channel is added, users with the manager roles are the only ones who can post polls in that channel.
#### Blacklisted Roles
In this field you can select some roles to block by using the role dropdown. Any user who has the blacklisted role will not be able to vote in a poll.
#### Single Choice
This toggle will allow you to enable / disable single choice restrictions for polls. When enabled, users will only be able to choose a single option of the poll. This restriction only applies to one poll at a time. By default this is active.
### Poll Settings
Configure the message and the contents of the poll in this section.
.png)
#### Embed Title
This field allows you to define the title of the poll messages that get sent. The `{poll.question}` [variable](https://botghost.com/docs/custom-commands-and-events/variables) can be used to return the configured question.
#### Embed Footer
In this field you can edit the [embed](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/embed-reply) footer for poll messages.
#### Embed Color
With this field you can change the color of the poll embeds that get sent.
#### Show Posters Name
Using this toggle you can choose whether to show the name of the user who posted the poll message. By default this is active.
#### Choice Reactions
This section is where you can edit the poll emojis. They are in exact order as the questions are presented so it is not recommended to edit this. You can input the [Emoji ID](https://botghost.com/docs/getting-started/standard-practices/advanced-practices#how-can-i-get-a-custom-emojis-id) for custom emojis, or [unicode](https://emojipedia.org/) emojis supported in Discord.
---
## Commands
In this area, you can view and modify the commands of the Polls module. Below you may find some information on each command of the module.
.png)
**/poll-create**
This command allows a user to create a poll with a number of questions.
**/poll-end**
This command is meant to end a active poll and can only be used by manager roles / admins.
## Events
In this area, you can view and modify the events of the Polls module. Below you may find some information on each event of the module.
.png)
**Polls Handler**
The Polls Handler event is the main event that tracks user reactions and counts the total poll votes for any active poll ongoing.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intended.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Global Chat
Source: https://botghost.com/docs/messages/global-chat
Cross-post server messages across multiple text-channels!
.png)
> **Warning:** This module requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The [Global Chat](https://dashboard.botghost.com/dashboard/module/41821e81-015f-463d-9999-c5d89b064608/globalchat) module will allow users to connect multiple text channels, even in different servers!
## Settings
### **Global Chat Settings**
These are the settings that allow you to customize the [Global Chat](https://dashboard.botghost.com/dashboard/module/41821e81-015f-463d-9999-c5d89b064608/globalchat) module, this will allow you to configure permissions, cooldowns and more.
#### **Admin Role**
This selection will allow you to setup an admin role. Users with these roles will be able to run admin commands paired with the module. They will be able to reset settings, blacklist users and globally delete messages.
#### **Manager Role**
This selection will allow you to setup a manager role. Users with the roles selected will be able to manage global chat channels.
#### **Manager Permissions**
This setting will allow you to toggle the manager permission and when enabled, users with the manage guild permission can moderate and configure global chat channels.
#### **Message Type**
In this field you can change the type of message that is sent to the other channels, by default this is set to webhook.
#### **Message Cooldown**
This setting will allow you to choose a rate limit in seconds users can send messages with. There is a minimum of 5 seconds.
#### **Forward Attachment**
This toggle will allow you to enable whether or not to include attached images, videos, or GIFs in the message sent to the global chat channels.
#### **Automatic Reaction**
If you add an emoji to this setting, the bot will automatically react with this emoji to messages sent to global chat channels. You can use the format [here](https://botghost.com/docs/getting-started/standard-practices/advanced-practices#how-can-i-get-a-custom-emojis-id) or a default discord emoji. A default emoji is applied, and if made blank then this setting is disabled.
### Message Settings
This section will allow you to customize the global chat messages. The settings are different depending on the type chosen from [Message Type](https://botghost.com/docs/messages/global-chat#message-type).
**Webhook Message**
Choosing this type will make the message sent be in the form of a webhook.
#### **Webhook Name**
This field configures the text that will appear in the username section of the webhook message. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used in this field.
#### **Webhook Icon**
This field configures an image that appears in the user icon section of the webhook message. You may use the {user_icon} [variable](https://botghost.com/docs/custom-commands-and-events/variables) / image link.
#### **Webhook Message**
In this field you can input the message that is sent to the global chat channels. All [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
**Bot Message**
Choosing this type will make the message be in the form of the bot's message.
#### Message
In this field you can input the message that is sent to the global chat channels. All [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
### Blacklist Settings
In this section, you can configure the blacklist settings such as blacklisted roles or blocked expressions.
#### **Blacklist Users**
This toggle if enabled, allows you give permissions to users with the manager role to be able to blacklist users using the `/globalchat-moderate` command.
#### **Blacklisted Roles**
This selection will allow you to choose some roles to restrict the global chat from. Users that have one of these roles can't chat in global-chat channels.
#### **Blocked Expressions**
In this section you can set some keywords / phrases to block when using global chat. Any global-chat message that contains any of those blocked expressions won't be sent.
---
## Commands
In this area, you can view and modify the commands of the Global Chat module. Below you may find some information on each command of the module.
**/globalchat-setup**
This command will allow you set a global chat channel for the entire system to use.
**/globalchat-disable**
This command will disable a current global chat channel so that messages sent in this channel won't be global anymore.
**/globalchat-moderate**
With this command you can punish users and moderate global chat channels.
## Events
In this area, you can view and modify the events of the Global Chat module. Below you may find some information on each event of the module.
**Global Chat**
This event handles the main core functions of the module and connects the global chat channels across different servers to each other.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intended.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Media Channels
Source: https://botghost.com/docs/messages/media-channels
Set up specific channels where only images can be sent!
.png)
> **Warning:** This module requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The [Media Channels](https://dashboard.botghost.com/dashboard/module/c3efeefb-654e-4893-8a16-ede851b62007/mediachannels) module will allow you to define channels where only images can be sent. Regular text messages will be deleted when sent into one of these channels.
## Settings
### Channel Setup
In this area, you can choose which channel you would like to become a media channel. Once these settings are configured, click the add button in the bottom right shown in the image below.
.png)
#### Channel Type
With this selection you can choose what type of channel will become a media channel. You may choose from either a regular text channel or a forum channel.
#### Text Channel
From this dropdown you can choose the channel from your server that you would like to become a media channel. Reminder that a media channel only allows for images to be sent so no message can be sent without an image.
#### Whitelisted Roles
In this selection you can pick roles that you would like whitelisted. Whitelisted roles will not be moderated by the module and users with these roles can send any content they wish.
> **Note:** To save the media channel's settings, you need to click "Add" in the bottom-right corner of the settings. This will reset the fields so you can set up another media channel.
### Active Media Channels
Once you have added a media channel from the settings above, a new area will appear that contains all the active media channels. Currently the maximum is 10 media channels. You may edit / delete any of these active media channels on the bottom right of the image below.
> **Note:** To save the edits you made on the media channel's settings, you need to click "Edit" in the bottom-right corner of the settings.
.png)
### Channel Settings
In this section you can configure the channel limits and moderation for your media channels.
.png)
#### Allow Text Content
This toggle will allow you to choose if you would like any message's content to contain text alongside an image.
#### Allow GIFs and Embeds
This toggle if enabled, will allow gifs and embeds to be sent to your media channels.
#### Block Duplicated Attachments
If this toggle is enabled it will block attachments that are sent more than once in a media channel.
#### Maximum Attachments and Embeds
With this field you can decide how many attachments or embeds can be sent before the message is deleted. The maximum is 100 and the minimum is 0. This field only accepts integers.
#### Channel Rate Limit
With this field you can enable a channel rate limit or in other terms, a slowmode in seconds, for your media channel. This field only accepts integers and the maximum is 3600 seconds. If this option is set to 0 that will disable it.
#### Allowed Media Type
Here you can choose the type of media you want to allow in your channel. If you are looking for customizing the possible file extensions that can be sent, choose the Advanced type.
**All Media Types**
This option will allow all media types to be sent.
**Images only**
This option will only allow images to be sent.
**Videos only**
This option will only allow videos to be sent.
**Advanced**
This option will allow you to input certain file types that are allowed in the channel.
.png)
#### Restrict File Types
This field allows you to specify the file types you want to be allowed in your media channel. Input the file extension in the box in the left and click the send key on your keyboard to add it to the list.
| Type | Details |
| --- | --- |
| All Media Types | This option will allow all media types to be sent. |
| Images only | This option will only allow images to be sent. |
| Videos only | This option will only allow videos to be sent. |
| Advanced | This option will allow you to input certain file types that are allowed in the channel. |
.png)
#### Enable Error Message
This toggle allows you to enable an error message when a message gets deleted inside a media channel.
#### Error Message
If enabled by the toggle above, you can customize the error message that will be sent if a user sends a message without attachments to your media channels. The message will appear for 10 seconds in the media channel, and mention the user. You can use all [variables](https://botghost.com/docs/custom-commands-and-events/variables) and the {reason} variable to get the deletion reason.
.png)
---
## Events
In this area, you can view and modify the events of the Media Channels module. Below you may find some information on each event of the module.
.png)
**MediaChannel Handler**
This is the main event for the module, this will handle the deletion of text messages sent into the media channel.
**MediaChannel Edit Handler**
This is the same as the other handler, except it will only look for messages that get edited to moderate.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intended.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# ChatGPT
Source: https://botghost.com/docs/ai/chatgpt
Interact with the OpenAI ChatGPT API using commands and auto-reply.
.png)
> **Warning:** This module requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The [ChatGPT](https://dashboard.botghost.com/dashboard/module/6e8c5384-e6f8-4282-8125-5ca9b53242c8/chatgpt) module allows users to hold conversations with their bot by using the OpenAI GPT 3.5 Turbo - GPT 4 software. Get it to tell you stories or ask some advanced questions.
## Common Issues
Experiencing issues with the module? Check out the common issues below. If your issue is not listed in this page, make sure your module is updated to the latest version. If you are still experiencing issues with the module, join our [support server](https://discord.gg/botghost) to ask for further help.
### AI commands return a 429 error
If a `429` error is returned when trying to use ChatGPT's AI commands, please try the steps below.
**Step 1.** The OpenAI (ChatGPT) 429 error means your free trial of the API key you're using has expired. To extend your quota and continue using OpenAI, you need to enter your billing details. You can do that in the [OpenAI Developer Platform](https://openai.com/api/).
**Step 2.** If you're still experiencing issues, join our [support server](https://discord.gg/botghost) to ask for further help, we'll do our best to solve your issue!
---
## Credentials Setup
**Step 1.** Click [here](https://platform.openai.com/account/api-keys) to get started. Log into OpenAI. If you haven't already, Open AI might ask you to verify your phone number before proceeding.
.png)
**Step 2.** Once you logged in, click on the "Create new secret key button.
.png)
**Step 3.** This will prompt you to make a key. Set Owned by "You" and give your app a name. Set the "Permissions" to all. Once done, click on "Create Secret Key"
.png)
**Step 4.** Copy your key. Make sure to not share it with anyone.
**Step 5.** Paste your key into the BotGhost Dashboard in [the OpenAI API Key field](https://botghost.com/docs/ai/chatgpt#openai-api-key).
---
## Settings
### General Settings
In this area, you can setup and customize the general settings for the commands and events of this module.
.png)
#### Embeds Color
In this setting you can select the color of the embeds in this module. When the bot responds using an embed, the embed will use this color.
#### OpenAI API Key
In this field is where you will need to enter your OpenAI API key to be able to use the module, you can follow this guide [here](https://platform.openai.com/docs/api-reference/authentication), to generate your own API key.
### Respond Command
In this area, you can setup and customize the settings of the response command.
.png)
#### Response Command
You can toggle this switch to either enable or disable the respond command. This toggle needs to be enabled in order to show the settings below.
#### Model
In this section you can select what model of ChatGPT you want to use. The selected Model will reply to the respond command.
#### Channel Restrictions - Blacklist Type
In this menu you can choose the criteria you want to follow to disable the command in certain channels. In the table below you can read what you can choose from.
| Type | Details |
| --- | --- |
| No Channel Restrictions | If this option is selected, no channel restrictions will be applied. |
| Disable for these channels | Based on the channels input, the module will not respond in this channel. |
| Enable these channels | Based on the channels input, the module will only respond in this channel |
#### Channel Restrictions - Select Channels
In this channel selector you can select the channels that you wish to allow or that you wish to disallow, depending on the selection you made in the [Blacklist Type](https://botghost.com/docs/ai/chatgpt#channel-restrictions-blacklist-type).
#### Role Restrictions - Blacklist Type
In this menu you can choose the criteria you want to follow to blacklist certain roles from using the command. In the table below you can read what you can choose from.
| Type | Details |
| --- | --- |
| No Role Restrictions | If this option is selected, no role restrictions will be applied. |
| Disable for these roles | Based on the role input, the module will not respond to this role. |
| Enable these roles | Based on the channels input, the module will only respond to this role. |
#### Role Restrictions - Select Roles
In this channel selector you can select the roles that you wish to allow or that you wish to disallow, depending on the selection you made in the [Blacklist Type](https://botghost.com/docs/ai/chatgpt#role-restrictions-blacklist-type).
#### Personality
In this field you can describe the personality the responses from the command should follow.
### Edit Text Command
In this area, you can setup and customize the settings of the text command.
.png)
#### Edit Text Command
You can toggle this switch to either enable or disable the text command. This toggle needs to be enabled in order to show the settings below.
#### Channel Restrictions - Blacklist Type
In this menu you can choose the criteria you want to follow to disable the command in certain channels. In the table below you can read what you can choose from.
| Type | Details |
| --- | --- |
| No Channel Restrictions | If this option is selected, no channel restrictions will be applied. |
| Disable for these channels | Based on the channels input, the module will not respond in this channel. |
| Enable these channels | Based on the channels input, the module will only respond in this channel |
#### Channel Restrictions - Select Channels
In this channel selector you can select the channels that you wish to allow or that you wish to disallow, depending on the selection you made in the [Blacklist Type](https://botghost.com/docs/ai/chatgpt#channel-restrictions-blacklist-type-1).
#### Role Restrictions - Blacklist Type
In this menu you can choose the criteria you want to follow to blacklist certain roles from using the command. In the table below you can read what you can choose from.
| Type | Details |
| --- | --- |
| No Role Restrictions | If this option is selected, no role restrictions will be applied. |
| Disable for these roles | Based on the role input, the module will not respond to this role. |
| Enable these roles | Based on the channels input, the module will only respond to this role. |
#### Role Restrictions - Select Roles
In this channel selector you can select the roles that you wish to allow or that you wish to disallow, depending on the selection you made in the [Blacklist Type](https://botghost.com/docs/ai/chatgpt#role-restrictions-blacklist-type-1).
### Chat Mode
In this section you can set up the chat mode for certain channels by adding them here. When chat mode is enabled, your bot will respond to messages in a channel.
.png)
#### Channel
In this menu you can select the channel where you want to enable the chat mode.
#### Model
In this section you can select what model of ChatGPT you want to use. The selected model will be used to reply to a message.
#### Reply to mentions only
This toggle can be enabled if you only want the bot to respond to @mentions, or disabled when you want the bot to respond to every message.
#### Response Type
In this section you can select whether you want the bot to respond with plain text or embeds.
#### Personality
In this field you can describe the personality the responses from the bot should follow.
### Role Restrictions - Blacklist Type
In this menu you can choose the criteria you want to follow to blacklist certain roles from using the module. In the table below you can read what you can choose from.
| Type | Details |
| --- | --- |
| No Role Restrictions | If this option is selected, no role restrictions will be applied. |
| Disable for these roles | Based on the role input, the module will not respond to this role. |
| Enable these roles | Based on the channels input, the module will only respond to this role. |
### Role Restrictions - Select Roles
In this channel selector you can select the roles that you wish to allow or that you wish to disallow, depending on the selection you made in the [Blacklist Type](https://botghost.com/docs/ai/chatgpt#role-restrictions-blacklist-type-2).
> **Note:** To save the channel's settings, you need to click "Add" in the bottom-right corner of the settings.
### Your Chat Mode Channels
Here you can edit your currently active chat modes. You can use the same settings as in the [Chat Mode](https://botghost.com/docs/ai/chatgpt#chat-mode) section. You are able to edit / delete chat modes with the buttons in the bottom right. You can add up to 100 unique chat modes.
.png)
---
## Commands
In this area, you can view and modify the commands of the ChatGPT module. Below you may find some information on each command of the module.
.png)
**/respond**
This command when triggered, will send an AI-generated chat response to whatever prompt you input.
**/edit-text**
This command when triggered will edit any text that is input.
#### [π] Add Command
By clicking the add command button you can create your own command for the ChatGPT module using all the module [variables](https://botghost.com/docs/custom-commands-and-events/variables) and settings.
## Events
In this area, you can view and modify the events of the ChatGPT module. Below you may find some information on each event of the module.
.png)
**ChatGPT**
This is the only event for the GPT module, it handles all the auto responses from the AI and more. You can edit the event to add new additions, fine tune responses and much more.
**[π] Add Event**
By clicking the add event button you can create your own event for the ChatGPT module using all the module [variables](https://botghost.com/docs/custom-commands-and-events/variables) and settings.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intended.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Image Generation
Source: https://botghost.com/docs/ai/image-generation
Generate images using the Dall-E API with a given prompt.
.png)
> **Warning:** This module requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The [Image Generation](https://dashboard.botghost.com/dashboard/module/fab3a781-88c6-4bd6-9db0-6c2f68b36931/imagegeneration) module allows users to trigger a command to send a request to the Dall-E API to generate a imaged based off of the prompts the user inputs while using the command.
## Credentials Setup
**Step 1.** Click [here](https://platform.openai.com/account/api-keys) to get started. Log into OpenAI. If you haven't already, Open AI might ask you to verify your phone number before proceeding.
.png)
**Step 2.** Once you logged in, click on the "Create new secret key button.
.png)
**Step 3.** This will prompt you to make a key. Set Owned by "You" and give your app a name. Set the "Permissions" to all. Once done, click on "Create Secret Key"
.png)
**Step 4.** Copy your key. Make sure to not share it with anyone.
**Step 5.** Paste your key into the BotGhost Dashboard in the [OpenAI API Key](https://botghost.com/docs/ai/image-generation#openai-api-key) field.
---
## Settings
In this area you can configure the main settings for the image generation module.
#### **OpenAI API Key**
In this field is where you will need to enter your OpenAI API key to be able to use the module, you can follow this guide [here](https://platform.openai.com/docs/api-reference/authentication), to generate your own API key.
#### **Generate Multiple Variations**
With this toggle you can enable / disable the option for the bot to generate multiple variations of the image, this will allow you to see multiple versions with one trigger.
#### Default Image Size
You can choose the image size from one of the following options:
- 1024x1024 Pixels
- 512x512 Pixels
- 256x256 Pixels
---
## Commands
In this area, you can view and modify the commands of the Image Generation module. Below you may find some information on each command of the module.
**/imagine**
Upon being triggered this command generates the image(s) based upon the prompts you submit, here you can edit the command to add additional features or expand on the base module.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intended.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Roblox Verification
Source: https://botghost.com/docs/game-integrations/roblox-verification
Setup a Roblox account verification system for your Discord server.
.png)
> **Warning:** **T**his module is only available to user with a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans).
The[Roblox Verification](https://dashboard.botghost.com/dashboard/module/ab8c166e-af43-46b7-8077-d92b4817b755/robloxverification) module allows users to connect their Roblox account to their in server Discord account, this is incredibly helpful for servers made for a Roblox group or if you want to setup some form of Roblox verification system for your Discord server.
## Settings
### Setup
The setup section of this page allows you to customize your experience with the module. From changing the trigger to adding a role to users upon successful verification and more.
*Roblox Verification Module Settings*
#### **Button or Command**
Here you can change the trigger method for the verification to either a button or command.
**Command**
Setting it to a command (default) will allow users to run the `/roblox-verify` command in the server to begin the verification.
**Button**
If the button type is selected then it will send a embed message with a button attached for users to click to start the verification.
#### Message
In this field is where you can edit the button message. You can switch it from an [embed](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/embed-reply) type to a [plain text](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/plain-text-reply) type using the toggle in the top right of the image.
.png)
#### Start Verification Button Text
This field is where you can edit the text of the button that users will click to start the verification.
.png)
#### Confirm Verification Button Text
This field is where you can edit the text of the button that users will click to confirm the verification.
.png)
#### **Grant Role**
Toggling this setting on and off will enable / disable the function of the bot giving a role upon successful verification. By default this option is enabled.
#### **Verified Role**
This setting will allow you to choose a role to be granted to the user upon successful verification. *This setting is only visible with* [Grant Role](https://botghost.com/docs/game-integrations/roblox-verification#grant-role) *enabled.*
#### **Change Nickname**
Toggling this setting on and off will enable / disable the function of the bot changing the users nickname upon successful verification. By default this option is enabled.
#### **Username or Display name**
This setting will allow you to choose what nickname the bot should change the users name to upon successful verification. You are able to choose between their Roblox display name or username. *This setting is only visible with* [Change Nickname](https://botghost.com/docs/game-integrations/roblox-verification#change-nickname) *enabled.*
#### Roblox Rankbind Groups
In this section you can paste the ID's of the Roblox groups you wish to attach with rankbinds. There is a limit of 5.
#### Roblox Gamepasses
In this section you can paste the ID's of the Roblox gamepasses that should be integrated with the module.
---
## Commands
In this area, you can view and modify the commands of the Roblox Verification module. Below you may find some information on each command of the module.
.png)
**/roblox-verify**
Depending on the [Button or Command](https://botghost.com/docs/game-integrations/roblox-verification#button-or-command) setting, this command will start the verification when the user runs it or it will post the button message in the channel the command was ran in for users to click to start the verification process. Note, for the button message to be sent, the command user must have the manage channel**s** permission.
**/roblox-profile**
When this command is ran, it will display the selected users Roblox profile. Additionally, if you leave the user option blank, it will display the command runners profile. This command has a 30 second cooldown period by default, this can only be changed in the command builder itself.
**/roblox-rank-binds-view**
When this command is run, it will display the rankbinds for your connected Roblox groups.
**/roblox-rank-binds-remove**
When this command is run, it will allow you to remove one of the rankbinds for your connected Roblox groups
**/roblox-rank-binds-add**
When this command is run, it will allow you to add to the rankbinds for your connected Roblox groups.
**/roblox-gamepass-view**
When this command is run, it will display the gamepass links for your connected Roblox groups.
**/roblox-gamepass-add**
When this command is run, it will allow you to add to the the gamepass links for your connected Roblox groups.
**/roblox-gamepass-remove**
When this command is run, it will allow you to remove one of the gamepass links for your connected Roblox groups.
**/roblox-update-user**
When this command is run, it will allow you to update a users profile to get up to date information and role connections.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intended.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Leveling
Source: https://botghost.com/docs/community-engagement/leveling
Setup an awesome leveling system for your server!
> **Note:** Some of the features of this module require a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function. You can however use the module with a free subscription.
The [Leveling](https://dashboard.botghost.com/dashboard/module/7c393ff6-f182-44d6-883c-bebd890a2594/leveling) module will allow you to setup a highly customizable leveling system for both text based interactions and voice interactions.
## Watch the Tutorial
[YouTube video](https://www.youtube.com/watch?v=5wLD7fdH3nE)
---
## Settings
### General Settings
In this area, you can setup and customize the general settings for the commands and events of this module.
.png)
#### Embeds Color
Change the embed color for the public embeds that are set alongside this module such as the leaderboard.
#### Max Level
This option will allow you to define a maximum level users can reach with the leveling module. Setting this option to **0** will disable it meaning there will be no level limit. If a limit is defined, users will not be able to surpass it.
#### Additional Required XP Per Level
This option will allow you to change the default XP increment upon level up. On level up, the required experience will increase by the set amount. For instance, if this setting is set to 50 and the previous level required 200 XP to level up, the next level will require 250 XP. Also, the set amount will correspond to the required experience to reach the level 1.
#### Clear Leveling Data on Leave
This option will allow you to toggle on/off data clearing on user leave, if enabled (default) once a user leaves the server it will automatically clear their activity data.
#### Send a Message on Level Up
This option will allow you to define how and if a level up message should be sent once a user levels up. By default this is set to disabled however, you can choose between:
| Selection | Action |
| --- | --- |
| **Disabled** | Does not send any message on level up. |
| **Current Channel** | Send the message to the channel the user leveled up in. |
| **Custom Channel** | Send the message to a selected channel. |
| **Direct Message** | Send a direct message to the user that leveled up. |
| **Current Channel & Direct Message** | Send a message to the channel the user leveled up in and send a direct message to the user that leveled up. |
| **Custom Channel & Direct Message** | Send the message to a selected channel and send a direct message to the user that leveled up. |
#### Custom Channel
In this dropdown you can pick the channel that you would like level up messages to be sent to. *This setting is only visible when a custom channel option has been selected in* [Send a Message on Level Up](https://botghost.com/docs/community-engagement/leveling#send-a-message-on-level-up)*.*
#### **Level Up Server Message**
Here you can edit the level up message that is sent to the server when a user levels up. All variables can be used. A list of additional variables you can use is listed in [Variables](https://botghost.com/docs/community-engagement/leveling#variables). *This setting is only visible when a server message option has been selected in* [Send a Message on Level Up](https://botghost.com/docs/community-engagement/leveling#send-a-message-on-level-up)*.*
#### **Level Up Direct Message**
Here you can edit the level up message that is sent to the user when they levels up. All variables can be used. A list of additional variables you can use is listed in [Variables](https://botghost.com/docs/community-engagement/leveling#variables). *This setting is only visible when a direct message option has been selected in* [Send a Message on Level Up](https://botghost.com/docs/community-engagement/leveling#send-a-message-on-level-up)*.*
### Level Card Settings
> **Warning:** Features in this section are limited to [Premium](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) users.
#### [π] Card Type
Here you can change the type of card you'll be using.
**Embed Message**
If this dropdown type is selected then the card will be sent as an embed message with the level card settings.
### Example Card
.png)
**Default Card**
If this dropdown type is selected then you can choose to enable and use [[π] Advanced Card Settings](https://botghost.com/docs/community-engagement/leveling#advanced-card-settings) as well as [[π] Main Color](https://botghost.com/docs/community-engagement/leveling#main-color) and [[π] Filled Bar Color](https://botghost.com/docs/community-engagement/leveling#filled-bar-color)
**[π] Advanced Card Settings**
Enabling the Advanced Settings for the level card above will display a wide range of new advanced customization option for the level card. By default it is set to disabled. This is not compatible with the Embed Card option.
.png)
#### [π] Main Color
Here you can change the color of the text for the level card using Hexadecimal (HEX). This option is only available with Advanced Settings disabled.
#### [π] Circle Color
Here you can change the user icon outline color for the level card using Hexadecimal (HEX).
#### [π] Empty Bar Color
Here you can change the Fill Bar/Progress bar background for the level card using Hexadecimal (HEX).
#### [π] Filled Bar Color
Here you can change the Fill Bar/Progress bar color when its full for the level card using Hexadecimal (HEX).
#### [π] Level Text Color
Here you can change the level text color for the level card using Hexadecimal (HEX).
#### [π] Experience Progress Color
Here you can change the experience progress text color for the level card using Hexadecimal (HEX).
#### [π] Experience Percentage Color
Here you can change the experience percentage text color for the level card using Hexadecimal (HEX).
### Example Card
**Card - Plain Color as Background**
If this dropdown type is selected then you can choose to enable and use [[π] Advanced Card Settings](https://botghost.com/docs/community-engagement/leveling#advanced-card-settings) as well as [[π] Main Color](https://botghost.com/docs/community-engagement/leveling#main-color) and [[π] Filled Bar Color](https://botghost.com/docs/community-engagement/leveling#filled-bar-color).
#### [π] Background Color
Here you can change the background color for the level card as a plain color.
.png)
#### [π] Advanced Card Settings
Enabling the Advanced Settings for the level card above will display a wide range of new advanced customization option for the level card. By default it is set to disabled. This is not compatible with the Embed Card option.
.png)
#### [π] Circle Color
Here you can change the user icon outline color for the level card using Hexadecimal (HEX).
#### [π] Empty Bar Color
Here you can change the Fill Bar/Progress bar background for the level card using Hexadecimal (HEX).
#### [π] Filled Bar Color
Here you can change the Fill Bar/Progress bar color when its full for the level card using Hexadecimal (HEX).
#### [π] Level Text Color
Here you can change the level text color for the level card using Hexadecimal (HEX).
#### [π] Experience Progress Color
Here you can change the experience progress text color for the level card using Hexadecimal (HEX).
#### [π] Experience Percentage Color
Here you can change the experience percentage text color for the level card using Hexadecimal (HEX).
#### [π] Main Color
Here you can change the color of the text for the level card using Hexadecimal (HEX).
#### [π] Filled Bar Color
Here you can change the color of the filled (left) half of the progress bar on the card using Hexadecimal (HEX).
### Example Card
**Custom Image as Background**
If this dropdown type is selected then you can choose to enable and use [[π] Advanced Card Settings](https://botghost.com/docs/community-engagement/leveling#advanced-card-settings) as well as [[π] Main Color](https://botghost.com/docs/community-engagement/leveling#main-color) and [[π] Filled Bar Color](https://botghost.com/docs/community-engagement/leveling#filled-bar-color).
#### [π] Background Image
Choose the image you would like to use as the background and input it in the form of a URL. A default link is provided.
.png)
#### [π] Advanced Card Settings
Enabling the Advanced Settings for the level card above will display a wide range of new advanced customization option for the level card. By default it is set to disabled. This is not compatible with the Embed Card option.
.png)
#### [π] Circle Color
Here you can change the user icon outline color for the level card using Hexadecimal (HEX).
#### [π] Empty Bar Color
Here you can change the Fill Bar/Progress bar background for the level card using Hexadecimal (HEX).
#### [π] Filled Bar Color
Here you can change the Fill Bar/Progress bar color when its full for the level card using Hexadecimal (HEX).
#### [π] Level Text Color
Here you can change the level text color for the level card using Hexadecimal (HEX).
#### [π] Experience Progress Color
Here you can change the experience progress text color for the level card using Hexadecimal (HEX).
#### [π] Experience Percentage Color
Here you can change the experience percentage text color for the level card using Hexadecimal (HEX).
#### [π] Main Color
Here you can change the color of the text for the level card using Hexadecimal (HEX).
#### [π] Filled Bar Color
Here you can change the color of the filled (left) half of the progress bar on the card using Hexadecimal (HEX).
### Example Card
### Message XP Settings
View the settings for message function of the Leveling module and what they do.
.png)
#### Minimum XP per Message
Here you can set the minimum number of XP points that will be given per message in numerical format (1, 2, 3, 4, etc).
#### Maximum XP per Message
Here you can set the maximum number of XP points that will be given per message in numerical format (1, 2, 3, 4, etc).
#### Cooldown
Here you can define the cooldown period between messages receiving and not receiving XP points, messages sent during the specified cooldown period will not grant the user any experience points. This option takes a numerical format (1, 2, 3, 4, etc). Setting this to 0 will disable the cooldown completely.
### Voice XP Settings
> **Warning:** Features in this section are limited to [Premium](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) users.
The leveling module also comes with a voice channel XP function which allows users to accumulate XP points by partaking in a voice channel. By joining a voice channel, the bot will follow a precise formula, which is: `A * ( 1 - e ^ ( - B * secs in voice ) )`. This will give a different amount of XP basing on the time in seconds the user has remained in the voice channel.
However, the amount of XP given per second will slowly decrease, to prevent spam / AFK users (example if the user stays for a second he will get 1 point, 2 secs 2.9 points, 3 secs 3.7 and so on). It will be calculated once the user leaves the voice. A and B are parameters and can be edited using the 'Voice XP Settings'.
A is the max XP that can be gained in a session, and B the "speed" that value A will be reached. However, the recommended values are 1000 and 0,0005. The user does not need to talk to gain XP.
.png)
#### [π] Enable Voice XP
Enabling/Disabling this option will activate/deactivate the ability to use the voice XP function, respectively. The below settings will only be displayed when it is enabled and hidden when disabled. By default this option is disabled.
#### [π] Minimum Time in Voice
This setting allows you to configure the minimum time in seconds required to stay in the voice channel to gain at least 1 experience point. This is defined by seconds and takes a a numerical format (1, 2, 3, 4, etc).
#### [π] XP per Session *(A)*
This option will allow you to define the maximum amount of XP an user can gain by staying in a voice channel without leaving. The recommended value for this setting is 1000. Do not change this value if you don't know what you're doing, otherwise the XP may be given incorrectly.
#### [π] XP Gain Speed *(B)*
This option will allow you to define the bot will give users XP by staying in a voice channels. The recommended value for this setting is 0,0005. Do not change this value if you don't know what you're doing, otherwise the XP may be given incorrectly.
#### [π] Cooldown
Here you can define the cooldown period between receiving and not receiving XP points, during the specified cooldown period XP points will not be granted to the user. This option takes a numerical format (1, 2, 3, 4, etc). Setting this to 0 will disable the cooldown completely.
### Channels & Roles
Find out about the Channel & Role settings for the Leveling module.
.png)
#### Admin Role
Here you can select the role which will be considered admins. users with these roles will be able to edit other users' XP.
#### Channel Restrictions
Here you can set some channel restrictions choosing between None, Disable on all channels except or enable on all channels except. When enabled a new channel selection box will be displayed allowing you to input channels.
| Type | Details |
| --- | --- |
| No Channel Restrictions | If this option is selected, no channel restrictions will be applied. |
| Disable for these channels | Based on the channels input, they will not provide XP for users. |
| Enable these channels | Based on the channels input, only these channels grant XP, the rest won't. |
#### Role Restrictions
Here you can set some role restrictions choosing between None, Disable on all roles except or enable on all roles except. When enabled a new role selection box will be displayed allowing you to input roles.
| Type | Details |
| --- | --- |
| No role restrictions | If this option is selected, no role restrictions will be applied. |
| Disable for these roles | Based on the roles input, users who have these roles won't gain XP. |
| Enable these roles | Based on the roles input, only users with these roles gain XP, the rest won't. |
### Role Rewards
Find out information about the Role Rewards settings for the leveling module and how each function works.
.png)
#### Stack Rewards
This option will allow you to enable/disable reward stacking, when enabled the role rewards will stack.
#### Level
Input the level that this role reward shall be given at.
#### Role Reward
In this field you can select the role you would like to give.
> **Note:** To save the role reward's settings, you need to click "Add" in the bottom-right corner of the settings. This will reset the fields so you can set up another role reward.
### Your Role Rewards
Here you can manage your currently active role rewards. The same settings as [Role Rewards](https://botghost.com/docs/community-engagement/leveling#role-rewards) apply. You are able to edit / delete these rewards in the bottom right. A maximum of 100 role rewards is present.
> **Note:** To save the edits you made on the role reward's settings, you need to click "Edit" in the bottom-right corner of the settings.
.png)
### XP Boosters
Find out information about the XP Boost settings for the leveling module and how each function works.
#### Sum XP Boosts
Enabling this option will sum the XP boosts, where as disabling will disable it. This is set to disabled by default but can be toggled on and off as desired.
#### Randomize Boosts
Enabling this option will make it so instead of giving the set amount of xp boost to the user, the amount of experience received from the boost will go around 1% and the boost percentage assigned to the user.
#### Boost Percentage
This field modifies the percentage of XP that the user will receive when boosted.
#### Boost Type
**Channel Boost**
This type of boost will make an increase in XP in a certain channel.
#### Boosted Channel
In this selection you can choose the channel in which you want the boost to occur in.
.png)
#### Enable in Threads
If this toggle is enabled then the boost will also apply to the threads in the channel that the boost is occurring in.
.png)
**Role Boost**
This type of boost will affect users with a certain role.
#### Boosted Role
In this selection you can choose the role that the boost is affecting.
.png)
> **Note:** To save the boost's settings, you need to click "Add" in the bottom-right corner of the settings. This will reset the fields so you can set up another boost.
### Your Boosts
In this section is where the added boosts can be edited / deleted. There is a maximum of 100 boosts.
> **Note:** To save the edits you made on the boost's settings, you need to click "Edit" in the bottom-right corner of the settings.
.png)
---
## Variables
The leveling module collects leveling data and sorts out levels for each user and their XP. These variables below can be used to reference that data in this module.
> **Note:** These Variables can only be used in this module.
| Variable | Details |
| --- | --- |
| `{level}` | Displays the user's current level |
| `{xp}` | Displays the user's experience |
| `{required_xp}` | Displays the required experience to reach the next level |
| `{rank}` | Displays the rank of the user |
---
## Commands
The leveling module has a wide range of commands, you can find these below.
.png)
**/rank**
This command will allow users to display their current XP progress as well as others.
.png)
**/level leaderboard**
This command will display the server's level leaderboard when triggered. Use the buttons below to navigate through the leaderboard. The button in the middle allows you to go to a specific position in the leaderboard. Change the value of the users-per-page option to show a different amount of users per page (defaults to 10).
.png)
**/level edit-xp**
This is one of the admin commands for the module, users with the defined admin roles will be able to use this command to edit a user's XP points. You can add / set / remove a custom amount of levels / XP.
.png)
**/level reset-leaderboard**
This is one of the admin commands for the module, users with the defined admin roles will be able to use this command to reset the servers level leaderboard.
.png)
## Events
The leveling module has a wide range of events, you can find these below.
.png)
**Level Up**
This event will track when a user levels up and send the level up message to the appropriate destination.
**Message Experience**
This event will track user messages and add XP points to a users total for each message, following the defined settings in the module.
**Voice Experience - Join**
This event will track when a user joins a voice channel and start giving them XP points if you have the [Voice XP Settings](https://botghost.com/docs/community-engagement/leveling#voice-xp-settings) function enabled.
**Voice Experience - Leave**
This event will track when a user leaves a voice channel and stop giving the user XP points, the voice events will only work if you have enabled the [Voice XP Settings](https://botghost.com/docs/community-engagement/leveling#voice-xp-settings) function above.
**Clear on Leave**
If you have the clear on Leave option enabled, this event will trigger when a user leaves the server and clear their Leveling data, this includes XP, Levels, etc.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intented.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Temp Voice Channels
Source: https://botghost.com/docs/community-engagement/temp-voice-channels
Create temporary voice channels using hubs and personalised settings!
.png)
> **Warning:** This module requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The [Temp Voice Channels](https://dashboard.botghost.com/dashboard/module/ca3589f7-3846-4f70-8863-7f601cb29e9f/tempvoicechannels) module allows you to setup an advanced temporary voice channels system in your guild. This module allows users to connect to a main voice channel to create their own cool private temporary channels.
## Settings
### Main Settings
Find out about what customization options are available with the module and what each of them does.
.png)
#### Channel Creator Hub
This setting allows you to define the 'hub' voice channel users will connect to, to create their own temp voice channels. Only one can be selected.
#### Channel Category
This setting allows you to define what category the new temp voice channels will be created in.
#### Role Permission Criteria
This setting will allow you to choose to disable / enable the module functionalities for users with the defined roles. By default this is set to 'No Restrictions'.
| Type | Details |
| --- | --- |
| No Restrictions | All server roles can create temp voice channels. |
| Enabled for these roles only | Users with only these certain roles selected will be able to create temp voice channels. |
| Disabled for these roles | Users with all other roles besides the ones selected will be able to create temp voice channels. |
### Channel Settings
Here you can customize the channels settings for the newly created voice channels.
#### Created Channel Name
Here you can define the name which the channels uses when it is created. [Variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used.
#### Channel Lock
Here you can choose whether newly created channels should be locked or unlocked by default. Locked channels only allow whitelisted users to join! The default option is set to unlocked.
| Type | Details |
| --- | --- |
| Follow Server's Permissions | The channel will follow your server's permissions. |
| Unlocked | No restrictions will be applied and users can join. |
| Locked | The channel is restricted and not all users can join unless they are whitelisted. |
#### Owner Permissions
This toggle option will allow you to disable / enable the creator of the voice channel having access to the Manage Channel, Priority Speaker, Move Members and Manage Permissions permission flags to the voice channel they created.
#### Mention Creator
This toggle option when enabled, will ping the voice channel creator once the channel is made along with sending the information.
#### Deletion Wait Time
Here you can define the amount of seconds the module deletes a temporary channel in after all members have left. The maximum is 3600 seconds and only integers are allowed as an input.
#### User Limit
Here you can select the maximum number of users allowed to join your channel. When the member count in the channel reaches this defined number, no one else will be able to join unless someone else leaves. The maximum is 99 users and only integers are allowed as an input.
#### Channel Bitrate
In this field you can input a number of seconds that discord should handle the voice channels with. Maximum is 96000 and the minimum is 8000. Only integers can be used.
---
## Commands
In this area, you can view and modify the commands of the Temp Voice Channels module. Below you may find some information on each command of the module.
> **Note:** All Commands that come with this module must be used in the created voice channels chat.
.png)
**/tempvc-whitelist**
This command will allow voice channel owners to whitelist a user, once whitelisted they will be able to join their locked voice channel.
**/tempvc-blacklist**
This command will allow voice channel owners to blacklist a user, once blacklisted they will not be able to join their voice channel.
**/tempvc-lock**
This command will allow voice channel owners to lock their voice channel. Once locked, only whitelisted users will be able to join it.
**/tempvc-unlock**
This command will allow voice channel owners to unlocked their voice channel. Once unlocked, all users will be able to join it.
**/tempvc-kick**
This command will allow voice channel owners to kick users from their voice channel.
## Events
In this area, you can view and modify the events of the Temp Voice Channels module. Below you may find some information on each event of the module.
**VC Join Handler**
This event handles the system that procs when users join a temp voice channel.
**VC Leave Handler**
This event manages deleting the channel after the specified period once all users have left.
**VC Switch - Join Handler**
This event tracks users swapping voice channels to adjust the total member count for the channel they joined.
**VC Switch - Leave Handler**
This event tracks users swapping voice channels to adjust the total member count for the channel they left.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intented.
>
> Additionally, a copy of the edited events will be created if you update the module.
---
# Suggestions
Source: https://botghost.com/docs/community-engagement/suggestions
Let your members make your server even better by posting suggestions!
.png)
> **Warning:** This module requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
With the [Suggestions](https://dashboard.botghost.com/dashboard/module/17d130ca-5b40-4554-b11d-ffd889673915/suggestions) module you can setup a system that allows users to provide suggestions for your server or other things to suggest on of your choice. Users can create suggestions, vote or downvote on other suggestions, and more. Your server's moderators may approve or deny your server's suggestions.
## Settings
### Submit a Suggestion
In this area, you can customize how your bots' users will submit their suggestions.
.png)
*Submit a suggestion portion of the suggestions module*
#### **Title**
Here you may choose whether you want your members to be able to, unable to, or have to add a title. The default value for this is set to Disabled.
| Value | Details |
| --- | --- |
| Disabled | Users cannot add a title for their suggestion. |
| Enabled | Users can optionally add a title for their suggestion. |
| Enabled and Required | Users are required to add a title for their suggestion. |
#### **Image**
Here you may choose whether you want your members to be able to, unable to, or have to add an image. The default value for this is set to Disabled.
| Value | Details |
| --- | --- |
| Disabled | Users cannot upload an image for their suggestion. |
| Enabled | Users can optionally upload an image for their suggestion. |
| Enabled and Required | Users are required to upload an image for their suggestion. |
#### **Title minimum length**
Here you may choose how long the title of the suggestion may be at its shortest. The default value for this is set to 10. *This setting only shows if* [Title](https://botghost.com/docs/community-engagement/suggestions#title) *is enabled (and required).*
#### **Title maximum length**
Here you may choose how long the title of the suggestion may be at its longest. The default value for this is set to 200. *This setting only shows if* [Title](https://botghost.com/docs/community-engagement/suggestions#title) *is enabled (and required).*
#### **Description minimum length**
Here you may choose how long the description of the suggestion may be at its shortest. The default value for this is set to 10.
#### **Description maximum length**
Here you may choose how long the description of the suggestion may be at its longest. The default value for this is set to 4000.
### Suggestions Management
In this area, you can customize who can manage your server's suggestions and how.
*Suggestions Management portion of the suggestions module*
#### **Manager Roles**
Here you may choose the roles users must have in order to approve and deny suggestions.
#### **Enable Logging**
Here you may toggle whether logs about suggestions are sent to a specific channel.
#### **Logging Channel**
Here you may choose the channel where logs for the module will be sent. *This setting only shows if* [Enable Logging](https://botghost.com/docs/community-engagement/suggestions#enable-logging) *is enabled.*
#### **Send all suggestions to a channel for approval**
Here you may toggle whether suggestions are sent to a private channel where they must be approved or denied.
#### **Approval Channel**
Here you may choose the channel where suggestions for approval will be sent. *This setting only shows if* [Send all suggestions to a channel for approval](https://botghost.com/docs/community-engagement/suggestions#send-all-suggestions-to-a-channel-for-approval) *is enabled.*
#### **Hide the user who approved or denied the suggestion**
Here you may toggle whether the user who approved or denied a suggestion is made public.
### Suggestion
In this area, you can customize how the suggestion appears in the voting channel.
.png)
#### **Suggestions Channel**
Here you may choose the channel where suggestions will be posted and voted on. This is required for the system to function correctly.
#### **Create Thread**
Here you may toggle whether a thread for discussion will be created and attached to the suggestion/voting message in the suggestions channel.
#### **Lock Thread on Verdict**
Here you may toggle whether the thread attached to the suggestion will lock when a suggestion is approved or denied. *This setting only shows if* [Create Thread](https://botghost.com/docs/community-engagement/suggestions#create-thread) *is enabled.*
#### **Neutral Option**
Here you may toggle whether a reaction for indecisiveness is added to the suggestion / voting message in the suggestions channel.
#### **Upvote Emoji**
Here you may choose the first emoji on the suggestion / voting message, which members can use to show their approval of the suggestion.
#### **Neutral Emoji**
Here you may choose the next emoji on the suggestion/voting message, which members can use to show they are indecisive on the suggestion. *This setting only shows if* [Neutral Option](https://botghost.com/docs/community-engagement/suggestions#neutral-option) *is enabled.*
#### **Downvote Emoji**
Here you may choose the last emoji on the suggestion / voting message, which members can use to show their disapproval of the suggestion.
#### **Suggestion Embed color**
Here you may choose the color of the embed in the suggestion/voting message.
#### **Anonymous Suggestions**
Here you may toggle whether the author of a suggestion is hidden from the public.
#### **Message Suggestion Author for updates**
Here you may toggle whether the author of a suggestion receives a direct message when there is an update on their suggestion.
### Automation
In this area, you can customize how a suggestion can automatically be approved or denied based on its votes.
.png)
*Automation portion of the Suggestions module*
#### Auto Approve Type
Use this feature to automatically approve a suggestion by a certain type of condition.
**Disabled**
Suggestions will not be automatically approved on any condition.
**Number of Upvotes**
The number of upvotes needed for suggestions to be automatically approved.
.png)
#### Auto Approve - Number of upvotes
This setting allows you to set the minimum number of upvotes required to approve the suggestion automatically. You can only provide whole, positive numbers.
**Difference between upvotes and downvotes**
Difference between upvotes and downvotes needed for automatic approval of the suggestion.
.png)
#### Auto Approve - Difference
This setting allows you to set the minimum difference between the upvotes and the downvotes required to approve the suggestion automatically. This means that, if you set this setting to 10, there must be 10 upvotes more than downvotes in order for the suggestion to be approved. You can only provide whole, positive numbers.
**Percentage of upvotes**
Percentage of upvotes required for automatic approval of the suggestion. A minimum of upvotes required for the percentage to be checked is required. If there aren't enough upvotes, the suggestion won't be approved, even if the required percentage is reached.
.png)
#### Auto Approve - Percentage of upvotes
This setting allows you to set the minimum percentage of upvotes the suggestion must have in order for it to be approved automatically. You can only provide whole, positive numbers.
#### Auto Approve - Minimum upvotes
This setting allows you to set the minimum number of upvotes required for the filter above to work.
#### Auto Deny Type
Use this feature to automatically deny a suggestion by a certain type of condition.
**Disabled**
Suggestions will not be automatically denied on any condition.
**Number of downvotes**
The number of downvotes needed for suggestions to be automatically denied.
.png)
#### Auto Deny - Number of downvotes
This setting allows you to set the minimum number of downvotes required to deny the suggestion automatically. You can only provide whole, positive numbers.
**Difference between downvotes and upvotes**
Difference between the downvotes and upvotes needed for automatic denial of the suggestion.
.png)
#### Auto Deny - Difference
This setting allows you to set the minimum difference between the downvotes and the upvotes required to deny the suggestion automatically. This means that, if you set this setting to 10, there must be 10 downvotes more than upvotes in order for the suggestion to be denied. You can only provide whole, positive numbers.
**Percentage of downvotes**
Percentage of downvotes required for automatic denial of the suggestion. A minimum of downvotes required for the percentage to be checked is required. If there aren't enough downvotes, the suggestion won't be rejected, even if the required percentage is reached.
.png)
#### Auto Deny - Percentage of downvotes
This setting allows you to set the minimum percentage of downvotes the suggestion must have in order for it to be denied automatically. You can only provide whole, positive numbers.
#### Auto Deny - Minimum downvotes
This setting allows you to set the minimum number of downvotes required for the filter above to work.
### Restrictions
In this area, you can customize who is restricted from posting suggestions and who is not.
#### **Role Restrictions**
| Blacklist Type | Description |
| --- | --- |
| No Role Restrictions | All users of your server may create suggestions. |
| Disable for these roles... | Set this blacklist type if you want everyone to be able to create suggestions, except users with at least one of the roles provided in the menu below. |
| Enable for these roles... | Set this blacklist type if you want that only users with at least one of the roles provided in the menu below can post suggestions. |
## Commands
Here you can find the commands for the suggestions system and modify them to your liking.
.png)
*Commands of the suggestions module*
**/suggest**
This command is what your users can run to make and post suggestions.
**/suggestion-view**
This command will allow you to view the information of a suggestion by its suggestion ID or message ID in the suggestions / voting channel.
**/suggestion-verdict**
This command will allow suggestion managers to approve or deny suggestions by their suggestion ID or message ID in the suggestions / voting channel.
## Events
Here you can find the events for the suggestions system and modify them to your liking.
.png)
*Events of the suggestions module*
**Reaction Add**
This event modifies the percentage of the votes and removes other reactions from the post when a reaction is added if it is in the suggestions/voting channel.
**Reaction Remove**
This event modifies the percentage of the votes when a reaction is removed if it is in the suggestions/voting channel.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intended.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Invite Tracker
Source: https://botghost.com/docs/community-engagement/invite-tracker
Motivate your server members with a count and leaderboard that keeps track of the people they invited!
.png)
> **Warning:** This module requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The [Invite Tracker](https://dashboard.botghost.com/dashboard/module/4cb902a6-dc80-439c-a650-6af2564e8ee6/invitetracker) module will enable members of your community to retrieve leaderboards and specific member statistics for individuals they invite.
## Settings
### Counter Settings
In this area is where you can configure specific messages sent when a new member is invited, roles, restrictions and more.
#### **Update Message Type**
This is where the type of message sent can be configured when a user is invited.
**No Message**
No Message will be sent in the server if this option is chosen.
**Direct Message**
If this option is selected, when a user is invited they will receive this message in their direct messages.
#### Update Message
Here is where you can configure the message being sent. You can use [variables](https://botghost.com/docs/custom-commands-and-events/variables) such as `{invites}` and `{inviter}` to show stats and more. You can also toggle the message type to choose between [embed](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/embed-reply) or a [plain text](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/plain-text-reply) response.
.png)
**Message to Channel**
If this selection is chosen, a message will be sent to a specific channel when a user is invited into the server.
#### Updates Channel
Here you can choose a text or announcement channel to serve as the channel that receives the invite messages.
.png)
#### Update Message
Here is where you can configure the message being sent. You can use [variables](https://botghost.com/docs/custom-commands-and-events/variables) such as `{invites}` and `{inviter}` to show stats and more. You can also toggle the message type to choose between [embed](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/embed-reply) or a [plain text](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/plain-text-reply) response.
.png)
#### **Ignored Roles**
In this field you can choose certain roles to be excluded from the invite counter. This means that if they invite a user it doesn't count towards their total invites.
#### **Filter Suspicious Invites**
If this toggle is enabled, when a user with a relatively low account age is invited, it will not count towards the inviter's total invites.
#### **Minimal Account Age**
Configure the account age in days to trigger the [Filter Suspicious Invites](https://botghost.com/docs/community-engagement/invite-tracker#filter-suspicious-invites) filter. Only integers can be accepted in this field. *This setting is only visible when* [Filter Suspicious Invites](https://botghost.com/docs/community-engagement/invite-tracker#filter-suspicious-invites) *is enabled.*
#### **Hide Left Inviters**
If this toggle is enabled, users who left the server will not show up on the leaderboard when `/invite-leaderboard` is used.
#### **Register Leaves**
When this toggle is enabled, if a user that got invited by someone in the server leaves, the inviter's total invite count will decrease by one.
### Role Rewards
Here is how to setup roles to be given to members when they meet a certain amount of people invited. You can have up to 10 rewards.
.png)
#### **Required Invite Count**
This field input is how many people need to be invited by a member for the role in this reward to be given.
#### **Role Reward**
The role to be given when the required invite count is met or gone beyond. Only 1 role can be selected per reward.
> **Note:** To save the reward's settings, you need to click "Add" in the bottom-right corner of the settings. This will reset the fields so you can set up another reward.
### Active Rewards
This area is where you can manage your active role rewards and their settings.
> **Note:** To save the edits you made on the reward's settings, you need to click "Edit" in the bottom-right corner of the settings.
.png)
---
## Commands
In this area, you can view and modify the commands of the Invite Tracker module. Below you may find some information on each command of the module.
.png)
**/invites**
This command allows you to check the number of invites of anyone in the server.
**/invites-leaderboard**
This command displays the leaderboard of members who invited the most users to your server. You can browse through the leaderboard by using the buttons at the bottom of the leaderboard message.
## Events
In this area, you can view and modify the events of the Invite Tracker module. Below you may find some information on each event of the module.
**Invites Handler**
This event edits the invite count for when a user gets invited to your server.
**Leaves Handler**
This event tracks when a user is removed or leaves the server and adjusts the invite count accordingly.
**Reward #...**
When a active reward is made from [Role Rewards](https://botghost.com/docs/community-engagement/invite-tracker#role-rewards), the corresponding event will be created and automatically gives a user a role dependent on the reward settings.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intended.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Starboard
Source: https://botghost.com/docs/community-engagement/starboard
Your server's best messages, picked by the stars members give them.
Starboard puts your server's best messages on a board for everyone to see. Members react to a message with a star, and once it has enough stars, your bot posts a card of it in your board channel. The card shows the message, who wrote it and where, and its star count stays up to date as stars come and go. One complete board is free for every bot, and Premium gives you up to five.
The [Discord starboard bot](https://botghost.com/discord-starboard-bot) page gives a shorter tour of what Starboard can do.

*A starred message and its card on the board*
## Before you start
You need:
- Your bot in your Discord server. See [Invite Your Bot](https://botghost.com/docs/getting-started/invite-your-bot) if it isn't yet.
- A channel for the board, like `#starboard`. Members should be able to read it but not write in it.
- In the board channel, your bot needs **View Channel**, **Send Messages** and **Embed Links**.
- In the channels people star messages in, your bot needs **View Channel** and **Read Message History**, so it can count who starred a message.
## Set up your board
### Step 1: Turn on Starboard
Open **Starboard** in your bot's dashboard and press **Enable** at the top right.

- **A** **Enable** turns Starboard on. It adds the `/starboard` command, the **Send to Starboard** and **Remove from Starboard** right click commands, and the events Starboard needs.
- **B** The server you're setting up. A board's channel and roles belong to one server, so pick the server first. A setting this server has its own value for is tagged with the server's name and icon.
- **C** **Reset to Default** puts the settings back to how a new Starboard starts.
- **D** **Docs** opens this page.
### Step 2: Pick the board channel
On the **Boards** tab, pick the channel under **Post starred messages in**. Check the star emoji and how many stars a message needs. See [Where your board posts](https://botghost.com/docs/community-engagement/starboard#where-your-board-posts) below.
### Step 3: Save
A bar pops up at the bottom of the page. Press **Save Changes**.

### Step 4: Star a message
Ask members to star a message in your server. Once it has enough stars, its card appears on the board.

- **A** What to do next. Once everything is done, it says your starboard is ready.
- **B** The steps, ticked off as you do them. Press one to go to it.
> **Note:** A star from whoever wrote the message doesn't count unless you turn on **Count self-stars**, and stars from bots never count. To test your board, ask other members to star a message.
## Your boards
Each board is a channel where messages with enough stars are posted, with its own emoji, rules and card. One board is free. With [Premium](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) you can have up to five, like a hall of fame for the very best, a meme board and an art board.

- **A** The board you're editing, with its channel and the stars it needs. The **Boards**, **What counts** and **The card** tabs are for this board.
- **B** Another board. Press it to edit it.
- **C** **Add a board** (Premium).
- **D** With your first board open, the switch turns it on or off. With another board open, **Remove** is here instead.
> **Note:** Each board needs its own emoji. Two boards on the same emoji can't both get it, and the page tells you if that happens.
## The tabs

- **A** **Boards**: the board's channel, emoji and stars needed, and autostar channels.
- **B** **What counts**: channels and roles left out, an age limit, whose stars count and what happens when stars are taken away.
- **C** **The card**: the card your bot posts, its colour and display tiers.
- **D** **Leaderboard**: star rewards and what members see with `/starboard`. These are shared by every board.
- **E** **Staff**: what staff see after **Send to Starboard** and **Remove from Starboard**.
The preview on the right shows a starred message and its card, with your settings.
## Where your board posts

- **A** **Post starred messages in**: the board channel. On a bot in several servers, pick each server in the menu at the top right to give it its own board.
- **B** **Star emoji**: the reaction that counts as a star. It can be one of your server's own emojis.
- **C** **Stars needed**: a message goes on the board when it has this many stars.
## Autostar channels
Autostar needs [Premium](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans).

- **A** **Autostar in**: your bot adds the board's emoji to every new message in these channels, so members only have to click it. Art, clips and meme channels work well. A message still needs the stars from members to reach the board, and the bot's own reaction never counts.
## What counts
### Channels and roles left out

- **A** **Channels left out**: messages in these channels can't be starred onto this board. Staff and private channels are a good idea, so nothing private ends up on a public board. Threads follow their channel. The board channel itself never counts.
- **B** **Roles left out**: messages by members with any of these roles stay off this board. Leave it empty to let everyone on.
> **Note:** Messages from age-restricted channels, and threads in them, never go on a board.
### Age limit and whose stars count

- **A** **Only messages from the last**: an age limit, like 1 week, so nobody digs up a year-old message. Leave it empty to let a message of any age on.
- **B** **Count self-stars**: off, a star on your own message doesn't count towards it.
- **C** **Let bots' messages on the board**: off, messages posted by bots and webhooks stay off it.
### When stars are taken away

- **A** **Its card**, when a message on the board drops under the stars needed:
- **Comes off the board**: the card is taken down. It goes back on if the message gets enough stars again.
- **Stays, with the new count**: the card stays up and shows the new number of stars.
- **B** **Only take it off under**, with **Comes off the board**: the card only comes off once it has fewer stars than this. 0 takes it off as soon as it's under the stars needed. For example, with 3 stars needed and 2 here, a card stays up at 2 stars and comes off at 1, so it doesn't go on and off when one star comes and goes. A new message still needs the full stars needed to go on.
## The card

- **A** **Card**: the message your bot posts on the board. It is updated each time the stars change.
- **B** **Edit message** opens the full message builder, for the embed, its colour and its picture.
- **C** The variables you can use. Press one to copy it.
| Variable | What it shows |
| --- | --- |
| `{star_emoji}` | The board's emoji, or a display tier's |
| `{star_color}` | The board's card colour, or a display tier's |
| `{star_count}` | The message's stars |
| `{event_message_text}` | What the message says |
| `{event_message_reply}` | A line with the message it replies to, empty if it isn't a reply |
| `{event_message_author_name}` | Who wrote it |
| `{event_message_author_avatar}` | Their avatar |
| `{event_message_channel_mention}` | The channel it was posted in |
| `{event_message_image}` | Its first picture |
| `{event_message_url}` | A link to the message |
| `{star_credit}` | The **Starboard by BotGhost** line on free bots |
A message with several pictures shows up to four of them on the card, as one gallery: the card's other embeds hold the second to fourth pictures, and each one hides when there's no picture for it. A picture link pasted in the message isn't repeated in the card's text.
The card is posted and updated with the ordinary **Send or Edit a Message** block, so the same message variables work in your own cards. See [Events](https://botghost.com/docs/community-engagement/starboard#events).
> **Note:** On free bots, cards have a small **Starboard by BotGhost** line under them. Premium bots don't.
### How cards stand out

- **A** **Card colour**: the side of the card.
- **B** **Display tiers**: a message with lots of stars gets a bigger emoji and its own colour.
- **C** **D** **E** The three tiers. Each one starts at a number of stars and has its own emoji and colour. They start at 5, 10 and 25 stars. The highest tier a card has reached wins, and a tier at 0 stars is skipped.
Tiers show where the card uses `{star_emoji}` and `{star_color}`, as the card does when it starts.
### Edits
**Update cards when a message is edited** is on when Starboard starts: when someone edits a message that's on a board, its card shows the new text. Turn it off to keep what the message said when it reached the board. This is for every board.
When a starred message is deleted, its card comes off the board too. When someone deletes a card on the board, your bot forgets it.
## Leaderboard
### Star rewards
Star rewards need [Premium](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans).

- **A** **Give star rewards**: roles are given when a member's stars come in. Your bot can only give roles below its own.
- **B** **C** **D** The three steps: the stars a member needs in all, and the roles they get. A step with no role is skipped. Members keep a reward role once they have it.
A member's stars are all the stars on their messages that are on a board. They go down again when a card comes off.
### What members see

- **A** **/starboard top**: the members whose messages got the most stars.
- **B** **/starboard me**: their stars, their place and how often they've been on the board.
- **C** **/starboard hide**: when a member keeps their new messages off the board.
- **D** **/starboard hide** again: when they let them on again.
Every message is your bot's private reply, and each one lists the variables it can use.
## Staff
Staff with **Manage Messages** right click a message, then **Apps**:
- **Send to Starboard** puts the message on board 1 now, whatever its stars. Its card shows the stars the next time they change. A message staff took off goes back on.
- **Remove from Starboard** takes the message off every board and keeps it off, even with enough stars. Use it on the message or on its card on the board.

- **A** After **Send to Starboard**.
- **B** After **Remove from Starboard**.
Only the staff member sees them.
## Commands

- **A** **/starboard**, for everyone.
- **B** **Send to Starboard**: right click a message, **Apps**, **Send to Starboard**. For staff with **Manage Messages**.
- **C** **Remove from Starboard**: right click a message or its card, **Apps**, **Remove from Starboard**. Also for staff.
- **D** **Settings** opens the command in the builder, for its permissions, cooldown and blocks. The switch turns a command on or off.
| Command | What it does |
| --- | --- |
| `/starboard top` | The members whose messages got the most stars |
| `/starboard me` | Your stars, your place and how often you've been on the board |
| `/starboard hide` | Keep your new messages off the board, or let them on again. Cards already up stay up |
| **Send to Starboard** | Right click a message to put it on board 1 now, whatever its stars |
| **Remove from Starboard** | Right click a message, or its card, to take it off every board and keep it off |
## Events

Starboard is made of ordinary builder blocks. Press **Open in builder** to see how an event works, or to add your own blocks. Settings on this page are read by those blocks, so changing a setting never needs the events made again.
- **A** **Stars change on a message**: runs once when the reactions on a message settle. A message with enough stars goes on its board, and its card shows the new count.
- **B** **A starred message is edited**: updates the message's card on every board it's on.
- **C** **A starred message is deleted**: takes its cards down.
- **D** **A message is posted in an autostar channel** (Premium): adds a board's emoji to new messages in its autostar channels.
> **Tip:** You can build your own card the same way. The **Reaction Count Changed** event, **Message Updated** and message commands give you the message's details: `{event_message_text}`, `{event_message_author_name}`, `{event_message_author_avatar}`, `{event_message_image}` (and `_2` to `_4`), `{event_message_reply}`, `{event_message_url}` and `{event_message_channel_mention}`. Put them in a **Send or Edit a Message** block.
## Free and Premium
| Feature | Free | Premium |
| --- | --- | --- |
| Boards | 1 | Up to 5 |
| Every rule, the card, display tiers and edits | β | β |
| Leaderboard and `/starboard` | β | β |
| Send to Starboard and Remove from Starboard | β | β |
| Star rewards | β | β |
| Autostar channels | β | β |
| **Starboard by BotGhost** line on cards | Yes | No |
## Common questions
**A message has enough stars but no card**
Check that:
- The board is on and has a channel, and your bot can send messages and embeds there.
- The stars are from other members. Your own star only counts with **Count self-stars**, and stars from bots never count.
- The message isn't in a channel left out or an age-restricted channel, by a member with a role left out, older than the age limit, or by someone who used `/starboard hide`.
- Staff didn't take it off with **Remove from Starboard**.
If stars came in while your bot was offline, the card catches up the next time a star is added or taken away. Staff can also right click the message and use **Send to Starboard**.
**What happened to the old Starboard?**
The new Starboard replaces the old Premium module. Bots that still have the old one on keep it as **Starboard (old)** in the module list until they turn it off. Its settings don't move across, so set up the new one from the start.
**Can I change how Starboard works?**
Yes. Everything Starboard does is ordinary events and commands. Open one in the builder to add your own blocks. If you change one there, the page marks it **Changed by you**, and **Put it back how it was** removes your changes.
---
# Question Of The Day
Source: https://botghost.com/docs/community-engagement/question-of-the-day
Boost the engagement of your server with daily questions to answer!
.png)
> **Warning:** This module requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
The [Question Of The Day](https://dashboard.botghost.com/dashboard/module/7996e599-c1e4-4975-9f49-928c029a7d70/questionoftheday) module encourages members to engage in your server by answering a daily question that is automatically posted by your bot into a specific channel.
## Settings
### Main Settings
.png)
#### **QOTD Channel**
The channel where all questions will be automatically posted by your bot including the thread it creates. Inside of the thread is where users can give their answer to the question.
#### **Mentioned Roles**
Select roles that will be automatically pinged when a new question is posted.
#### **Private Mode**
When enabled only people with the roles selected under 'Mentioned Roles' will be able to answer questions of the day.
#### **QOTD Announcement Message**
The format of the daily question can be customized here, you can choose between an embed or plain text message. When a new question of the day is created, this message will be sent alongside with the thread connected to it. Below you can find the variables you can use in the message.
| Variable | Description |
| --- | --- |
| `{question}` | Returns the current question of the day. |
| `{day}` | Returns the total number of days the module has been posting questions for. |
#### **Created Thread Name**
The name of the thread that is created with the daily question, users may put their answer to the question inside of this thread.
#### **Thread Archive Duration**
Choose between one of the four options to customize when the thread will be archived when no message has been sent in the thread in the specified duration.
#### **Thread Slowmode**
The duration of slowmode in seconds for messages that will be applied to the created thread for the question. The maximum slowmode is 6 hours (21600 seconds), this is recommended to use if you want users to only send 1 answer to the question.
### Question Setup
.png)
#### **Question Generation Setup**
Choose the type of questions that are sent daily, either the ones already created with the module or custom questions that you can input.
#### Custom Questions
Input your custom questions in this section, make sure to separate each question with a normal comma. You can use special comma characters such as `Ω«` to put commas inside of your actual questions. *This setting is only visible with* [Question Generation Setup](https://botghost.com/docs/community-engagement/question-of-the-day#question-generation-setup) *set to "Customize Questions".*
#### **Skip Previously Asked Questions**
When enabled all existing questions will be asked first before starting a new round. This can be used to prevent questions from being sent more than once.
---
## Events
In this area, you can view and modify the event of the Question Of The Day module. Below you may find some information on each event of the module.
.png)
**QOTD Handler**
The event that manages the questions that are sent daily along with the threads that are automatically created when a new question is posted. Make sure to not delete the associated timed event in the [timed events](https://botghost.com/docs/custom-commands-and-events/events/timed-events) module.
---
> **Important:** It's advised that you do not edit the event of this module unless you have a good understanding of BotGhost and its Command and Event Builder. If you encounter any issues, you might want to reset the module for it to work again as intended.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Economy & Minigames
Source: https://botghost.com/docs/fun-modules/economy-and-minigames
Increase your server engagement with fun economy and minigames.
.png)
> **Note:** Some of the features of this module require a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function. You can however use the module with a free subscription.
The [Economy module](https://dashboard.botghost.com/dashboard/module/5bda821f-56fe-4318-be20-1d2815a04dc3/economy&minigames) will allow you to play minigames and set up a custom currency system, daily bonuses, message awards, and economy roles.
## Common Issues
Experiencing issues with the module? Check out the common issues below. If your issue is not listed in this page, make sure your module is updated to the latest version. If you are still experiencing issues with the module, join our [support server](https://discord.gg/botghost) to ask for further help.
### Minigame Commands Not Working
If you're not able to play certain minigames such as `/5dice` or `/blackjack`, please try to solve the issue with the steps below:
**Step 1.** You will need to upload all emojis of the module in your server. If you don't have enough emoji slots in your server to do that, you can upload them in another server you own and invite your bot to it.
**Step 2.** Run the `/ec admin` command in the server you want emojis to be uploaded in. This command allows you to get access all economy's admin tools.
**Step 3.** Pick the "Minigame Configuration" option in the menu. Select the minigame you want to upload the emojis of (5dice or blackjack).
.png)
**Step 4.** Confirm and wait a few seconds
.png)
**Step 5.** If you're still experiencing issues, join our [support server](https://discord.gg/botghost) to ask for further help, we'll do our best to solve your issue!
## Settings
### Economy Settings
Customize the currency name, prefix, or emoji for the currency, daily bonus, bank interest rates, colors and a lot more.
*Economy settings of the Economy & Minigames module*
#### **Currency Name**
In this field you can define your currency name for the whole economy system.
#### **Currency Prefix or Emoji**
In this field you can specify a prefix or emoji for your currency to be referenced next to. Learn how to add a custom emoji [here](https://botghost.com/docs/getting-started/standard-practices/advanced-practices#how-can-i-get-a-custom-emojis-id).
#### **Daily Bonus**
Here you can set a daily bonus which can be claimed via the `/daily-bonus` command. This field only accepts integers.
#### **Bank Interest**
In this field you can input an interest amount that is earned when you deposit money into the bank via the `/bank-deposit` command. This is limited to a maximum of 5% a day.
#### **Earn Currency for Messages**
If this toggle is enabled, users will earn currency for every message sent.
#### **Message Award Cooldown**
This field will allow you to set a cooldown in minutes between each message before giving currency. *This setting only shows when* [Earn Currency for Messages](https://botghost.com/docs/fun-modules/economy-and-minigames#earn-currency-for-messages) *is enabled.*
#### **Message Award Amount**
**If** [Earn Currency for Messages](https://botghost.com/docs/fun-modules/economy-and-minigames#earn-currency-for-messages) is enabled, this field will allow you to customize the amount of currency to give per message to the user. *This setting only shows when* [Earn Currency for Messages](https://botghost.com/docs/fun-modules/economy-and-minigames#earn-currency-for-messages) *is enabled.*
#### Lottery Channel
With this setting you can select a channel to serve as the place where the lottery notification of the winner is sent. This setting refers to the `/lottery` command.
#### Success Color
This setting changes the color for embeds that are sent with the context of being positive or a winner such as the lottery notification.
#### Main Color
This setting controls the color for informative embeds.
#### Alert Color
This setting controls the color for alert / warning type embeds.
#### Enable Job Editing
If this toggle is enabled, a new section will appear that allows you to customize and better integrate jobs in your economy system.
**Economy Jobs**
If the [Enable Job Editing](https://botghost.com/docs/fun-modules/economy-and-minigames#enable-job-editing) toggle is enabled, this section will appear and allow you to add and also customize added / available jobs. This correlates to the `/job-apply` and `/job-list` command.
.png)
#### Job Title
In this field you can input the name of the job you wish to add.
#### Job Description
In this field you can input a description for the job you wish to add.
#### Job Salary
In this field you can input the amount of currency earned for users with this job.
#### Shifts Required
In this field you may set a specific amount of shifts in order to receive this job.
#### Custom Value
This field serves as an "Extra info" field where you can input any additional info or values needed.
> **Note:** To save the job's settings, you need to click "Add" in the bottom-right corner of the settings. This will reset the fields so you can set up another job.
### Jobs Title
Here is where all active and available jobs are listed and can be edited or deleted. There is a bunch of prebuilt jobs that come with the module and can be changed, as well as there being a maximum of 30 jobs.
> **Note:** To save the edits you made on the job's settings, you need to click "Edit" in the bottom-right corner of the settings.
.png)
### Economy Items
In this section you can create and edit Items that users can buy with the `/shop-buy` command and see with the `/inventory` command. Click the "New Item" box to create a new item with the settings below.
> **Warning:** Only [Premium](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) users can add one or more items. Free users who delete one or more items have to reset the module to get them back.
> **Note:** Once created you can click on an existing item to delete or edit it.
.png)
.png)
#### Name
In this field you can input the name of the item you are creating.
#### Description
In this field you can input the description for the item.
#### Price
Here you can give the item a price that it can be bought at.
#### Item Limit
This field sets the maximum amount of this item that users can buy from the shop via the `/shop-buy` command.
#### Image
Select an Image for the item.
#### Type
This dropdown changes the type of item it will be.
**Role Item**
If this option is selected, it will make the item be based off a role, so when used it grants the user a role.
#### Roles
In this field you can select role(s) that the user will receive upon using the item.
#### Destroy On Use
If this toggle is enabled, the item will be removed from the users inventory if used.
#### Allow Multiples
If this toggle is enabled, users can hold more than one of this item in their inventory.
#### Use On Buy
If this toggle is enabled, when a user purchases this item, it will be automatically used when purchased.
#### Unlisted
If this toggle is enabled, this specific item will not show up when users browse the shop.
**Usable Item**
If this option is chosen then the item is treated as a regular usable item that does something.
#### Destroy On Use
If this toggle is enabled, the item will be removed from the users inventory if used.
#### Allow Multiples
If this toggle is enabled, users can hold more than one of this item in their inventory.
#### Use On Buy
If this toggle is enabled, when a user purchases this item, it will be automatically used when purchased.
#### Unlisted
If this toggle is enabled, this specific item will not show up when users browse the shop.
**Static Item**
If this option is chosen then the item won't do anything on it's own and needs another item to have a purpose.
#### Destroy On Use
If this toggle is enabled, the item will be removed from the users inventory if used.
#### Allow Multiples
If this toggle is enabled, users can hold more than one of this item in their inventory.
#### Unlisted
If this toggle is enabled, this specific item will not show up when users browse the shop.
### Economy Roles
In this section you can configure and add the role that can be received if a user reaches a certain currency balance threshold.
*Economy Roles settings of the Economy & Minigames module*
#### **Economy Role Amount**
In this field you can specify the amount of currency needed for the user to receive the role from [Economy Roles](https://botghost.com/docs/fun-modules/economy-and-minigames#economy-roles-1).
#### Economy Roles
Select the role that users should earn when they reach the specified criteria above.
> **Note:** To add the role, click on 'Add' in the right bottom corner to save your new economy role. Existing ones will appear in the 'Active Economy Roles' field below.
### Active Economy Roles
In this area you can edit or delete the active economy roles. There is a maximum of 10 active roles.
> **Note:** Click on an active economy role to edit or delete it.
.png)
---
## Commands
In this area, you can view and modify the commands of the Economy & Minigames module. Below you may find some information on each command of the module.
### Admin Commands
**/ec admin**
Allows you to manage the server economy, like resetting a user's balance, managing command cooldowns, or the entire server economy.
**/money remove**
This command is for economy admins only and removes currency from a users existing balance.
**/money add**
This command is for economy admins only and adds currency to a users existing balance.
### Economy Commands
**/money give**
This command gives a user some of your currency.
.png)
**/balance**
This command allows you to check a users currency balance.
.png)
**/daily**
This command allows you to claim your daily bonus. [Daily Bonus](https://botghost.com/docs/fun-modules/economy-and-minigames#daily-bonus)
.png)
**/ec leaderboard**
This command displays the 10 top users with the most currency, either holding or bank.
.png)
**/item give**
This command allows a user to give another user an item from their inventory.
**/shop view**
This command allows you to browse through the shop and displays the shop.
.png)
**/inventory**
This command displays your inventory.
**/bank deposit**
This command allows you to deposit currency into the bank that gains interest.
**/bank withdraw**
This command allows you to withdraw money from the bank.
**/beg**
This command allows you to beg for currency with a low risk.
.png)
**/lottery**
This command allows you to view the next lottery and also enter into it.
**/crime**
With this command you can commit a crime that is high risk but also high reward.
.png)
**/work**
This command allows you to work and gain currency from doing so. .png)
**/shop buy**
This command allows you to buy something from the shop.
**/fish**
This command allows you to go fishing.
**/job list**
This command shows the active job list. [Economy Jobs](https://botghost.com/docs/fun-modules/economy-and-minigames#economy-jobs) .png)
**/rob bank**
This command will attempt to rob a bank, multiple users will need to be in on this.
**/ec stats**
This command shows your economy stats.
.png)
**/job apply**
This command allows you to apply for a job.
**/ec cooldowns**
This command checks and shows all your active minigame and economy cooldowns.
**/rob player**
This command will make you attempt to steal an amount of currency from a player but if they catch you then you lose some money.
### Minigame Commands
**/scratchcard**
This command allows you to buy a scratchcard that could potentially give you a lot of currency.
.png)
**/dicebet**
This command serves as a minigame and challenges a player to a dice bet.
.png)
**/dos**
This command serves as a minigame and plays a game of double or steal against a user.
.png)
**/hangman**
This command servers as a minigame and plays a game of hangman.
.png)
**/high-low**
This command serves as a minigame and plays a game of higher or lower.
.png)
**/rps**
This command serves as a minigame and plays a game of rock paper scissors.
**/tictac**
This command serves as a minigame and plays a game of tic tac toe.
**/blackjack**
This command serves as a minigame and plays a game of blackjack.
**/matchpairs**
This command serves as a minigame and plays a game of match pairs.
**/5dice**
This command serves as a minigame and plays a game of 5dice. .png)
**/lightout**
This command allowes you to play Lights Out. It is a puzzle game where the objective is to turn off all the lights on a grid. Pressing a button toggles that light and the adjacent lights directly above, below, and to either side.
**/mastermind**
This command allowes you to play Mastermind, the goal of this game is for the Codebreaker (you) to guess the exact colors and positions of a secret code created by the Codemaker (the bot) in as few attempts as possible.
#### [π] Add Command
By clicking the add command button you can create your own command for the economy using all the module [variables](https://botghost.com/docs/custom-commands-and-events/variables) and settings.
## Events
In this area, you can view and modify the events of the Economy & Minigames module. Below you may find some information on each event of the module.
*Custom Events of the Economy & Minigames module*
**Bank Interest**
This event controls the entire banking system with the related commands.
**Economy - Lottery**
This even controls the lottery system and the correlating commands.
**Economy Autorole**
This event controls the entire [Economy Roles](https://botghost.com/docs/fun-modules/economy-and-minigames#economy-roles) system.
**Currency for Messages**
This event adds currency to users based on specific criteria if [Earn Currency for Messages](https://botghost.com/docs/fun-modules/economy-and-minigames#earn-currency-for-messages) is enabled.
#### [π] Add Event
By clicking the add event button you can create your own event for the economy using all the module [variables](https://botghost.com/docs/custom-commands-and-events/variables) and settings.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intended.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Birthdays
Source: https://botghost.com/docs/fun-modules/birthdays
Celebrate your members' birthdays with a post, wishes, a role for the day and more. Free for every bot.
Birthdays lets members add their birthday, then celebrates them on the day. At the hour you pick, your bot posts a birthday message with a **Send a wish** button, gives them a birthday role for the day and takes it off again when the day ends, even after a restart. You can add a birthday card, reactions, a wishes thread, an Upcoming list, join anniversaries and your server's own special days. Birthdays is free for every bot.
The [Discord birthday bot](https://botghost.com/discord-birthday-bot) page gives a shorter tour of what Birthdays can do.

*What your members will see*
## Before you start
You need:
- Your bot in your Discord server. See [Invite Your Bot](https://botghost.com/docs/getting-started/invite-your-bot) if it isn't yet.
- A channel for the birthday posts, like `#birthdays`. In it, your bot needs **View Channel**, **Send Messages**, **Embed Links**, **Add Reactions** and **Create Public Threads**.
- A birthday role, like `Birthday`, if you want one. Your bot's own role must be **above** it, with **Manage Roles** turned on.
- A channel for the ask panel, where members press **Add my birthday**. It can be the same channel.
Some settings need more permissions:
| Setting | Your bot needs |
| --- | --- |
| Birthday role, month role, star sign roles | **Manage Roles**, with its role above those roles |
| Pin the post for the day | **Manage Messages** |
| Cake on their name | **Manage Nicknames** |
| Join anniversaries for members already there | The **Server Members** intent, in the Discord Developer Portal |
## Set up Birthdays
### Step 1: Turn on Birthdays
Open **Birthdays** in your bot's dashboard and press **Enable** at the top right.

- **A** **Enable** turns Birthdays on. It adds the `/birthday` commands, the **View birthday** right click command, the events Birthdays needs, an hourly timed event, and the custom variables it keeps its settings in.
- **B** The server you're setting up. Every Birthdays setting belongs to one server (its channels, its roles and its time), so pick the server first. The page shows the server's icon and name on the settings you're changing.
- **C** **Reset to Default** puts every setting in that server back to how a new Birthdays starts. The channels and roles stay.
- **D** **Docs** opens this page.
> **Note:** Still using the old Birthdays module? The page offers to move your birthdays and settings across. See [Moving from the old Birthdays](https://botghost.com/docs/fun-modules/birthdays#moving-from-the-old-birthdays).
### Step 2: Pick the birthday channel and role
On the **Celebrate** tab, pick the channel in [Where birthdays are posted](https://botghost.com/docs/fun-modules/birthdays#where-birthdays-are-posted) and the role in [Birthday role](https://botghost.com/docs/fun-modules/birthdays#birthday-role). If you don't want a role, press **Skip** beside **Pick a birthday role** at the top of the page.
### Step 3: Save
A bar pops up at the bottom of the page. Press **Save Changes**. Your bot restarts to pick up the changes, which takes about 20 seconds.

### Step 4: Post the ask panel
On the **Ask members** tab, pick the panel channel and press **Post the panel**. Or run `/birthday panel` in your server.

- **A** What to do next. Once everything is done, it says **Birthdays is ready**.
- **B** The steps, ticked off as you do them. Press one to go to it.
To try it out, add your own birthday with `/birthday set` and set it to today: it's celebrated within the hour.
## The tabs
Everything else is on six tabs. The preview on the right shows what members see in Discord for the tab you're on.

- **Celebrate**: the channel, the time, the birthday post, the role and the extras on their day.
- **Ask members**: the ask panel, who can add a birthday, the birth year, changes, star sign roles and staff.
- **Wishes**: the Wish button, how wishes show and the birthday book.
- **Upcoming**: the Upcoming list, the monthly post and the heads-ups before a birthday.
- **Special days**: join anniversaries and your server's own days.
- **Birthdays**: every birthday in the server, importing and downloading them, and what is kept.
## Celebrate
### Where birthdays are posted
- **Birthday channel**: where the birthday post goes. The bot needs to see it, send messages, add reactions and make threads there.
### What time

- **Post at**: the hour the post goes out on their birthday (some time in that hour, not always at the start). It starts at 9:00.
- **Time zone**: the server's time zone, like `Europe/London`. It starts on `UTC`. Summer time is handled for you.
- **Celebrate each member in their own time zone**: off to start with. While it's on, members pick their time zone with `/birthday timezone` and are celebrated at your hour in their zone. Members who don't pick one use the server's.
- **29 February birthdays, in other years**: celebrated on **28 February** (to start with) or **1 March**.
### Who gets celebrated
- **Only members with these roles**: leave it empty to celebrate everyone who added a birthday.
- **Not if it was added fewer than** a number of days before, from 0 to 60. It stops people changing their birthday to today to get the role. It starts at 0, which celebrates a birthday whenever it was added.
### The birthday post

The **When it's someone's birthday** card is the post. Each message card has the message, **Edit message** to open the Message Builder, and the variables it fills in. The bot adds the **Send a wish** button under the post itself.
- **Add a version**: up to 10 versions of the message. One is picked at random each time. **Stop using this version** takes the last one away.
- **When several people have a birthday the same day**: one post for everyone celebrated in the same hour, with one Wish button that asks who the wish is for. A post names up to 40 members; the rest are counted.
### A different message for some roles
- **Use a different message for these roles**: off to start with. Members with one of the **Roles** get the **When it's the birthday of someone with these roles** message instead of the usual one, like staff, boosters or VIPs.
### Who to ping
- **Ping**: **Them** (to start with), **A role**, **@here** or **Nobody**. With **A role**, pick the **Role to ping**.
### Birthday role

- **Give a role**: on to start with. Pick the **Role**. The bot can only give roles below its own.
- **Keep it**: **For the rest of their day** (to start with) or **For 24 hours**. It comes off by itself, even after your bot restarts.
### Birthday month role
- **Give a role for the whole month**: off to start with. Everyone whose birthday is this month gets the **Role** on the 1st, and it's taken off when the month ends.
### Reactions
- **Reactions**: the bot reacts to the birthday post with these emojis. Leave it empty for none.
### Pin and thread
- **Pin the post for the day**: off to start with. It's unpinned when their day ends. Needs **Manage Messages**.
- **Wishes thread**: off to start with. A thread under the post for messages, locked when the day ends. **Thread name** starts as `Wishes for {bday_name}`, up to 100 characters.
### Also send them a DM
- **Send a DM**: off to start with. Sends **When it's their birthday (DM)** as well as the post. If their DMs are closed, nothing else happens.
### Cake on their name
- **Add it**: off to start with. Adds the **Emoji** (a cake to start with) to their nickname for the day. Their name goes back when the day ends. Needs **Manage Nicknames**. A bot can't change the server owner's name.
### A reward
- **Give a reward**: off to start with. Adds an amount to one of your member number custom variables, like coins, once on their birthday. Pick the **Custom variable** and how much to **Add**, from 1 to 1,000,000. It starts at 100. Make the variable in **Data Storage** first if your bot has none.
### Birthday card

- **Add a card**: off to start with. A picture made for them at the top of the post, free in this module.
- **The birthday card**: on the post for one member. **Edit the card** opens the Card Studio.
- **The group card**: on the post when several people share a day, with everyone's picture in a row. **Edit the group card** opens the Card Studio.
- **Back to the default** puts the default design back.
## Ask members
### The ask panel

The panel is where members press **Add my birthday**. It also has **Upcoming** and **Remove mine** buttons, and its buttons keep working for a year.
- **Panel channel**: where it's posted. The bot needs to see it, send messages and embed links there.
- **Post the panel**: posts it in the channel. Once it's there, the button says **Post it again**: after you change the panel, press it to update the panel where it is.
Save before you post: posting uses your saved settings. Right after a save, the button waits for your bot to restart.
**Add my birthday** opens a form with the **Month**, the **Day**, the **Year** (only while the server asks for it), **How should we celebrate?** (**In the channel**, **Just the role** or **Not at all**) and their time zone (only while members can pick their own).
### Who can add a birthday
- **Roles**: members with one of these roles can add theirs. Leave it empty so everyone can.
### Birth year
- **Birth year**: **Don't ask** (to start with), or **Ask, only kept to show their age**. When asked, it's optional and only kept when they choose to show their age. Ages under 18 are never shown, and a year that makes someone under 13 isn't kept.
### Changes
- **Members can change it** a number of **times a year**, from 1 to 10. It starts at 3. Adding it the first time doesn't count.
- **Members can't change it once it's set**: off to start with. Staff can still change it with `/birthday add-for`.
### Star sign roles
- **Give star sign roles**: off to start with. Pick a role for each of the 12 signs, shown with their dates. Members get theirs when they save their birthday. A sign with no role gets nothing.
### Staff

- **Staff roles**: members with one of these roles can use the staff commands. Members with **Manage Server** always can.
- **Staff can add birthdays**: on to start with, with `/birthday add-for`.
- **Tell the member**: on to start with. They get a DM saying a moderator added it.
- **Members confirm birthdays staff add**: off to start with. A birthday staff add is only celebrated once the member says it's right under `/birthday mine`. It's forgotten after 14 days without a yes.
## Wishes
### Wish button

- **Add a Wish button**: on to start with. It goes under the birthday post. Members press it and type a short wish, up to 200 characters, once each. Nobody can send themselves a wish.
- **Button text**: starts as **Send a wish**, with an **Emoji** if you like.
The button keeps working for a year. Once the birthday is over, pressing it says so.
### Wishes on the post
- **Show how many wishes**: off to start with. The post says how many wishes so far and keeps it up to date.
- **Let wishes have a picture**: off to start with. The picture goes in the birthday book with the wish.
- **Early wishes**: off to start with. Members can use `/birthday wish` up to 30 days before. They're opened on the day.
### The birthday book
- **Send the birthday book**: off to start with. When their birthday ends, they get every wish in one DM. If their DMs are closed, nothing else happens. The wishes are deleted once the day ends.
## Upcoming
### Upcoming list

- **Keep an upcoming list**: off to start with. A message the bot keeps up to date at midnight every day, where it was posted.
- **Channel**: where it goes. Leave it empty to use the birthday channel. The monthly post goes here too.
- **Show** a number of birthdays, up to 25. It starts at 10. `/birthday upcoming` shows the same number.
- **Post the list**: posts it in the channel, with an **Add my birthday** button. **Post it again** updates it where it is.
The **Birthdays today** message is the private reply to `/birthday today`.
### Monthly post
- **Post each month**: off to start with. A post with that month's birthdays, in the Upcoming list's channel. **On day** 1 to 28 of the month (it starts on the 1st), **At** an hour.
### Heads-up before a birthday

- **Send a heads-up**: off to start with. Up to 3, each its own number of days before, up to 30. They start at 7 and 1 days before, and the third at 0, which is off.
- **Send it**: **To staff** (to start with) or **To everyone**.
- **Staff channel** (or **Channel** when it goes to everyone): a channel the birthday member can't see keeps it a surprise. With **To everyone**, leave it empty to use the birthday channel.
- **At**: the hour it's sent.
- **Open a planning thread**: off to start with. A thread on the heads-up named **Birthday plans** and the date. Use a staff channel to keep it from the birthday member.
## Anniversaries and special days
These are on the **Special days** tab.
### Where anniversaries and special days go
- **Channel**: one channel for both. Leave it empty to use the birthday channel.
- **Post at**: one hour for both, in the server's time zone.
### Join anniversaries

- **Celebrate join anniversaries**: off to start with. A post each year on the day a member joined. Everyone who joined on the same day goes in one post.
- **Milestone roles**: **Add a milestone** for up to 5 roles, each given on their join anniversary once they've been here a number of years, from 1 to 50.
- **Fill in join dates**: new members are noted when they join. Run this once for members who joined before anniversaries were on. It needs the **Server Members** intent (Discord Developer Portal, your bot, **Bot**), and a big server takes a while: about half a minute for every 1,000 members.
### Special days

Your server's own days, like its birthday, a founder's birthday or an event. Each is posted every year with its own message.
- **Add a day**: up to 25 days. Give each a name (the message shows it as `{special_name}`), a day and a month.
- **Edit message**: the day's own message.
- When you have no days yet, the page offers to add your server's own birthday, from the day it was made.
Staff can also add and remove days with `/birthday special`.
## Everyone's birthdays
These are on the **Birthdays** tab.
### The Birthdays list

Every birthday in the server, with the member, their birthday (day and month only), how they're celebrated, and **Waiting for them** or **Locked** where that applies. Ages and years are never shown here.
- **Search by name or member ID**. Names are shown for the first 1,000 members of a server.
- **Remove**: press it twice. The birthday goes through **Forget a Birthday**, so their wishes and star sign role go too.
- **Import a CSV**: up to 5,000 lines, each with a member ID, the day and the month (a number or a name). A header line naming the columns (`member_id`, `day`, `month`) lets them come in any order. Years are never read. Each birthday is saved as if the member added it, so a member over their changes for the year is skipped.
- **Download as CSV**: every birthday, with `member_id`, `name`, `day` and `month`.
- **Clean up members who left**: finds birthdays of members who aren't in the server any more, and forgets them after two presses.
Imports, removes and clean ups go one birthday every few seconds. The page shows how long is left, with a **Stop** button.
### What is kept
- The day and month of their birthday.
- The year only when they choose to show their age.
- Their time zone only when members can pick their own.
- Wishes until their birthday ends.
- Nothing else.
Birthdays aren't proof of age, so there's no 18+ option. Ages under 18 are never shown.
### When a member leaves
- **Keep it for a while in case they come back**: off to start with, so a leaving member's birthday is forgotten straight away. While it's on, it's kept for up to 90 days (it starts at 30), and forgotten after that unless they rejoin first.
### Delete all birthdays
- **Delete all birthdays**: press it twice to delete every birthday in the server, for good. Each one goes through **Forget a Birthday**, so wishes and star sign roles go too. It takes a few seconds a birthday.
When your bot leaves a server, every birthday, wish and list Birthdays kept for that server is deleted. The page's settings for it are kept.
## The bot's messages
Every message Birthdays sends has its own card on the tab it belongs to. Each card has the message, **Edit message** to open the Message Builder, and the variables it fills in. Messages to the member are private replies only they can see, except the ones marked DM. Members with DMs closed don't get a DM, and nothing else happens.

| Tab | Message | When it's sent |
| --- | --- | --- |
| Celebrate | When it's someone's birthday | Posted in the birthday channel with the Wish button. Up to 10 versions, one picked at random |
| Celebrate | When several people have a birthday the same day | One post for everyone celebrated in the same hour |
| Celebrate | When it's the birthday of someone with these roles | Instead of the usual message, while **A different message for some roles** is on |
| Celebrate | When it's their birthday (DM) | A DM on their birthday, while **Also send them a DM** is on |
| Ask members | When the ask panel is posted | The panel, with **Add my birthday**, **Upcoming** and **Remove mine** |
| Ask members | When a birthday is saved | Once it's saved |
| Ask members | When it can't be saved | Saying why. `{bday_problem}` is the reason |
| Ask members | When staff add someone's birthday (DM) | To the member, while **Tell the member** is on |
| Ask members | When staff add a birthday that needs a yes (DM) | To the member, while **Members confirm birthdays staff add** is on |
| Ask members | When a member confirms it | They press **That's right** under `/birthday mine` |
| Ask members | When a birthday is removed | Once it's gone |
| Ask members | When someone checks their birthday | The reply to `/birthday mine` |
| Ask members | When someone looks up a birthday | The reply to `/birthday view` and **View birthday** |
| Ask members | When they haven't added one | The member has no birthday in this server |
| Ask members | When staff preview the post | Under the preview of `/birthday preview` |
| Wishes | When someone sends a wish | Once their wish is saved |
| Wishes | When they've already sent one | A second wish for the same member |
| Wishes | When someone sends an early wish | `/birthday wish` before the day, while **Early wishes** is on |
| Wishes | When their birthday ends (DM) | Every wish they got, while **The birthday book** is on |
| Upcoming | When the Upcoming list is posted | The list in its channel, and the reply to **Upcoming** and `/birthday upcoming` |
| Upcoming | Birthdays today | The reply to `/birthday today` |
| Upcoming | When a new month starts | The monthly post, while it's on |
| Upcoming | When a birthday is coming up | The heads-up, to staff or everyone |
| Special days | When it's someone's server anniversary | On the day they joined, every year after, while join anniversaries are on |
| Special days | Each special day's own message | On that day every year |
## Commands

Each subcommand of `/birthday` is its own command: open one to edit it in the builder, and its switch turns it on or off.
| Command | Who | What it does |
| --- | --- | --- |
| `/birthday set` | Members | Add or change your birthday: `day`, `month`, and optionally `year`, `show_age`, `celebrate` and `zone` |
| `/birthday remove` | Members | Remove your birthday from this server |
| `/birthday mine` | Members | See the birthday you saved here |
| `/birthday view` | Members | See a member's birthday |
| `/birthday upcoming` | Members | See the birthdays coming up, the last 30 days, or one `month` |
| `/birthday today` | Members | See whose birthday it is today |
| `/birthday timezone` | Members | Set your time zone, so you're celebrated at the right time |
| `/birthday wish` | Members | Send a member a birthday wish (or an early one) |
| `/birthday panel` | Staff | Post the ask panel, or update the one that is there. `channel` posts it somewhere else |
| `/birthday add-for` | Staff | Add a member's birthday |
| `/birthday remove-for` | Staff | Remove a member's birthday |
| `/birthday block` | Staff | Stop a member's birthday being added. `unblock` allows it again |
| `/birthday lock` | Staff | Stop a member changing their birthday. `unlock` allows changes again |
| `/birthday preview` | Staff | See the birthday post privately, for you or a `member`. Nothing is saved and nobody is pinged |
| `/birthday special` | Staff | Add or remove one of the server's special days |
| **View birthday** | Members | Right click a member, **Apps**, **View birthday** |
Staff commands are for members with **Manage Server** or a staff role (**Ask members** tab, **Staff**). Anyone else is told they need one. The `zone` options suggest time zones as members type a city or a country.
If your bot already has a `/birthday` command, the page says so: rename or switch off yours in **Custom Commands**, or switch off the Birthdays one.
## Events
Birthdays is made of ordinary builder blocks. Open an event to see how it works, or add your own blocks.

- **Hourly Check** runs every hour, in every server. It finds whose birthday it is now in their time zone, then runs **Celebrate**. It also sends the heads-ups, the monthly post, the Upcoming list, the birthday month role and the special days.
- **Celebrate** gives the birthday role and the cake on their name until their day ends, then one post for everyone due that hour with the Wish button, the reactions, the pin, the thread and the DM.
- **Day Over** runs when a member's birthday ends: it sends the birthday book, then forgets the wishes.
- **Save a Birthday** is the one place a birthday is saved: the checks, the year, the day lists and the star sign role.
- **Forget a Birthday** takes a member out of everything: the day lists, their saved birthday, their wishes and their star sign role.
- **Upcoming** works out the lines for the next birthdays, the last 30 days, a month or today.
- **Post the Panel** posts the ask panel or the Upcoming list, or updates the one that is there. It holds what their buttons do.
- **Anniversaries** posts the join anniversaries, gives the milestone roles, then posts the special days.
- **Fill Join Dates** runs from **Fill in join dates** on the page.
- **Move Members** runs from **Move my birthdays** on the page.
- **Member Joined** notes the day a new member joined, and stops forgetting a member who came back in time.
- **Member Left** forgets a leaving member's birthday, now or after the days you picked.
- **Bot Left** deletes everything Birthdays kept for a server when your bot leaves it.
**Open in builder** opens an event in the Command Builder, and the switch turns it on or off. **Show variable names** shows the variable behind each setting on the page, if you want to use them in your own commands. The hourly timer is listed on the **Timed Events** page too.
> **Note:** The settings on this page are read by the events' blocks, so changing a setting never changes the events. If you change an event and want the original back, use **Put it back how it was** beside it on the Birthdays page.
## Message variables
Every Birthdays message can use these. Each message card lists the ones it fills in.
| Variable | What it shows |
| --- | --- |
| `{server}` | The server's name |
| `{bday_mentions}` | The birthday members, as mentions |
| `{bday_name}` | The member's display name (the first one, when several share a day) |
| `{bday_member}` | The member, as a mention |
| `{bday_date}` | Their birthday, like 14 October |
| `{bday_line}` | "Turns 21 today" when they show their age (18 or older), else their birthday |
| `{bday_count}` | How many birthdays there are today |
| `{bday_lines}` | One line per birthday member |
| `{bday_time}` | The hour birthdays are celebrated, like 9:00 |
| `{bday_zone}` | The time zone they're celebrated in |
| `{bday_year_line}` | ", born 2001" when their year is kept, empty otherwise |
| `{bday_how_words}` | How they're celebrated: in the channel, just the role, or not at all |
| `{bday_waiting_line}` | A line saying it waits for their yes, when a moderator added it |
| `{bday_until}` | When it is, like in 3 days |
| `{bday_problem}` | Why it couldn't be saved |
| `{bday_count_line}` | " They have 3 wishes so far." while the wish count is on |
| `{bday_wishes}` | Every wish, one per line |
| `{bday_wish_count}` | How many wishes they got |
| `{bday_wish_tally}` | " Β· 3 wishes" once people send wishes, while **Show how many wishes** is on |
| `{bday_ping_text}` | " Β· @here" or the role, as a mention, when the post pings one |
| `{upcoming_lines}` | The birthdays coming up, one per line |
| `{bday_month_name}` | The month, like October |
| `{bday_days_ahead}` | How many days before the birthday the heads-up goes |
| `{bday_day_word}` | "day" when the heads-up is one day before, else "days" |
| `{bday_anniv_lines}` | The members with a server anniversary today, one per line |
| `{special_name}` | The special day's name |
## Every limit
| What | Limit |
| --- | --- |
| Versions of the birthday message | Up to 10 |
| Members named in one post | 40, the rest are counted |
| Changes to a birthday | 1 to 10 a year, 3 to start |
| Not celebrated if added fewer than | Up to 60 days before |
| Birth year | Not kept under 13, age not shown under 18 |
| A wish | 200 characters |
| Early wishes | Up to 30 days before |
| Staff-added birthday waiting for a yes | 14 days |
| Upcoming list | Up to 25 birthdays, 10 to start |
| Monthly post | Day 1 to 28 of the month |
| Heads-ups | 3, each up to 30 days before |
| Milestone roles | 5, each 1 to 50 years |
| Special days | 25 |
| Reward | 1 to 1,000,000, 100 to start |
| Keeping a birthday after they leave | Up to 90 days, 30 to start |
| CSV import | 5,000 lines |
| Panel and Wish buttons | Keep working for a year |
Every feature is free for every bot. On free bots, the module's messages sometimes have a small **Made with BotGhost** line under them, about one time in three. Premium bots never do. Birthdays' variables and stored birthdays never count toward your free limits.
## Moving from the old Birthdays
If your bot still has the old Birthdays module on, the page shows **Birthdays (old) is still on** at the top.

1. Press **Move my birthdays**. The channel, the time, the role, the message, the card, the reactions and the staff roles move into each server, and the old Birthdays is switched off, so nobody is celebrated twice.
2. Press **Save Changes**.
3. Press **Move the birthdays**. Each birthday goes through **Save a Birthday** as if the member added it, so nobody gets a DM. They go 30 at a time, with a progress bar and a **Stop** button. When it's done, the page says what moved in each server.
Turning the new Birthdays on while the old one is still on asks to switch the old one off first. Both can't run at once: everyone would be celebrated twice, and both have a `/birthday` command. The old one's birthdays and settings are kept.
## Good to know
- Each server has its own settings: channels, roles, the time and every message. Pick the server at the top of the page before you change them.
- Each member is celebrated once a year. Changing their birthday after they've been celebrated doesn't post again.
- A post goes out during the hour you picked, not always at the start of it.
- After an update to Birthdays, the page shows an **Update** button. Your own changes to the events and messages are kept.
## Common questions
**Nobody was celebrated**
Check your bot is online, a birthday channel is picked and you saved. Check the **Hourly Check** and **Celebrate** events are switched on. The member must have chosen **In the channel** (with **Just the role** they only get the role), have one of the roles in **Who gets celebrated** if you set any, and have added their birthday at least the number of days you picked before it. If the page warns that your bot's time zone for timed events isn't one the bot knows, pick another one in your bot's **Settings**, under **Timed Events**.
**The birthday role isn't given**
Check that your bot's role is above the birthday role in **Server Settings > Roles**, and has **Manage Roles**.
**It was celebrated at the wrong time**
Check the **Time zone** on the **Celebrate** tab. While **Celebrate each member in their own time zone** is on, members who picked a zone with `/birthday timezone` are celebrated at your hour in their zone.
**Members can't add their birthday**
Check **Who can add a birthday**, and whether staff blocked or locked their birthday with `/birthday block` or `/birthday lock`. A member who changed it too many times this year has to wait. The reply says why.
**The panel's buttons don't do anything**
Check your bot is online, and post the panel again after your last save: press **Post it again** on the **Ask members** tab.
---
# Counting
Source: https://botghost.com/docs/fun-modules/counting
Setup a counting mini-game and count with your server.
Counting gives your server a channel where members count up together, one number each. The bot reacts to every right number, and a wrong number ends the run, goes back to a checkpoint or uses a save. Counting is free for every bot.
The [Discord counting bot](https://botghost.com/discord-counting-bot) page gives a shorter tour of what Counting can do.

*What your members will see*
## Before you start
You need:
- Your bot in your Discord server. See [Invite Your Bot](https://botghost.com/docs/getting-started/invite-your-bot) if it isn't yet.
- A channel for counting, like `#counting`.
- In that channel, your bot needs **View Channel**, **Send Messages**, **Add Reactions** and **Manage Messages**.
## Set up your counting channel
### Step 1: Turn on Counting
Open **Counting** in your bot's dashboard and press **Enable** at the top right.

- **A** **Enable** turns Counting on for your bot.
- **B** The server you're setting up, if your bot is in more than one. Pick a server to give it its own channel and rules.
- **C** **Reset to Default** puts every setting back to how a new Counting starts. Your counting channels stay.
### Step 2: Pick your counting channel
On the **Channels and rules** tab, pick the channel people count in. Pick the server first, then the channel.

- **A** Your counting channels. Add one in each server you want a counting game in. Each channel has its own game.
### Step 3: Save
A bar pops up at the bottom of the page. Press **Save Changes**.

- **A** **Save Changes** sends your settings to your bot.
### Step 4: Start counting
Type **1** in your counting channel. The strip under the header shows **Ready to count** once everything is set up.

- **A** What to do next. Once it says **Ready to count**, you're done.
- **B** The steps, ticked off as you do them.
## The tabs
Everything else is on four tabs. The preview on the right shows what happens in Discord for the tab you're on.

- **A** **Channels and rules**: where people count and what counts.
- **B** **Mistakes**: what happens when someone gets it wrong, and saves.
- **C** **Milestones**: new records and round numbers.
- **D** **Look**: reactions and every message the bot sends.
## What counts

- **A** **Start counting from**: the first number, and the one the count goes back to after a mistake.
- **B** **A count is**: **The number on its own**, or **The number, then anything**, so `42 nearly there` counts as 42.
- **C** **Let people count with maths**: `6*7` counts as 42. Only numbers and `+ - * / ^ ( )` are worked out.
- **D** **Wait between counts**: in seconds, 0 for no wait. A number that comes too soon is deleted with a short note. It isn't a mistake, so the count doesn't end.
- **E** **Let someone count twice in a row**: when it's off, members take turns. Whoever counted last has to wait for someone else, and any number they type is deleted with a short note, without ending the count.
- **F** **Let people talk in the channel**: when it's off, messages that aren't a number are deleted. When it's on, they stay, and only numbers count.
> **Note:** `1,000` counts as 1000, so members can write big numbers with commas.
## Mistakes

- **A** **What happens** when someone types the wrong number:
- **Start again**: the count goes back to the first number.
- **Back to a checkpoint**: the count goes back to the last round number it reached, so a long run isn't lost.
- **Keep going**: the wrong number is deleted and the count carries on.
- **B** **A checkpoint every**: with a checkpoint every 100, a mistake at 1,288 goes back to 1,200, so the next number is 1,201. Saves and milestones up to 1,288 aren't earned a second time.
- **C** **Give whoever ruined it a role**: leave it empty for no role. The bot can only give roles below its own.
- **D** **Take the role away after**: in minutes.
- **E** **Use saves**: the server earns a save every few counts, up to the most you allow. A mistake uses one up instead of ending the run.
> **Note:** If two people type the same number at the same moment, the second one is quietly deleted. It isn't a mistake.
## Milestones and records

- **A** **Celebrate a new record**: a message once a run, when the count passes the channel's best. It isn't sent in a channel's very first run.
- **B** **Every**: how often a milestone comes, like every 100 numbers.
- **C** **Give whoever reaches it a role**: leave it empty for no role.
- **D** **Send a message**: turn it off to only give the role.
## Look
### Reactions and posting as the member

- **A** **Post counts as the member**: each right count is posted again with the member's name and picture, and theirs is deleted, so nobody can edit a count afterwards. The bot also needs **Manage Webhooks** in the channel.
- **B** The reactions on a right number.
- **C** The reactions on a wrong number, and when someone counts twice.
- **D** The reactions when a save keeps the count going.
Press **Add** to add more. Each list takes up to 20.
### The bot's messages
Each message the bot sends has its own card. Change the words, press **Edit message** for embeds, or switch the message off.

- **A** The switch for this message. When it's on, the bot sends it.
- **B** The message. The variables it can use are listed under it.
- **C** **Edit message** opens the full message builder.
- **D** A message that's switched off. The card says what still happens without it.
The messages, and the variables each one can use:
| Message | When it's sent | Variables |
| --- | --- | --- |
| When the count is ruined | A reply to whoever typed the wrong number | `{user}`, `{count_shown}` the number it got to, `{count_restart}` the next number now, `{count_record}` the channel's best |
| When someone counts twice in a row | A short reply that deletes itself after a few seconds | `{user}` |
| When someone counts too soon | A short reply that deletes itself, with their message | `{user}` |
| When a save is used | A reply to whoever got it wrong | `{user}`, `{count_next}` the number it's still on, `{count_saves}` the saves left |
| When a save is earned | In the channel, each time the count earns one | `{user}`, `{count_saves}` |
| When the last count is deleted | When someone deletes the last right number | `{count_next}` |
| New record (Milestones tab) | Once a run, when the count passes the best | `{user}`, `{count_record}` the old best |
| Milestone (Milestones tab) | When the count reaches a milestone | `{user}`, `{count_shown}` the number |
## Commands

- **A** `/count` for everyone:
- `/count next`: the next number, the record and the saves.
- `/count top`: the members with the most right counts.
- `/count me`: your right counts, mistakes and place.
- **B** `/count-staff` for staff with **Manage Server**:
- `/count-staff set`: set the next number to count in this channel.
- `/count-staff reset`: start the count in this channel again.
- **C** **Settings** opens the command, where you can change it or switch it off.
The commands only work in a counting channel. Anywhere else they say so.
## Events
Counting is made of normal builder blocks. Open an event to see how it works, or add your own blocks.

- **A message is sent** checks every message in a counting channel.
- **A count is deleted** posts the next number when the last right number is deleted, so nobody loses track.
- **A** **Open in builder** opens the event in the Command Builder.
- **B** The switch turns the event on or off.
> **Note:** The settings on this page are read by the events' blocks, so changing a setting never changes the events. If you change an event and want the original back, use its reset on the Counting page.
## Good to know
- Counting is free for every bot.
- Each counting channel has its own game, and each server can have its own channels and rules from the server menu at the top of the page.
- **Show variable names** at the top of the page shows the variable behind each setting, if you want to use them in your own commands.
- The old Counting keeps working. If you have it on, you'll find it as **Counting (old)** in your modules. Your old settings don't move across, so pick your channel and rules again in the new one.
---
# Giveaways
Source: https://botghost.com/docs/fun-modules/giveaways
Run giveaways your members can trust, with one press to enter and winners picked fairly.
Giveaways lets your bot run giveaways in your server. Your bot posts the giveaway, members press **Enter** to join, and when the time is up the bot picks the winners at random and pings them. The post keeps its entry count and end time up to date, and nothing is lost when your bot restarts. Giveaways is free for every bot.
The [Discord giveaway bot](https://botghost.com/discord-giveaway-bot) page gives a shorter tour of what Giveaways can do.

*What your members will see*
## Before you start
You need:
- Your bot in your Discord server. See [Invite Your Bot](https://botghost.com/docs/getting-started/invite-your-bot) if it isn't yet.
- A channel for giveaways, like `#giveaways`.
- In that channel, your bot needs **View Channel**, **Send Messages** and **Embed Links**.
- To give winners a role, your bot's own role **above** that role, with **Manage Roles** turned on.
## Set up giveaways
### Step 1: Turn on Giveaways
Open **Giveaways** in your bot's dashboard and press **Enable** at the top right.

- **A** **Enable** turns Giveaways on. It adds the `/giveaway` commands, the **End giveaway** and **Reroll giveaway** right click commands, and the events Giveaways needs.
- **B** The server you're setting up. The channel, the hosts and the entry rules belong to one server, so pick the server first. A setting this server has its own value for is tagged with the server's name and icon.
- **C** **Reset to Default** puts every setting back to how a new Giveaways starts. The giveaway channel stays.
- **D** **Docs** opens this page.
### Step 2: Pick the channel and the hosts
On the **Post** tab, pick the channel giveaways are posted in. Then pick the roles that can host giveaways, if anyone other than members with **Manage Server** should. See [Where giveaways go](https://botghost.com/docs/fun-modules/giveaways#where-giveaways-go) below.
### Step 3: Save
A bar pops up at the bottom of the page. Press **Save Changes**.

### Step 4: Start your first giveaway
Run `/giveaway start` in your server, or press **Start a giveaway** on the **Post** tab. To try it out, start a short one and cancel it with `/giveaway cancel`.

- **A** What to do next. Once everything is done, it says **Giveaways are ready**.
- **B** The steps, ticked off as you do them. Press one to go to it.
## The tabs
Everything else is on six tabs. On the first four, the preview on the right shows what members see in Discord.

- **A** **Post**: where giveaways go, who hosts them, the post and its buttons.
- **B** **Entering**: who can enter, bonus entries and the replies members get.
- **C** **Winners**: the draw, the winners' messages, a winner role and DMs.
- **D** **Prizes**: a claim button, a time to claim and prize codes.
- **E** **Schedule**: saved giveaways, and giveaways that start again and again.
- **F** **Giveaways and stats**: the giveaways running now, the ones that ended, and totals.

*The preview beside the Post tab, with sample details*
## Post
### Start a giveaway
Press **Start a giveaway** on the **Post** tab to start one from the dashboard. It's the same as `/giveaway start` in Discord.

- **A** **Prize**: what the winners get.
- **B** **Description**: a line under the prize. Leave it empty for the post's own text.
- **C** **Posted in**: the channel. It starts on your giveaway channel.
- **D** **Runs for** and how many **winners**: from 1 minute to 90 days, and up to 50 winners.
- **E** How the post will look.
- **F** **Start the giveaway** posts it straight away.
Save your bot first: starting from the page runs the saved version of your settings.
### Where giveaways go

- **A** **Giveaway channel**: where `/giveaway start` posts when the host doesn't pick a channel.
### Who can host
- **B** **Host roles**: members with one of these roles can start, end, reroll, edit, pause and cancel giveaways. Members with **Manage Server** always can. Leave it empty to keep it to **Manage Server**.
### The giveaway post
The post has three messages, one for each stage, all on the same post. Each has its own card.

- **A** **Message**: a box for each text part of the message, like the heading, the details and the footer.
- **B** **Edit message** opens the Message Builder, for pictures, separators and the layout.
- **C** The variables this message fills in. Press one to copy it.
The post's three messages are the same in every server.
| Message | When it's shown |
| --- | --- |
| When a giveaway is running | The post members enter from. The bot keeps its entry count and end time up to date |
| When a giveaway ends | The same post once the winners are picked. Only the **Entrants** button stays |
| When a giveaway is cancelled | The same post when a host cancels it. Nobody wins, and the buttons go |

*Edit message opens the Message Builder*
The bot adds the buttons under the post itself, so you don't add them in the Message Builder.
### The buttons

- **A** **Enter button**: the words on the button members press to join.
- **B** **Its emoji**: press **Change** to pick another. Leave it empty for none.
- **C** **Leave button**: members press it to drop out.
- **D** **Show an Entrants button**: lists the first 20 who entered, privately, to whoever presses it. **Entrants button** is the words on it. Off, nobody can see who entered.
The buttons are the same in every server.
### When a giveaway starts
- **E** **Ping this role**: pinged when a giveaway starts. Only this role is pinged. Leave it empty to ping nobody.
- **F** **Log channel**: every giveaway's start, end and reroll is written here. Leave it empty for no log.
### The log

- **A** **Log line when a giveaway starts**: the message sent in the log channel.
- **B** **Edit message** opens the Message Builder.
- **C** The variables it fills in.
The **Winners** tab has the **Log line when a giveaway ends**. Edits, pauses, rerolls and cancels get a short log line of their own.
### What a new giveaway starts with

- **A** **How long it runs**: used when a host leaves out the duration in `/giveaway start`. From 1 minute to 90 days. It starts at 1 day.
- **B** **How many win**: used when a host leaves out the winners. Up to 50.
## Entering
### Who can enter
Every box can be left empty. With all of them empty, everyone in the server can enter. Each rule is checked when a member presses **Enter**.

- **A** **Needs one of these roles**.
- **B** **Needs all of these roles**.
- **C** **Can't enter with any of these roles**: muted or giveaway banned roles, for example.
- **D** **Skips every rule**: members with one of these can always enter.
- **E** **These members can't enter**: paste a member's ID, up to 100 members. In Discord, turn on **Developer Mode**, right click a member and press **Copy User ID**. **Add a member** adds another row.
> **Note:** Entering a giveaway is always free, so a role that comes with a server subscription (a paid role) can't be picked in these lists, as a bonus role or as the winner role.
### Bonus entries
Bonus entries give members with a role extra chances, like Server Boosters. The post says who gets them, so everyone can see it's fair.

- **A** **Give bonus entries**: the switch. A member with 2 bonus entries is in the draw 3 times. They can still only win once.
- **B** **Members with** a role **get extra** entries, from 1 to 10. **Add a role** adds another row, up to 10 roles. A member with several of the roles gets the bonus of each.
- **C** **What the post says about it**: like `Boosters get +1 entry`. It fills in `{giveaway_bonus_line}` on the post. Left empty, the post says **Some roles get extra entries.**
### Account age and time in the server

- **A** **Discord account at least**: how many days old a member's Discord account must be. This keeps brand new accounts out, so nobody makes extra accounts to win.
- **B** **In the server at least**: how many days they must have been in your server.
Use 0 for no limit.
### A custom variable they need
- **C** **Read it from**: one of your bot's member number variables from [Data Storage](https://botghost.com/docs/custom-commands-and-events/data-storage), like a level, XP or points another system keeps. Leave it on **None needed** to let everyone enter.
- **D** **Members need at least**: how much they need. 0 lets everyone enter.
### Replies to members
Each reply only shows to the member who pressed the button. Each one has its own card, with **Edit message** and the variables it fills in. The replies are this server's own, so each server can word them its own way.
| Reply | When it's sent |
| --- | --- |
| When someone enters | **Enter** lets them in. `{giveaway_my_entries}` is their entries, counting bonus entries |
| When they're already in | They press **Enter** again |
| When they can't enter | A rule above keeps them out. `{giveaway_problem}` says why |
| When they leave | They press **Leave** |
| When the giveaway isn't open | They press a button on a giveaway that ended, was cancelled, or whose winners are being picked |
| When the giveaway is paused | They press **Enter** while a host has paused the giveaway |

## Winners
### Picking the winners
Winners are picked at random from every entry. Someone can only win once per giveaway, and a reroll never picks an earlier winner.

- **A** **Least entries for a draw**: with fewer entries than this, nobody wins and the **When nobody wins** message is sent.
- **B** **Check the winners again at the draw**: skips winners who left the server or lost a role they needed, and picks someone else.
- **C** **Ping the winners**: off, the announcement names them without a ping.
### The winners' messages

- **A** **Message**: the text parts of the message.
- **B** **Edit message** opens the Message Builder.
- **C** The variables it fills in, like `{giveaway_winners}`.
The winners' messages and the winner DM are this server's own.
| Message | When it's sent |
| --- | --- |
| When the winners are picked | A reply to the giveaway post (in its channel when the post is gone), pinging only the winners |
| When nobody wins | Fewer people entered than the least entries, or nobody who entered can be picked, because they left or failed the check at the draw |
| When winners are rerolled | After a host rerolls. Only the new winners are pinged |
### Winner role

- **A** **Give winners**: a role for the winners. Leave it empty for no role. Your bot can only give roles below its own.
- **B** **Take it away after**: the bot takes the role off again after this long. Leave it empty and they keep it.
### Winner DMs
- **C** **Send winners a DM**: off to start with, so winners are told in the channel, with a ping. Turn it on to also send each winner a DM. The message shows under the switch once it's on.
Keep links out of the DM: Discord treats DMs with links from bots as spam. Winners with DMs closed are still pinged in the channel. While DMs are on, the post says **Winners get a DM when they win.** under its details (`{giveaway_dm_line}`), so everyone who enters knows.
The **Log line when a giveaway ends** card is on this tab too. See [The log](https://botghost.com/docs/fun-modules/giveaways#the-log).
### How long entries are kept

- **A** **Keep them for**: after the draw, who entered stays for rerolls and the **Entrants** button, then it's deleted. From 1 to 90 days. It starts at 30. Rerolls work until then.
## Prizes
### The claim button

- **A** **Add a claim button**: a button under the winners' announcement, so you know who's still around to get their prize. Only the winners can press it.
- **B** **Button**: the words on it.
### Time to claim
- **C** **Winners have**: how long winners have to claim. Winners who don't claim in time lose the prize. Leave it empty for no time limit.
- **D** **Pick someone else when it runs out**: a new winner is picked from the same entries, and pinged. **At most** sets how many times per giveaway, up to 20.
The claim button and the time to claim are the same in every server.
### Prize codes

- **A** **Give out prize codes**: hand each winner a code, like a game key or a gift code, privately when they claim. It needs the claim button.
- **B** **The codes**: one code per row, or paste a list, up to 500. **Add a code** adds a row. Each winner gets the next code, and no code is given twice. A code that was given out stays in the list but is skipped. When they're all gone, winners are told to ask the host. The codes are this server's own.
### Claim replies
Each reply only shows to the member who pressed the claim button.
| Reply | When it's sent |
| --- | --- |
| When a winner claims their prize | After they press the claim button |
| When a winner gets a prize code | With prize codes on. `{giveaway_code}` is the code, hidden until they click it |
| When someone else presses claim | Someone who didn't win presses the button |
| When a winner claims too late | The time to claim has run out |
## Schedule
### Saved giveaways
Save the giveaways you run often, ready to start in one press. Switch on **Start it again and again** for a weekly or monthly one.

- **A** **Save a giveaway** adds one. Up to 10.
- **B** **Start it now** starts it straight away. **Remove** deletes the saved giveaway.
- **C** **Name on this page** and **Prize**.
- **D** **Text on the post**: leave it empty for the post's own text.
- **E** **Runs for**, how many **winners** and the channel it's **Posted in**.
- **F** **Start it again and again**: a new giveaway starts by itself at each time, **Every** so often (at least every hour) **from** the first date and time you pick. Times are in your own time zone.
**Giveaways and stats** shows a repeating giveaway as **Starts soon** in the hour before it starts.
## Giveaways and stats
### Giveaway stats

- **A** **The last 30 days**: the giveaways run in this server, how many entries they got and how many different members won. **Refresh** loads them again.
### Running giveaways
- **B** **Running now**: each giveaway with its number, prize, channel, end time, winners and entries.
- **C** **End now** ends it early and picks the winners. **Cancel** stops it with no winners: press it, then **Sure? Cancel it**.
- **D** **Entrants and winners** opens it. **Hide entrants** closes it again.
- **E** What it says, who hosted it, the winners once they're picked, and who entered. Press a member to copy their mention.
### Ended giveaways

- **A** An ended giveaway: its prize, when it ended, the winners and the entries. A cancelled one is tagged **Cancelled**.
- **B** **Reroll** picks new winners from the same entries, never an earlier winner.
- **C** Opened with **Entrants and winners**: who hosted it, who won and who entered.
Ended giveaways stay for as long as entries are kept (**Winners** tab).
## Drops
A drop is a giveaway where the first people to press win, with no draw. Start one with `/giveaway drop`. The post has a **Grab it** button and says how many prizes are left. Each member can grab once, and when they're all gone the drop ends by itself. A drop runs for a week. With prize codes on, each member who grabs one gets a code.
## Picture cards
Giveaways can put an image card on its messages, made with the Card Studio. Each message that can have one has **Add a picture card**, **Designs** and **Edit card** under it. **Edit card** opens the Card Studio on that card, and the preview shows it under the message.
| Card | Where it shows | Starts |
| --- | --- | --- |
| **Winner** | On the winners announcement, and a reroll's | On |
| **Nitro winner** | A second winner design, picked under **Designs** | |
| **Giveaway live** | On the giveaway post, drawn once when it goes up | Off |
| **Entry ticket** | On the private You're in! reply, with their ticket number | Off |
| **Results** | On the ended post: the winners, who claimed, and entries per hour | Off |
| **Drop** | On a drop's post, and again when it ends with who grabbed it | Off |
| **Luckiest members** | With `/giveaway luckiest` (see below) | Off |
- The winner card shows the first winner's picture, with "+2 more" when there are more.
- The results card's chart counts entries from when the card is turned on.
- Cards are free on every bot. A bot draws up to 30 cards a minute; on a very busy giveaway some replies go without one.
## Luckiest members
`/giveaway luckiest` shows who has won the most giveaways in the server this year, as a column chart with the top 5. Every draw, reroll and drop grab counts. A reroll takes the win back from the member it replaced, and the count starts again each new year. With the card off, the command replies with a list instead. Turn it on and change it on the **Giveaways and stats** tab.
## Commands

- **A** `/giveaway`: press **11 subcommands** to see them all. Each subcommand is its own command. **STAFF** marks the ones only hosts can use.
- **B** **End giveaway**: right click a giveaway post, **Apps**, **End giveaway**. For hosts.
- **C** **Reroll giveaway**: right click a giveaway post, **Apps**, **Reroll giveaway**. For hosts.
- **D** **Settings** opens the command in the builder. The switch next to it turns the command on or off.
- **E** A subcommand: its switch turns it on or off, and **Edit** opens it in the builder.
The `giveaway` option is the giveaway's number. The post says it at the bottom, like **Giveaway #12**.
| Command | What it does | Who |
| --- | --- | --- |
| `/giveaway start` | Start a giveaway. Leave out the prize and a form asks for the prize, description, duration and winners. A duration is like `30m`, `2h` or `2d 12h` | Hosts |
| `/giveaway drop` | Start a drop: the first people to press win | Hosts |
| `/giveaway end` | End a giveaway now and pick its winners | Hosts |
| `/giveaway reroll` | Pick new winners for a giveaway that has ended. `how_many` picks fewer, and `member` replaces just that winner | Hosts |
| `/giveaway edit` | Change a running giveaway's prize, winners, time left from now or description | Hosts |
| `/giveaway pause` | Pause a giveaway's timer. Nobody can enter while it's paused | Hosts |
| `/giveaway resume` | Start a paused giveaway's timer again, with the time it had left | Hosts |
| `/giveaway cancel` | Cancel a giveaway without picking winners. `delete_post` deletes its post too | Hosts |
| `/giveaway list` | The giveaways running in this server, privately | Everyone |
| `/giveaway entrants` | Who entered a giveaway, 20 to a page, privately and without pinging them | Everyone |
| `/giveaway luckiest` | Who has won the most giveaways this year, as a card or a list | Everyone |
| **End giveaway** | Right click a giveaway post to end it now | Hosts |
| **Reroll giveaway** | Right click a giveaway post to pick new winners | Hosts |
Hosts are members with a host role from the **Post** tab, or **Manage Server**.
## Events
Giveaways is made of ordinary builder blocks. Open an event to see how it works, or add your own blocks.

- **Start a Giveaway** numbers the giveaway, saves it, posts it with its buttons, and sets the timer that ends it.
- **Update the Post** draws the post again with its live entry count, or its ended look.
- **Draw Winners** picks the winners, announces them with the claim button and gives the winner role. It also rerolls.
- **Cancel a Giveaway** stops a giveaway without picking anyone.
- **A member leaves** takes a member who leaves the server out of every giveaway that is running.
- **Hourly Check** ends giveaways whose timer was missed, finishes a draw that stopped half way, and deletes old giveaways.
- **A** **Open in builder** opens the event in the Command Builder.
- **B** The switch turns the event on or off.
- **C** **Show variable names** shows the variable behind each setting on the page, if you want to use them in your own commands.
The first four run when another block triggers them, with **Trigger a Custom Event**: the commands, the buttons, the page and the hourly check all use them.
> **Note:** The settings on this page are read by the events' blocks, so changing a setting never changes the events. If you change an event and want the original back, use its reset on the Giveaways page.
## Message variables
Every giveaway message can use these. Each message card lists the ones it can use.
| Variable | What it shows |
| --- | --- |
| `{giveaway_prize}` | The prize |
| `{giveaway_description}` | The description the host typed, empty when none |
| `{giveaway_number}` | The giveaway's number, like 12 |
| `{giveaway_host}` | Who started it, as a mention |
| `{giveaway_channel}` | The giveaway's channel, as a mention |
| `{giveaway_link}` | A link to the giveaway post |
| `{giveaway_winners_count}` | How many winners it picks |
| `{giveaway_winners}` | The winners, as mentions |
| `{giveaway_winners_verb}` | "was" for one winner, "were" for more |
| `{giveaway_winners_word}` | "winner is" for one winner, "winners are" for more |
| `{giveaway_winners_noun}` | "winner" or "winners" |
| `{giveaway_entries}` | Entries so far, counting bonus entries |
| `{giveaway_entries_word}` | "entry" or "entries" |
| `{giveaway_members}` | How many members entered |
| `{giveaway_members_word}` | "member" or "members" |
| `{giveaway_bonus_line}` | Who gets bonus entries (empty when bonus entries are off) |
| `{giveaway_ends_relative}` | When it ends, like "in 2 hours" |
| `{giveaway_ends_date}` | When it ends, as a date and time |
| `{giveaway_ends_line}` | "Ends in 2 days" with the date, or that it's paused |
| `{giveaway_dm_line}` | "Winners get a DM when they win." while winner DMs are on, else empty |
| `{giveaway_my_entries}` | The member's entries (private replies) |
| `{giveaway_my_entries_word}` | "entry" or "entries" (private replies) |
| `{giveaway_problem}` | Why the member can't enter (private replies) |
| `{giveaway_code}` | The winner's prize code (claim replies) |
## Limits
| What | Limit |
| --- | --- |
| Giveaways running at once, per server | 25 |
| Winners per giveaway | 50 |
| How long a giveaway runs | 1 minute to 90 days |
| Bonus entry roles | 10, each +1 to +10 |
| Saved giveaways | 10 |
| Entries kept after the draw | 1 to 90 days, 30 to start |
Every feature is free for every bot. On free bots, the module's messages have a small **Made with BotGhost** line under them. Premium bots don't.
## Fair and within Discord's rules
- Entering is always free. Don't ask members to pay, buy items or join another server to enter.
- Winners are told in the channel. DMs to winners are off until you turn them on.
- Giveaways only keeps member IDs. Who entered is deleted after the days you set on the **Winners** tab, and members who leave your server are taken out of running giveaways straight away.
- The post shows who gets bonus entries, and the **Entrants** button and `/giveaway entrants` show who entered, so everyone can see the draw is fair.
## Good to know
- Each server has its own channel, hosts, entry rules, replies, bonus entries, draw settings, winners' messages, winner role, prize codes and saved giveaways. Pick the server at the top of the page before you set them. A setting a server has its own value for is tagged with the server's name and icon. The post's messages and buttons, the claim settings, the defaults and the log lines are the same in every server; their cards say so.
- **Show variable names** under the events shows the variable behind each setting, if you want to use them in your own commands.
- Your bot can be offline when a giveaway ends. The **Hourly Check** ends it once your bot is back.
- After an update to Giveaways, the page shows an **Update** button. Your own changes to the events are kept.
## Common questions
**A giveaway ended but nobody won**
Check that:
- Enough members entered. With fewer entries than **Least entries for a draw** on the **Winners** tab, nobody wins.
- The members who entered are still in the server and still pass the rules on the **Entering** tab. With **Check the winners again at the draw** on, those who don't are skipped.
**The winners didn't get the winner role**
Check your bot's role is above the winner role in **Server Settings > Roles**, and has **Manage Roles**.
**What happened to the old Giveaways?**
The new Giveaways replaces the old Giveaways page. Bots that still have the old one on keep it as **Giveaways (old)** in the module list. Its settings don't move across, so set up the new one from the start.
---
# Music
Source: https://botghost.com/docs/fun-modules/music
Play music in your Discord server with pre-built commands
.png)
> **Warning:** This module requires a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
> **Note:** If you are looking for instructions on how to use the Music Blocks, please see [Music Actions](https://botghost.com/docs/custom-commands-and-events/actions/music-actions).
The [Music](https://dashboard.botghost.com/dashboard/music) module gives you access to pre-built commands for the music blocks, allowing your bot to play music in your Discord server!
## Commands
In this area, you can view and modify the commands of the Music module. Below you may find some information on each command of the module.
.png)
**/music seek**
This command allows you to go to (or "seek" to) a specific time in the current song that is playing.
**/music pause**
This command will pause the currently playing song. Use `/music resume` to resume playing the song.
**/music queue**
This command will return every song that is currently in the music queue and information about the currently playing song.
**/music clear-filters**
This command will clear all filters added with the `/music apply-filter` command.
**/music track**
This command returns information about the song that is currently playing, including the title, artist, progress and album art.
**/music play**
Plays a song in the voice channel you or the bot is currently in. Accepts song titles, URLs, or playlist URLs.
**/music stop**
Stops playing music and clears the queue.
**/music replay**
Replays the current song from the beginning.
**/music disconnect**
Disconnects the bot from the voice channel and resets the queue, filters, and settings.
**/music resume**
Resumes playback of music paused with `/music pause`.
**/music set-autoleave**
Configure whether to automatically disconnect the bot from the voice channel when the queue ends.
**/music set-autoplay**
Configure whether to automatically queue similar songs when the queue ends.
**/music apply-filter**
Apply various sound filters to the music playback. Use `/music clear-filters` to clear them.
**/music skip**
Skips the currently playing song.
**/music remove**
Remove a specific song from the queue based on queue position.
**/music shuffle**
Shuffles the music queue.
**/music set-volume**
Sets the volume of the music (0-200).
**/music loop**
Choose whether to loop the currently playing track or queue.
## Events
The music module is also provided with two events:
.png)
**Set voice channel status to song data**
This event will set the voice channel status to information about the currently playing song when a song starts plating
**Remove voice status song data**
This event will remove the status set by `Set voice channel status to song data` when a song finishes playing.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intented.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Translation
Source: https://botghost.com/docs/utility/translation
Communicate in your multilingual server with ease!
.png)
> **Warning:** This module is only available to users with a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans).
The [Translation](https://dashboard.botghost.com/dashboard/module/6fef2574-418b-47cd-adef-22c9c3e88051/translation) module allows you to translate texts via a Custom Command, quick-translations by reacting with a specified emoji, daily translation limits, and more!
## Credentials
The Translation module requires you to add your own DeepL API key in order to handle translations, allowing you to select the account tier and the daily translations limit.
To create an API key, follow the steps below.
**Step 1.** Create an account or log in the official [DeepL website](https://www.deepl.com/pro#developer).
**Step 2.** Select the tier you wish to use for your translations, whether it is the Free Tier or Paid Tiers. If you wish to have the free tier, please select 'Sign up for free'.
*DeepL Tiers for the Translation module*
**Step 3.** Fulfill the following details. This is used to avoid potential misuses of their free API. DeepL will not charge you unless you manually upgrade your current subscription to a paid one.
*DeepL Details for the Translation module*
**Step 4.** Once you have successfully fulfilled all the details, accept [DeepL's Terms & Conditions](https://www.deepl.com/en/pro-license_embedded) and press 'Sign up for free'.
**Step 5.** A similar page will appear upon signing up for free, click on 'Account management' to go to your account settings. If this page does not appear, please go to your [account settings](https://www.deepl.com/your-account/plan).
*DeepL Account Management for the Translation module*
**Step 6.** Get the Authentication Key for DeepL in your [account summary](https://www.deepl.com/your-account/summary) settings located in the bottom right corner.
*Authentication Key for DeepL API for the Translation module*
**Step 7.** Once copied, paste it in the 'DeepL API Key' field in BotGhost.
## Settings
### Credentials
This section is where you input the API Key found from [Credentials](https://botghost.com/docs/utility/translation#credentials) and also change other account settings.
.png)
#### **DeepL API Key**
Paste your DeepL API Key here. Learn how to get one in the [Credentials](https://botghost.com/docs/utility/translation#credentials)section. Make sure to not share it with anyone!
#### **DeepL Account Tier**
Set the account tier you selected when getting your API key. Remember to select the correct one as DeepL handles different API domains for free and paid tiers.
#### **Daily Translation Limit**
Define the maximum amount of translations that can be executed per day. Setting this to 0 will disable this limit.
### Quick-Translation
The following parameters allow you to react with a specific emoji to automatically translate the content of the message, select the channels for quick translations, the required roles, the target language, and toggle if you wish to delete the original message upon successful translation.
.png)
#### **Trigger Reactions**
Select up to 10 different emojis to trigger the quick-translations.
#### **Quick-Translation Channels**
Choose the channels you wish to allow for quick-translation. If none is chosen, this feature will be available across all channels.
#### **Required Roles**
Select the roles that will require users with these roles to be the ones to use the quick translation.
#### **Target Language**
Define which language should the messages be translated to when triggering the quick-translations.
#### **Delete Original Message**
Enable or disable to delete the original message after a successful quick-translation.
### Translate Command
Define the allowed roles and the default DeepL language when using the /translate custom command.
.png)
#### **Allowed Roles**
Select the roles that users must have to run the `/translation` custom command.
#### **Default Language (DeepL)**
Choose the language to translate messages to when using the custom command.
#### Translation Command Reply
Customize the reply in the /translate custom command. You can use `{original_message}` and `{translated_message}` to return the content of the original message and the translated content, respectively. All [variables](https://botghost.com/docs/custom-commands-and-events/variables) can be used. You can also toggle the [embed](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/embed-reply) to a [plain text](https://botghost.com/docs/custom-commands-and-events/actions/legacy-reply-actions/plain-text-reply) response using the switch in the top right.
#### **Character Limit**
Define the maximum amount of characters the command should allow to translate.
---
## Command
Find the command for the Translation module and modify them. This will allow you to fine-tune the command's logic to your liking.
*Custom Command for the Translation module*
**/translate**
Translate the given text to the target language.
## Events
Explore the events within the Translation module and customize them to your preferences. This allows you to change the events' logic according to your liking and needs.
*Custom Events for the Translation module*
**Quick-Translation**
This event handles the quick-translations, triggered with each reaction added to a message.
**Daily Limit Handler**
The timed event triggered daily to handle the daily limits.
---
> **Important:** It's advised that you do not edit the commands and events unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intended.
>
> Additionally, a copy of the edited commands / events will be created if you update the module.
---
# Weather
Source: https://botghost.com/docs/utility/weather
Get the current and future weather forecast of a city.
.png)
The [Weather](https://dashboard.botghost.com/dashboard/module/e09631dc-4f8f-4bf7-a02c-27ea0187d78f/weather) module is a simple way to get the weather of any location in the world directly to your bot.
## Settings
### Measurement Scales
.png)
#### Temperature Scale
The unit of temperature to display the weather temperatures in. Can be set to Celsius or Fahrenheit.
#### Wind Scale
The unit of speed to display the wind speeds in. You are able to display the speeds in miles per hour (MPH) or kilometers per hour (KPH).
### Embed Configuration
.png)
#### Display Images
The option to display weather related images in the command's embed.
#### Embed Color
The embed color for all outputs in the weather command.
---
## Commands
In this area, you can view and modify the command of the Weather module. Below you may find some information on the command of the module.
**/weather**
Obtain the current and future weather information for any location in the world by providing a base location.
.png)
---
> **Important:** It's advised that you do not edit the command unless you have a good understanding of BotGhost and its Command Builder. If you encounter any issues, you might want to reset the module for it to work again as intended.
>
> Additionally, a copy of the edited command will be created if you update the module.