> ## Documentation Index
> Fetch the complete documentation index at: https://docs.hamptonn.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Music

> Play music and manage audio in your voice channels.

<Note>
  You must be in a voice channel to use music commands.
</Note>

## Basic Music Controls

<AccordionGroup>
  <Accordion title="Play music" icon="play">
    <CodeGroup>
      ```javascript slash command theme={null}
      /music play [song/playlist or song url]
      ```

      ```javascript prefix command theme={null}
      .play [song/playlist or song url]
      .p [song/playlist or song url]
      ```

      ```javascript example theme={null}
      /music play pink diamond charli xcx
      .play https://open.spotify.com/track/3V0PgcsUMlAGXwCD0084pY?si=4a63354e1d014c9c
      .p stars pink pantheress
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Skip current song" icon="forward">
    <CodeGroup>
      ```javascript slash command theme={null}
      /music skip
      ```

      ```javascript prefix command theme={null}
      .skip
      ```

      ```javascript example theme={null}
      /music skip
      .skip
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Pause playback" icon="pause">
    <CodeGroup>
      ```javascript slash command theme={null}
      /music pause
      ```

      ```javascript prefix command theme={null}
      .pause
      ```

      ```javascript example theme={null}
      /music pause
      .pause
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Resume playback" icon="play">
    <CodeGroup>
      ```javascript slash command theme={null}
      /music resume
      ```

      ```javascript prefix command theme={null}
      .resume
      ```

      ```javascript example theme={null}
      /music resume
      .resume
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Stop and clear queue" icon="stop">
    <CodeGroup>
      ```javascript slash command theme={null}
      /music stop
      ```

      ```javascript prefix command theme={null}
      .stop
      ```

      ```javascript example theme={null}
      /music stop
      .stop
      ```
    </CodeGroup>
  </Accordion>
</AccordionGroup>

## Queue Management

<AccordionGroup>
  <Accordion title="View current queue" icon="list">
    <CodeGroup>
      ```javascript slash command theme={null}
      /music queue
      ```

      ```javascript prefix command theme={null}
      .queue
      .q
      ```

      ```javascript example theme={null}
      /music queue
      .queue
      .q
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Shuffle queue" icon="shuffle">
    <CodeGroup>
      ```javascript slash command theme={null}
      /music shuffle
      ```

      ```javascript prefix command theme={null}
      .shuffle
      ```

      ```javascript example theme={null}
      /music shuffle
      .shuffle
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Remove song from queue" icon="trash">
    <CodeGroup>
      ```javascript slash command theme={null}
      /music remove [song position or name]
      ```

      ```javascript prefix command theme={null}
      .remove [song position or name]
      ```

      ```javascript example theme={null}
      /music remove 3
      .remove Never Gonna Give You Up
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Move song in queue" icon="arrows-up-down">
    <CodeGroup>
      ```javascript slash command theme={null}
      /music move [from position] [to position]
      ```

      ```javascript prefix command theme={null}
      .move [from position] [to position]
      ```

      ```javascript example theme={null}
      /music move 3 1
      .move 5 2
      ```
    </CodeGroup>
  </Accordion>
</AccordionGroup>

## Playback Controls

<AccordionGroup>
  <Accordion title="Set volume" icon="volume-high">
    <CodeGroup>
      ```javascript slash command theme={null}
      /music volume [volume level]
      ```

      ```javascript prefix command theme={null}
      .volume [volume level]
      ```

      ```javascript example theme={null}
      /music volume 50
      .volume 75
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Seek to time" icon="clock">
    <CodeGroup>
      ```javascript slash command theme={null}
      /music seek [time]
      ```

      ```javascript prefix command theme={null}
      .seek [time]
      ```

      ```javascript example theme={null}
      /music seek 1:30
      .seek 45s
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Set loop mode" icon="repeat">
    <CodeGroup>
      ```javascript slash command theme={null}
      /music loop [loop type]
      ```

      ```javascript prefix command theme={null}
      .loop [loop type]
      ```

      ```javascript example theme={null}
      /music loop track
      .loop queue
      .loop off
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Play previous track" icon="backward">
    <CodeGroup>
      ```javascript slash command theme={null}
      /music previous
      ```

      ```javascript prefix command theme={null}
      .previous
      .prev
      ```

      ```javascript example theme={null}
      /music previous
      .prev
      ```
    </CodeGroup>
  </Accordion>
</AccordionGroup>

## Information & Connection

<AccordionGroup>
  <Accordion title="Now playing" icon="music">
    <CodeGroup>
      ```javascript slash command theme={null}
      /music nowplaying
      ```

      ```javascript prefix command theme={null}
      .nowplaying
      .np
      ```

      ```javascript example theme={null}
      /music nowplaying
      .np
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Disconnect from voice" icon="sign-out-alt">
    <CodeGroup>
      ```javascript slash command theme={null}
      /music disconnect
      ```

      ```javascript prefix command theme={null}
      .disconnect
      ```

      ```javascript example theme={null}
      /music disconnect
      .disconnect
      ```
    </CodeGroup>
  </Accordion>

  <Accordion title="Music command help" icon="question">
    <CodeGroup>
      ```javascript syntax theme={null}
      /music
      ```

      ```javascript example theme={null}
      /music
      ```
    </CodeGroup>
  </Accordion>
</AccordionGroup>
