Discord giveaway bot: how to run a giveaway on your server

A Discord giveaway bot posts the giveaway, collects the entries and draws the winners at random. On SCNX this is the Giveaways module of your own bot. You start a giveaway with one command, members enter with a button, and the bot announces the winners when the timer runs out.

Updated December 1, 202610 min read

On this page

The short version

  • You start a giveaway with /gmanage start: channel, prize, duration and number of winners.
  • You decide who can enter and with what odds: a required role, a number of new messages, extra entries for roles.
  • The bot draws at random when the time is up, and you can draw again with /gmanage reroll.

What you need

  • Your own bot on SCNX. Creating one
  • A text or announcement channel where the bot can post the giveaway
  • A prize, and a role for the people who may start giveaways

What a giveaway looks like for your members

The bot posts a giveaway message in the channel you pick. With the default text it has the title New Giveaway 🎉 and shows the prize, the number of winners, the organiser and the end time. The end time is a Discord timestamp, which Discord formats for each member in their own app.

Members enter with the button under the message. The bot confirms the entry in a message only they can see. Each member can enter once. Pressing the button again shows that they are already in and offers a Leave giveaway button.

The message keeps count of the entries while the giveaway runs. When the time is up the bot draws the winners, announces them as a reply to the giveaway and switches the button off.

A giveaway in #events, with the default title and the default button label.

Illustration. The real interface may look different.

Giveaways are one of the games and community features of your bot. The module is free to use, including on our free Starter plan.

Set up your giveaway bot: the Giveaways module

  1. Switch on the module

    Open Modules in the Discord-Bot section of your dashboard, find Giveaways and switch it on. Save your changes.

  2. Wait for the reload

    Saving on the Modules page reloads your bot's configuration for you. Wait for the message that says it reloaded successfully.

  3. Check the giveaway channel

    The giveaway is an embed with a button. So the bot has to see the channel, post in it and embed links there. In Discord's permissions these are View Channel, Send Messages and Embed Links.

  4. Decide who may start giveaways

    By default, /gmanage is available to everyone with the Manage Messages permission. To change that, open your server settings in Discord, go to the integrations, select your bot and manage its commands. There you choose the roles that may use /gmanage.

Set the command permissions before your first giveaway. Whoever can use /gmanage can also end giveaways early and draw new winners.

Start a giveaway with /gmanage start

You start a giveaway in Discord, not in the dashboard. Type /gmanage start on your server and fill in the options. The first four are required.

The options of /gmanage start
OptionWhat it does
channelWhere the giveaway message is posted. Text channels and announcement channels are offered.
prizeWhat there is to win, as text. It needs at least two characters.
durationHow long the giveaway runs, written with units: 2h 40m or 7d 2h 3m.
winner-countHow many winners are drawn. At least 1.
required-roleOptional. Only members with this role can enter.
required-messagesOptional. Members have to write this many new messages before they can enter.
sponsorOptional. A member of your server who is shown as organiser. If you leave it out, that is you.
sponsorlinkOptional. A link to the sponsor's website, shown in the giveaway message.

The duration units are s for seconds, m for minutes, h for hours, d for days and w for weeks, separated by spaces. Always write a unit.

After you send the command, the bot answers privately that the giveaway was started, and the giveaway message appears in the channel. Look at the end time right away. If it is not what you meant, the duration was not read the way you wrote it. End that giveaway with /gmanage end and start a new one.

In announcement channels the giveaway works the same, but the message does not show the running entry count.

Giveaway requirements: who can enter, and with what odds

Two rules are set per giveaway, in the command: required-role and required-messages. You can use one, both or neither. The giveaway message lists them, so members know the rules before they press the button. Someone who does not meet them gets a private message that says what is missing.

The message rule counts new messages only. Messages from bots do not count. Members check their own progress with /gmessages.

The other rules apply to all your giveaways. They are in the module's configuration: click Open configuration on the module, or open the giveaway configuration directly.

Entry settings in the configuration of the Giveaways module
SettingWhat it does
Giveaway-Requirement-Bypass-RolesMembers with one of these roles can enter without meeting the role and message rules. Useful for boosters or supporters.
Entry denied rolesMembers with one of these roles cannot enter at all, even if they also have a bypass role. Useful for your team.
Multiple EntriesEvery member has one entry. Each role you list here adds the number of entries you set for it.
Message-Count-ModeWhere messages count for the message rule: in all channels, in all except the ones under Blacklist, or only in the ones under Whitelist.

Extra entries change the odds, so say in your giveaway text which roles get them. Do not use them to reward members for inviting people. That is against the SCNX Terms of Service and can get you banned from SCNX.

The Giveaways documentation describes the module in more detail.

How the bot picks the winners at random

When the time is up, the giveaway ends on its own and the bot draws. This is what happens in the draw:

Everyone is checked again
The bot looks up every entrant on your server. People who have left are skipped. The entry rules are checked a second time, so a member who lost the required role after entering cannot win.
Entries go into one pool
Every eligible member is in the pool once per entry. Someone with three entries is in it three times, someone with one entry once.
The pick is random
Each winner is picked from the pool with a cryptographically secure random number.
Nobody wins twice in one draw
Once a member is picked, all their entries leave the pool. With several winners, each one is a different person.
Too few entrants
If fewer people are eligible than you wanted winners, the bot draws as many as there are. If nobody is eligible, it posts the No-Winner-Message instead.

You set the rules and the extra entries, so SCNX cannot certify that a giveaway was fair. As the organiser you are responsible for following the laws that apply to you and the SCNX Terms of Service. Write the rules into the giveaway text and stick to them.

After the draw: winners, rerolls and ending early

The bot announces the winners with the Win-Message, as a reply to the giveaway. By default it names the winners and tells them to send the organiser a direct message to claim the prize. The giveaway message itself changes to the ended version with the winners in it.

Two settings in the configuration help with handing over the prize. Win roles gives every winner the roles you list. Send DM-message to winner is off by default. Switched on, each winner also gets a direct message with a link to the giveaway.

  1. Draw again with /gmanage reroll

    If a winner does not answer, has left or broke your rules, run /gmanage reroll and pick the giveaway under msg-id. The list offers your ended giveaways with channel and prize.

  2. Set how many winners to draw

    Without winner-count, the reroll draws as many winners as the giveaway had. To replace a single winner, set winner-count to 1.

  3. Keep earlier winners out

    Set prevent-duplicates to true. Then everyone who already won this giveaway is left out of the new draw. Without it, an earlier winner can be drawn again.

A reroll does not take Win roles away from the earlier winners. Remove those roles yourself if the prize moves to someone else.

To stop a running giveaway before its time, run /gmanage end and pick it under msg-id. The bot draws the winners right away. There is no command to edit or pause a giveaway. To change the prize or the rules, end it and start a new one.

To see who entered, switch on Show participants button in the configuration. New giveaways then get a second button that shows the list to whoever presses it. Enable /gmanage participants command adds a command for your team that does the same. Both are off by default.

Change the giveaway texts

Every text the module posts can be changed. Open the giveaway messages in your dashboard. Giveaway-Message is the giveaway without entry rules and Giveaway-Message with requirements the one with rules. Button-Content is the label of the entry button, by default Join giveaway 🎉.

This is also the place for your own rules: who may enter, how the prize is handed over and how long a winner has to answer. Members read them above the button.

Save and confirm Reload configuration now.

When something does not work

The /gmanage command does not show up
Check that Giveaways is switched on and that you saved on the Modules page, which reloads your bot. If you see the command and a team member does not, they are missing the permission for it. Give their role access to /gmanage in the command permissions of your bot in Discord.
The giveaway message is not posted
The bot cannot write in that channel. Give it View Channel, Send Messages and Embed Links there, and check the channel's own permission overrides. If the message cannot be posted, no giveaway is created, so just run the command again.
The end time is wrong
The duration was written without units or with a typo. Use the format 2h 40m. End the giveaway with /gmanage end and start it again.
The giveaway did not end on time
If the bot is offline at the end time, it ends the giveaway and draws the winners as soon as it is back. On our free Starter plan, also check that the bot is online. A short ad video every 14 days keeps it running.
A member says they cannot enter
The bot tells them which rule they do not meet. For the message rule, only new messages in channels that count are counted. Check Message-Count-Mode. If they are refused without a missing rule, they have a role listed under Entry denied roles.
The bot says no winner could be determined
Nobody was eligible at the draw. Either nobody entered, or everyone who entered has left or no longer meets the rules.
A winner got no direct message
Send DM-message to winner is off by default. If it is on and a winner has closed their direct messages, the bot skips that message. The announcement in the channel is posted either way.

Other ways to do it

There are bots built only for giveaways. With one of those you take on another bot in your member list with someone else's name, and another place to maintain settings. Check first how they handle entry rules and rerolls, and what their free version includes.

You can also draw by hand: collect reactions on a message and pick a name. That works for a small server. It gets hard to defend once members ask how the winner was chosen, and you have to check yourself who is still on the server.

Common questions

How do I start a giveaway on my Discord server?
Switch on the Giveaways module of your bot, then type /gmanage start in Discord. Pick the channel, write the prize, set the duration with units like 2h 40m and the number of winners. The bot posts the giveaway and ends it on its own.
Can I limit who is allowed to enter?
Yes. Per giveaway you can require a role, a number of new messages, or both. In the module's configuration you can also list roles that may never enter and roles that skip the requirements.
How does the bot pick the winner, and is it random?
Yes, the draw is random: every eligible member goes into a pool once per entry, and each winner is picked with a cryptographically secure random number. Members who left or no longer meet the rules are skipped. Roles with extra entries have better odds, so say so in your giveaway text.
What if the winner does not answer or has left the server?
Run /gmanage reroll and pick the ended giveaway. Set prevent-duplicates to true so that earlier winners are left out. Without it, the same person can be drawn again.
Can I edit, pause or delete a running giveaway?
Not with a command. You can end it early with /gmanage end, which draws the winners right away. To change the prize, the duration or the rules, end the giveaway and start a new one.
Can I see who entered?
Not by default. Switch on Show participants button in the configuration and new giveaways get a button that shows the list. Enable /gmanage participants command gives your team a command for it.
Does the giveaway module cost anything?
No. Giveaways are a module of your bot and cost nothing extra, including on our free Starter plan.
What should I tell members before a giveaway?
Tell them who may enter, which roles get extra entries, when it ends and how the prize is handed over. You can write all of that into the giveaway message. As the organiser you are responsible for following the laws that apply to you.

Start with a free bot

Log in with Discord, add your server and create your bot. The dashboard walks you through each step.

Get started for free

Free on our Starter plan. A short ad video every 14 days keeps the bot online.