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

# Pagination

> Create multi-page embed panels that users can navigate with buttons.

# Pagination

> Create multi-page embed panels that users can navigate with buttons.

## How it works

Pagination lets you create a named panel with multiple embed pages. When sent to a channel, users can flip through pages using the ⏮ ◀ ▶ ⏭ buttons. Useful for rules, guides, or anything that spans multiple screens.

## Setup

<Steps>
  <Step title="Create a panel">
    Give your pagination a name:

    ```bash theme={null} theme={null}
    ;pagination create rules
    ```
  </Step>

  <Step title="Add pages">
    Add pages using embed code:

    ```bash theme={null} theme={null}
    ;pagination add rules {embed}$v{title: Server Rules}$v{description: Page 1 content here}
    ```

    Run this again for each page you want to add.
  </Step>

  <Step title="Send it to a channel">
    Send the panel to a channel — raze will post it with navigation buttons automatically:

    ```bash theme={null} theme={null}
    ;pagination send rules #rules
    ```
  </Step>
</Steps>

## Commands

<Tabs>
  <Tab title="Create">
    Create a new pagination panel.

    ```bash theme={null} theme={null}
    ;pagination create (name)
    ```

    ```bash theme={null} theme={null}
    ;pagination create rules
    ```
  </Tab>

  <Tab title="Add page">
    Add a page to an existing panel using embed code.

    ```bash theme={null} theme={null}
    ;pagination add (name) (embed code)
    ```

    ```bash theme={null} theme={null}
    ;pagination add rules {embed}$v{title: Rule 1}$v{description: Be respectful.}
    ```
  </Tab>

  <Tab title="Remove page">
    Remove a specific page by number.

    ```bash theme={null} theme={null}
    ;pagination remove (name) (page)
    ```

    ```bash theme={null} theme={null}
    ;pagination remove rules 2
    ```
  </Tab>

  <Tab title="Send">
    Post the panel in a channel with navigation buttons.

    ```bash theme={null} theme={null}
    ;pagination send (name) (channel)
    ```

    ```bash theme={null} theme={null}
    ;pagination send rules #rules
    ```
  </Tab>

  <Tab title="List">
    View all pagination panels in the server.

    ```bash theme={null} theme={null}
    ;pagination list
    ```
  </Tab>

  <Tab title="Delete">
    Delete a panel and all its pages.

    ```bash theme={null} theme={null}
    ;pagination delete (name)
    ```

    ```bash theme={null} theme={null}
    ;pagination delete rules
    ```
  </Tab>

  <Tab title="Reset">
    Remove all pagination panels from the server.

    ```bash theme={null} theme={null}
    ;pagination reset
    ```
  </Tab>
</Tabs>
