Skip to content

Giveaway

The iHorizon giveaway module allows you to create and manage contests organized on your server. iHorizon keeps giveaway management simple and fast, and guarantees a fair draw for all participants. You can customize the rules, choose the prizes, and set the duration of your giveaways through a handful of commands.

/gw

Subcommand for giveaway category!

Subcommands

  • /gw create — Start a giveaway!
  • /gw go — Open an interactive giveaway panel to configure and launch a giveaway!
  • /gw end — Stop a giveaway!
  • /gw reroll — Reroll a giveaway winner(s)!
  • /gw list-entries — List all entries in giveaway!
  • /gw get-data — Get informations about a giveaway (JSON Body)
  • /gw get-all — Get informations about all giveaways in a guild (JSON Body)

/gw create <winner> <time> <requirement> <prize> [requirement-value] [image]

Prefix+gw-createAliases+gstart, +gcreate

Start a giveaway!

Option Type Required Description Choices
winner Number Yes Number of winner for the giveaways -
time String Yes The time duration of the giveaways -
requirement String Yes The requirement to enter into the giveaway None → none
Need Specific invitations amount → invites
Need specific messages number → messages
Need specific roles → roles
prize String Yes The giveaway's prize -
requirement-value String No The requirement value -
image String No Image showed on the giveaway's embed -

Requires the Manage Messages permission

Only members with the Manage Messages permission can use this command.

This command allows you to create a contest/giveaway on your server. After executing the command, the bot will send you an embed presenting the prize to be won, where users can participate by clicking a button.

Embed presenting the prize to be won where users can participate by clicking a button.

The command asks for four required options and two optional ones:

Required options

  • <winner> → How many winners the giveaway will have.
  • <time> → How long members have to enter (in minutes, hours, or days).
  • <requirement> → A condition members must meet to be allowed to enter:
    • None → No condition; anyone can enter.
    • Need Specific invitations amount → Members must have invited a certain number of people to the server.
    • Need specific messages number → Members must have sent a certain number of messages.
    • Need specific roles → Only members with a specific role can enter.
  • <prize> → The name of the prize the winner(s) will receive.

Optional options

  • [requirement-value] → The value tied to the chosen requirement: the number of invites or messages needed, or the required role. Leave it empty when the requirement is None.
  • [image] → An image to attach to the embed to make it more eye-catching.

Giveaway creation options (time, prize, prerequisites, etc.)


/gw end <giveaway-id>

Prefix+gw-endAliases+gstop, +gbreak

Stop a giveaway!

Option Type Required Description Choices
giveaway-id String Yes The giveaway id (is the message id of the embed's giveaways) -

Requires the Manage Messages permission

Only members with the Manage Messages permission can use this command.

How do I find a giveaway's ID?

Enable Discord's Developer Mode (User Settings → Advanced → Developer Mode). Then right-click the bot's giveaway message and choose "Copy Message ID". That ID is what the commands below expect.

Ends a running giveaway immediately and draws the winner(s) from the entrants right away, instead of waiting for the timer to run out.


/gw reroll <giveaway-id>

Alias+re

Reroll a giveaway winner(s)!

Option Type Required Description Choices
giveaway-id String Yes The giveaway id (is the message id of the embed's giveaways) -

Requires the Manage Server permission

Only members with the Manage Server permission can use this command.

Re-draws a new winner for a giveaway that has already ended. Handy when the original winner is unreachable or doesn't claim their prize.


/gw list-entries <giveaway-id>

Alias+list

List all entries in giveaway!

Option Type Required Description Choices
giveaway-id String Yes The giveaway id (is the message id of the embed's giveaways) -

Requires the Manage Messages permission

Only members with the Manage Messages permission can use this command.

Shows the full list of everyone who has entered the given giveaway.


/gw get-data <giveaway-id>

Alias+get

Get informations about a giveaway (JSON Body)

Option Type Required Description Choices
giveaway-id String Yes Giveaway's ID -

Requires the Manage Messages permission

Only members with the Manage Messages permission can use this command.

Displays detailed data about a particular giveaway, including the channel it is in, the number of winners, the prize, the host, whether it has ended, whether it is still valid, how many people have entered, and when it ends.


/gw get-all

Alias+gall

Get informations about all giveaways in a guild (JSON Body)

Requires the Manage Messages permission

Only members with the Manage Messages permission can use this command.

Shows a summary of every giveaway on your server at once, both finished and ongoing, so you get the full picture without looking each one up.

Embed showing all giveaway data from your server


/gw go

Prefix+gw-goAlias+ggo

Open an interactive giveaway panel to configure and launch a giveaway!

Requires the Manage Messages permission

Only members with the Manage Messages permission can use this command.

Prepares a giveaway step by step in an interactive panel instead of typing every option in one line. The panel shows what you have set so far; nothing is posted until you click Launch.

/gw go
iHorizonAPPToday at 18:30
Giveaway Panel
Prepare your giveaway below, then launch it. Use the menus to edit each setting.
Prize : Discord Nitro (1 month)
Duration : 2day(s)
Winners : 1
Entry requirement : Messages - Require value: 50
Giveaway channel : #giveaways
Preview image : Not Set
Edit a setting
giveaways
LaunchCancel

The /gw go panel, ready to launch.

The Edit a setting menu opens a small form for each setting:

  • Prize → What the winner(s) will receive (up to 256 characters).
  • Duration → How long the giveaway runs, for example 2d or 12h30. The minimum is 3 minutes.
  • Winners → How many winners will be drawn.
  • Entry requirement → Choose None, Invites, Messages or Roles, then fill in the value: the number of invites or messages needed, or the ID of the required role.
  • Preview image → The link to an image shown on the giveaway. Leave the field empty to remove it.

The Giveaway channel menu chooses where the giveaway is posted. It starts on the channel where you ran the command.

Click Launch to post the giveaway, or Cancel to close the panel without posting anything. Only the member who opened the panel can use it, and it expires if left untouched for too long.

Prize, duration and winners are mandatory

If one of them is missing (or the requirement value does not match the chosen type, for example a role ID that does not exist), Launch closes the panel with a message telling you what is wrong. Run /gw go again and fill in the missing setting.

Once launched, the giveaway works exactly like one made with /gw create: you can end it, reroll it or list its entries with the commands above.