BotManualTHE COMMUNITY PLAYBOOK
English

Temporary roles: setup and everyday use

Give a member a role for a set time (/temprole add @member @role 7d); it is removed automatically when it expires.

3 min read
On this page

What this feature does

Give a role for 7 days, 12 hours or a month; the bot takes it away right on time.

Before you begin

For server settings, open your server dashboard and select the server you manage. For commands and buttons, use the server where your community has enabled this feature. The options available to a member depend on that server’s settings.

Get started

1. Enable Temporary roles

Open your server dashboard, pick your server and switch on Temporary roles. Choose manager roles, the longest allowed duration, DMs and a log channel.

2. Give a role with a duration

Run /temprole add member: @Alex role: @VIP duration: 7d reason: giveaway prize. The bot adds the role and DMs Alex.

3. Extend or end it early

Use /temprole extend to add time or /temprole remove to take the role now. /temprole list shows who has what.

4. Manage everything in the console

The Active roles table lists every timed role with its expiry. Filter by member or role, extend with a duration stepper or remove in one click.

Timed roles without spreadsheets or reminders

Moderators shouldn’t have to remember to remove a role next Tuesday. The bot stores every temporary role with its end time and removes it on schedule. If someone takes the role away by hand in Discord, the timer is cleared too, so nothing comes back unexpectedly. A role the member already holds permanently is never turned into a temporary one.

Selling roles for coins? The Shop has timed role items built in. Need people to pick roles themselves? Use Reaction roles. And for timeouts and bans with a duration, see Moderation.

  • /temprole add member role duration [reason]; give a role for a while
  • /temprole extend member role duration; add time
  • /temprole remove member role; take it away now
  • /temprole list [member]; active temporary roles

Questions and troubleshooting

How do I give someone a role temporarily on Discord?

Enable Temporary roles in your server dashboard, then run /temprole add, pick the member and the role and type a duration like 7d or 12h. The bot removes the role automatically when the time is up.

What happens if the bot restarts?

Nothing is lost. Every temporary role is stored in the database with its end time, and the bot checks for expired roles every 15 seconds after it starts again.

Can I extend a temporary role?

Yes. Use /temprole extend with the extra time, or open the Active roles table in the console and extend it with the duration stepper. The time is added to the current end date.

What if the member leaves the server?

By default the timer keeps running and the role is given back if they rejoin before it ends. You can switch this off so leaving ends the grant.

How many temporary roles can a server have?

Up to 200 active temporary roles on the Free plan and 10,000 on Pro. See pricing for every plan.

Next steps

Use the command reference below for the available Discord actions. If something does not appear or respond, follow Troubleshooting. Server admins can check roles and permissions before changing access.

Commands for this feature

CommandWhat it doesOptions
/temprole addGive a member a role for a whilemember requiredThe memberSelect a memberrole requiredThe roleSelect a roleduration requiredHow long, e.g. 7d, 12h, 1w2d or 90mText · Up to 40 charactersreason optionalWhy (shown in the log and the DM)Text · Up to 200 characters
/temprole removeTake a temporary role away nowmember requiredThe memberSelect a memberrole requiredThe roleSelect a role
/temprole extendAdd time to a temporary rolemember requiredThe memberSelect a memberrole requiredThe roleSelect a roleduration requiredHow much time to add, e.g. 3d or 12hText · Up to 40 characters
/temprole listShow active temporary rolesmember optionalOnly this member (optional)Select a member

Find an answer

Search features, commands and the full text of every guide.

Start typing to find a guide.

Browse all guides