# Music Actions

{% hint style="warning" %}
Music blocks require a [Premium Subscription](https://botghost.com/docs/premium/premium-and-priority-hosting-plans#premium-plans) to function.
{% endhint %}

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 "mention")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.                                                                                                                                                                                                                          |
