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

# Giveaways

> Create and manage giveaways with haunt's customizable settings.

<Note>Haunt's prefix is set to `;` by default.</Note>
<Info>Use `;prefix set [character]` to change the prefix for your server.</Info>

## Start a new giveaway

Start a giveaway by using the `giveaway create` command.

<CodeGroup>
  ```javascript Syntax theme={null}
  ;giveaway create (duration) (winners) (reward) [{flags}]
  ```

  ```javascript Example theme={null}
  ;giveaway create 24h 5 Haunt Premium
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/haunt-74016d1b/JwsosTEPAJ56Q2SG/images/miscellaneous/giveaways/start.png?fit=max&auto=format&n=JwsosTEPAJ56Q2SG&q=85&s=e1fa1d002f5844181ff1aa7768eeaa4b" width="471" height="331" data-path="images/miscellaneous/giveaways/start.png" />
</Frame>

## Available Flags

The flags below can be used to modify entries to the giveaway.

<AccordionGroup>
  <Accordion title="Bonus">
    The bonus flag (`{bonus}`) will grant a member extra entires of your choosing when entering the giveaway only if they have that role.
  </Accordion>

  <Accordion title="Required">
    The required flag (`{required}`) will require a member to have certain roles to enter the giveaway.
  </Accordion>
</AccordionGroup>

## Rerolling an existing giveaway

Reroll the winners of a giveaway by using the `giveaway reroll` command.

<CodeGroup>
  ```javascript Syntax theme={null}
  ;giveaway reroll (Giveaway Id or Message Id)
  ```

  ```javascript Example theme={null}
  ;giveaway reroll 976937 | 1433895627447861248
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/haunt-74016d1b/JwsosTEPAJ56Q2SG/images/miscellaneous/giveaways/reroll.png?fit=max&auto=format&n=JwsosTEPAJ56Q2SG&q=85&s=24c71a7e7a0aa2b3a216d146e977154f" width="466" height="168" data-path="images/miscellaneous/giveaways/reroll.png" />
</Frame>

## Ending an existing giveaway

End an ongoing giveaway by using the `giveaway end` command.

<Note>This will select a random participant to in the giveaway to be the winner.</Note>

<CodeGroup>
  ```javascript Syntax theme={null}
  ;giveaway end (Giveaway Id or Message Id)
  ```

  ```javascript Example theme={null}
  ;giveaway end 976937 | 1433895627447861248
  ```
</CodeGroup>

<Frame>
  <img src="https://mintcdn.com/haunt-74016d1b/JwsosTEPAJ56Q2SG/images/miscellaneous/giveaways/end.png?fit=max&auto=format&n=JwsosTEPAJ56Q2SG&q=85&s=5624af91fa5edc616f604c3e2826797c" width="578" height="245" data-path="images/miscellaneous/giveaways/end.png" />
</Frame>
