How to set up a warning system in Discord
A warning system lets moderators record a reason each time a member breaks a rule, and steps in on its own when the warnings add up. The warnings template gives you /warn, /warnings and /clearwarnings, keeps every warning in a collection, times a member out for an hour at three and bans at five. It runs on slash commands, so it is free.
Steps
Start from the warnings template
Open the warnings template in Buildcord. It makes a bot with the three commands and the warnings collection already set up.
Connect and deploy
Paste your Discord application's token, add the bot to your server with its invite link and deploy.
Put the bot's role high enough
A bot can only time out or ban members whose roles are below its own. Drag the bot's role above the roles of the members it might act on.
Warn someone
Run
/warnon a test member with a reason. The bot saves the warning and replies with how many they have. Only members with the Moderate Members permission can use it.Tune the numbers
Open the warn flow and change the counts in its Switch step: a longer timeout, a kick at four, or a ban sooner.
Good to know
- Every warning is a row in the warnings collection, with who, why, who gave it and when. Read and edit it on the bot's Data page.
/warningsshows a member's count and their latest warning, only to the moderator who asked.- Add a step that posts each warning in a log channel, or sends the member a private message with the reason.
Questions
Can warnings expire?
Not as the template comes. Count only recent rows to let old warnings lapse, with a Date and time step that works out a month back.
Who can warn members?
Members with Discord's Moderate Members permission. The permission check is a step in the flow, so you can change it to a role.
More guides
- How to make a Discord bot without coding
- How to build a Discord bot from ChatGPT
- How to set up a ticket system in Discord
- How to give roles automatically in Discord
- How to post in Discord when someone goes live
- How to host a Discord bot 24/7 for free
- How to make custom slash commands in Discord
- How to set up a welcome message in Discord
- How to make a Discord reaction role bot
- How to set up auto-moderation on Discord with AI
- How to log deleted messages on Discord
- How to make a poll in Discord with a bot
- How to set up a starboard on Discord
- How to make a Discord reminder bot
- How to make a Discord birthday bot
- How to make a Discord application form
- How to make a counting channel in Discord
- How to post YouTube uploads to Discord automatically
- How to make an AI FAQ bot for your Discord server