# Introduction

Giftcord makes it easy to create and manage giveaways for your community as a reward for their continued support and engagement.

### Guides

Simple, easy to understand guides to get your way around Giftcord and become a pro.

{% content-ref url="/pages/e97NibKONnqghBfox8Dr" %}
[Guides](/guides/guides)
{% endcontent-ref %}

### API

Publicly accessible statistics for Giftcord - maybe a fancy status detector, or stats tracker?

{% content-ref url="/pages/WF8VJDgzpJBX6Qb8GoST" %}
[API](/api/giftcord-api)
{% endcontent-ref %}


# Guides

All guides created to optimise your use of Giftcord.

{% hint style="info" %}
Giftcord strictly uses slash-commands and button interactions for all features and commands. Giftcord's command prefix is `/` and command permissions should be configured before use.
{% endhint %}

{% content-ref url="/pages/3HuXt8wqXbronI1TqZkf" %}
[Creating Giveaways](/guides/creating-giveaways)
{% endcontent-ref %}

{% content-ref url="/pages/Uy9JgKkt72BjzPn9QgDK" %}
[Permissions Guide](/guides/permissions-guide)
{% endcontent-ref %}


# Creating Giveaways

How to create a giveaway with Giftcord.

In any channel of the server, start typing `/create` - you should see something like this:

![Giftcord create command - Preview](https://1267573648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBJsL1zKDyPLe5Cn2EsTT%2Fuploads%2Fu4QgJp0NLYJS3qcicUs2%2Fimage.png?alt=media\&token=875883dd-09f2-49fb-8975-47423c91a529)

You have 4 required options to use which make creating giveaways simple and quick. Start by entering a channel - Discord will help you out by suggesting the channels you are typing, just pick one and the channel the giveaway will be sent to is set.

![Giftcord create command - Channels](https://1267573648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBJsL1zKDyPLe5Cn2EsTT%2Fuploads%2F70N9B2FaGY7O8G2Z7vey%2Fimage.png?alt=media\&token=b411e889-2155-4548-9f50-3c548056e5a3)

You now need to enter a number in the `winners` section - There is a minimum limit of one winner, and a maximum of 10 winners without premium. With Giftcord Premium you can have up to 50 winners per giveaway!

![Giftcord create command - Winners](https://1267573648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBJsL1zKDyPLe5Cn2EsTT%2Fuploads%2FpdTBR5oshhoUTaBolwwJ%2Fimage.png?alt=media\&token=51aa51eb-0b85-46cb-94d6-303be689328a)

Wonderful! Now you need to specify the prize the winner(s) will receive. Prizes are limited to 100 characters to reduce spam and abuse. Please note that Giftcord will not automatically grant a winner their prize, for example entering "Discord Nitro" as a prize will not prompt Giftcord to automatically give the winners *free* Discord Nitro.

![Giftcord create command - Prize](https://1267573648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBJsL1zKDyPLe5Cn2EsTT%2Fuploads%2FN8pSmPOuxCjEuIeT4EtQ%2FScreenshot%202022-08-21%20at%2002.38.48.png?alt=media\&token=2c0b9093-52aa-461f-b9a9-e2e0bb992be8)

Just one more thing left to do... You need to specify how long your giveaway shall last! This is really easy and can be abbreviated in many different ways. Giveaways have a minimum duration of 30 seconds, while can last as long as 31 days! Giftcord Premium users are able to have giveaways last up to 3 months before drawing! To make entering a duration simple, follow this rule of thumb: `1h` means an hour, `3d` means 3 days. You could even do `5d34m30s` if you so wanted to...

![Giftcord create command - Duration](https://1267573648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBJsL1zKDyPLe5Cn2EsTT%2Fuploads%2FwdU5NUY4bJZsiMm7dGb9%2Fimage.png?alt=media\&token=a41be889-be47-4164-9bff-0f4f6dfe4192)

Congratulations! You've successfully made a giveaway using Giftcord's super simple and quick `/create` command. Once you've sent the command to the channel, you'll see this message to confirm what you've created.

![Giftcord create command - Confirmation](https://1267573648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBJsL1zKDyPLe5Cn2EsTT%2Fuploads%2FZ1h5dsFYIlHsSR2x7Wpo%2Fimage.png?alt=media\&token=0aad314d-a1ee-473f-9444-54d620c2f190)

Of course, not forgetting - the giveaway message will be sent to the channel you specified in the Channel step of the command. You'll see a message that looks something like this:

![Giftcord create command - Giveaway created](https://1267573648-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FBJsL1zKDyPLe5Cn2EsTT%2Fuploads%2FjZkr2TWE7AFCXMfepQlr%2Fimage.png?alt=media\&token=327e39a9-210e-42eb-b12b-3ad7cd1b237c)

Now your giveaway is live and running, users of your server can choose to **Enter** the giveaway (by clicking the green Enter button), or **Leave** the giveaway (if they have entered it - by clicking the red Leave button). Users can also click the **View** button which will open the web browser to show a live countdown timer on Giftcord's website, alongside a list of users that have entered.


# Permissions Guide

A complete guide to organising your slash-command permissions for Giftcord.

*This guide is currently being written, thank you for your patience.*


# Commands

See the full list of commands available with Giftcord.

| Command                   | Description                                                                                                 | Recommended Permission     |
| ------------------------- | ----------------------------------------------------------------------------------------------------------- | -------------------------- |
| **Giveaway Commands**     |                                                                                                             |                            |
| `/create`                 | Creates a giveway with the chosen options.                                                                  | Giveaway Manager           |
| `/delete`                 | Deletes a specified giveaway.                                                                               | Giveaway Manager           |
| `/draw`                   | Draws an entry from the specified giveaway.                                                                 | Giveaway Manager           |
| `/redraw`                 | Redraws an entry from the specified giveaway.                                                               | Giveaway Manager           |
| **General Commands**      |                                                                                                             |                            |
| `/checkentries`           | Check to see if yourself or another user have entered a specified giveaway.                                 | Giveaway Manager \| Anyone |
| `/commands`               | Lists all commands.                                                                                         | Anyone                     |
| `/credits`                | Shows everyone who helped make Giftcord possible.                                                           | Anyone                     |
| `/debug`                  | Shows debug information about Giftcord in the current server - mainly used for support requests.            | Administrator \| Anyone    |
| `/help`                   | Lists basic information to help with using Giftcord.                                                        | Anyone                     |
| `/invite`                 | Sends a clickable message to invite Giftcord to a different server.                                         | Anyone                     |
| `/language`               | Changes the language of Giftcord in the current server - can also display stats about the current language. | Administrator              |
| `/list`                   | Lists either the last 5 active or ended giveaways in the server.                                            | Giveaway Manager \| Anyone |
| `/ping`                   | Shows the response time of Giftcord.                                                                        | Anyone                     |
| `/premium`                | Lists the features of Giftcord Premium, shows if the server has premium or not.                             | Anyone                     |
| `/stats`                  | Shows wonderful and interesting stats about the use of Giftcord.                                            | Anyone                     |
| **Premium Commands (💎)** |                                                                                                             |                            |
| `/bonusrole` (💎)         | Sets a role to earn a bonus entry in a giveaway.                                                            | Giveaway Manager           |
| `/setemoji` (💎)          | Sets an emoji to be used in the Enter button of a giveaway.                                                 | Giveaway Manager           |


# Premium

Giftcord Premium features and information.

Subscribing to Giftcord Premium is the easiest way to support the development of Giftcord. Not only does it keep the bot online and functioning, it also helps to fund our own giveaways and of course you're able to claim fancy **premium** perks too!

In order to subscribe to Giftcord Premium you must have a Patreon account connected with your Discord account in order for us to verify the donation. Head over to our Patreon page by [**clicking here**](https://giftcord.xyz/premium).

#### Features

* Limitless giveaways running in your server.
* Have giveaways last up to **3 months**!
* Allow up to 50 winners **per giveaway**.
* Choose any role to gain a **bonus entry**!
* Set an emoji to be displayed next to the **Enter** button.

#### Support

If you require support about purchasing Giftcord Premium then join our [**support server**](https://giftcord.xyz/go/support) and contact a developer.


# Giftcord API

Giftcord provides a tiny API providing useful statistics.

See Giftcord's API endpoints here:

{% content-ref url="/pages/gWr0W9H2xBdrUGEmdqg9" %}
[Endpoints](/api/endpoints)
{% endcontent-ref %}


# Endpoints

A list of publicly accessible API endpoints for Giftcord.

## Live Statistics

<mark style="color:blue;">`GET`</mark> `https://giftcord.xyz/api/v1/stats`

Provides live statistics (such as server count and giveaway counts).

{% tabs %}
{% tab title="200: OK Successful request." %}

```javascript
{
    "guilds": 16000,
    "shards": 18,
    "channels": 650000,
    "members": 1750000,
    "giveaways": {
        "active": 120,
        "ended": 55,
        "archived": 400
    },
    "stats": {
        "commands": 1250,
        "giveaway_entries": 12000,
        "giveaway_winners": 2400,
        "messages": 12000000
    }
}
```

{% endtab %}
{% endtabs %}

## Live Status

<mark style="color:blue;">`GET`</mark> `https://giftcord.xyz/api/v1/status`

Provides live shard data for Giftcord.

{% tabs %}
{% tab title="200: OK Successful request." %}

```javascript
[
    {
        "id": 0,
        "guilds": 999,
        "ping": 156,
        "uptime": 2769645727
    },
    {
        "id": 1,
        "guilds": 866,
        "ping": 156,
        "uptime": 2769637215
    },
    {
        "id": 2,
        "guilds": 876,
        "ping": 158,
        "uptime": 2769626329
    },
    {
        "id": 3,
        "guilds": 879,
        "ping": 158,
        "uptime": 2769616118
    },
    {
        "id": 4,
        "guilds": 889,
        "ping": 156,
        "uptime": 2769606666
    },
    {
        "id": 5,
        "guilds": 908,
        "ping": 158,
        "uptime": 2769596226
    },
    {
        "id": 6,
        "guilds": 908,
        "ping": 157,
        "uptime": 2769586192
    },
    {
        "id": 7,
        "guilds": 924,
        "ping": 156,
        "uptime": 2769576990
    },
    {
        "id": 8,
        "guilds": 912,
        "ping": 156,
        "uptime": 2769566244
    },
    {
        "id": 9,
        "guilds": 944,
        "ping": 157,
        "uptime": 2769556123
    },
    {
        "id": 10,
        "guilds": 890,
        "ping": 153,
        "uptime": 2769546031
    },
    {
        "id": 11,
        "guilds": 927,
        "ping": 153,
        "uptime": 2769536365
    },
    {
        "id": 12,
        "guilds": 922,
        "ping": 156,
        "uptime": 2769525942
    },
    {
        "id": 13,
        "guilds": 869,
        "ping": 154,
        "uptime": 2769516490
    },
    {
        "id": 14,
        "guilds": 919,
        "ping": 156,
        "uptime": 2769506729
    },
    {
        "id": 15,
        "guilds": 900,
        "ping": 157,
        "uptime": 2769496298
    },
    {
        "id": 16,
        "guilds": 892,
        "ping": 155,
        "uptime": 2769486701
    },
    {
        "id": 17,
        "guilds": 868,
        "ping": 157,
        "uptime": 2769475356
    }
]
```

{% endtab %}
{% endtabs %}


