Give a Discord role for 30 days with one command
By Termi2 min read
VIP for a month, a voice mute for a day, a recording permit for a week. On most servers someone gives the role by hand and then forgets to take it away. A FiveBot custom command gives the role and takes it away by itself when the time is up.
What a command can do
- Give up to five roles to the member you pick, or take them away.
- Give a role for good, or for a set time from 1 hour to 365 days.
- Post a message as well, with
{member}standing for the person it was run on. - Run only for people with the roles you choose, or for anyone who can manage roles.
A command with role actions asks for a member, so staff type /vip user:@Kowalski and FiveBot does the rest.
Three commands servers build first
| Command | Role actions | Who can run it |
|---|---|---|
| /vip | Give VIP for 30 days | Store staff |
| /mute-voice | Give Muted for 24 hours | Moderators |
| /permit | Give Recording permit for 7 days | Admins |
Setting it up
- Open Commands in the dashboard and create a command.
- Under Role actions pick Give or take, choose a role and, if you want, how long it lasts.
- Choose who can run it and save. The command shows up in Discord a moment later.
FiveBot's role has to sit above the roles it gives in Server Settings, Roles, the same as for any bot.
Questions people ask
What happens when the time is up?
FiveBot checks every minute and removes the role from anyone whose time has run out, also if the bot was restarted in between.
How many commands can I have?
Entry has 2 custom commands, Starter 5, Pro 10 and Network 25. Role actions work on every plan. Prices are on fivebot.ai/pricing.
Can a moderator give themselves VIP?
Only if you let their role run /vip. Pick the roles that may run each command, and leave the rest out.
Does it work with store purchases?
For Tebex purchases FiveBot can check the order inside a ticket. Payment tickets.