> For the complete documentation index, see [llms.txt](https://infinitybot.gitbook.io/infinitybot-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://infinitybot.gitbook.io/infinitybot-docs/community-engagement/giveaways.md). Agents can also search and read this documentation through its [MCP server](https://infinitybot.gitbook.io/infinitybot-docs/~gitbook/mcp).

# Giveaways

The giveaway system allows you to select a random user in your server and let them win something

## Start a Giveaway

You can start a new giveaway using the `/giveaway start` command. The bot will then guide you through the setup.&#x20;

{% stepper %}
{% step %}

### Select Giveaway Channel

First of all, you will need to select the channel you want to run the giveaway in, for example #giveaway.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FLjZviL8PrvfqKjLHqem2%2Fimage.png?alt=media&amp;token=933855da-c79b-4310-952b-91fc4954dc76" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Set Role

You can also optionally select a role that users need to join the giveaway. If a user does not have that role, they can not join. Leave this black to allow anyone to join.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2F7rHYm1JQA7H3WZO8jDAA%2Fimage%20(1).png?alt=media&amp;token=309ac5b5-0b05-4757-9c9c-d2a38e2c82ca" alt=""><figcaption></figcaption></figure>
{% endstep %}

{% step %}

### Set Details

You can set up the giveaway's details with the 'Set details' button as shown below.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FtlXvRqAvcqshTLMURAHy%2Fimage.png?alt=media&amp;token=577accb6-2e43-4453-a22b-196dfd578dc7" alt=""><figcaption></figcaption></figure>

After pressing that button, the bot will provide you with a form:

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FN8CThTZ49piSBW7yHEsa%2Fimage.png?alt=media&amp;token=2fa72fb6-eabc-458e-b9e0-7810ac33fdfd" alt="" width="307"><figcaption></figcaption></figure>

| Form question | Function                                                                                              |
| ------------- | ----------------------------------------------------------------------------------------------------- |
| Prize         | In this field, please enter the prize the giveaway winner will get                                    |
| Duration      | Here you can enter the duration of your giveaway. Please enter times like `30m`, `1h`, `12h`, or `3d` |
| Winners       | In this field, please select the amount of winners                                                    |
| Ping role     | In this field, you can optionally select a role that should be pinged when the giveaway starts        |
| DM winner     | Select this box if you want the bot to DM the giveaway winner                                         |
| {% endstep %} |                                                                                                       |

{% step %}

### Start Giveaway

After setting all details, press the 'Start giveaway' button. This will start your giveaway with the settings you selected above.

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FTaRTfwmj7BRJCzteeWS5%2Fimage%20(3).png?alt=media&amp;token=b43100b7-d17c-47ca-bf8f-8fde4b986ea8" alt=""><figcaption></figcaption></figure>

The giveaway will look like this:&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FRidXYE1n7GMy1DGOkqhp%2Fimage.png?alt=media&amp;token=94377cee-8e5a-4408-a36e-b279de5d840b" alt=""><figcaption></figcaption></figure>

{% hint style="info" %}
You can edit your started giveaway here.
{% endhint %}
{% endstep %}
{% endstepper %}

## Manage a Giveaway

### How to find a giveaway ID

To start managing a giveaway, you need it's ID.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2F0w2FZwYGKUyo0xLF4a24%2Fimage.png?alt=media&amp;token=30480695-8141-4f3d-a243-ec61e452c532" alt="" width="409"><figcaption></figcaption></figure>

You can find the ID in the original giveaway message or by pressing the 'List giveaways' button.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FwOZoNNLptglideLQcwvy%2Fimage%20(4).png?alt=media&amp;token=9aa4843f-39e3-4edf-a672-f71536e47d9d" alt="" width="242"><figcaption></figcaption></figure>

### Available Buttons

After entering the giveaway ID, you can use a set of buttons as shown below. You can check out the heads below to find out what those buttons do.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FIv5KqEJC0gRSQhRxfpm7%2Fimage.png?alt=media&amp;token=61d27f0e-adf8-4b0d-8ded-4c3bc09b19d7" alt="" width="300"><figcaption></figcaption></figure>

#### End

This button will end the giveaway. It will still choose a winner, but will ignore the original set time to end.&#x20;

#### Update

With this button you can edit the giveaway's content. After pressing the button, the bot will provide you with a form:

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2FhQrDlH22smNRFPCBIlcI%2Fimage.png?alt=media&amp;token=f8413512-944f-495e-ae3d-6837cc196fd1" alt="" width="311"><figcaption></figcaption></figure>

| Form question  | Function                                                                                                                            |
| -------------- | ----------------------------------------------------------------------------------------------------------------------------------- |
| Prize          | In this field you can enter the new prize that users can win from the giveaway                                                      |
| Winners        | In this field, please select the amount of users that will win the giveaway                                                         |
| Required roles | In this field you can select the role users need to have to participate in the giveaway. Select @everyone to allow everyone to join |

#### Info

When you press this button, you will get some information about the giveaway.&#x20;

<figure><img src="https://2255898787-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZqXmdaTQZknKkvcG0Uxz%2Fuploads%2Fz5zomK5P3jgmuqvipNPh%2Fimage.png?alt=media&amp;token=6e76e944-0799-415d-af8b-12095b33e6a0" alt="" width="338"><figcaption></figcaption></figure>

#### Erase

This button will delete and erase your giveaway. No winner will be picked, and the ID will no longer be valid.&#x20;
