BotManualTHE COMMUNITY PLAYBOOK
English

Grant temporary access and verify expiration

An admin workshop for Temporary roles: a worked setup, settings explained, day-to-day operation and a complete verification checklist.

7 min read

WHAT YOU WILL BUILD

A temporary role grant with a clear expiry, warning policy and checked removal.

Follow the steps, try the example and use the checklist before opening it to your community.

On this page

Your mission

A temporary role grant with a clear expiry, warning policy and checked removal. This workshop uses a small first rollout so you can see the complete result before opening it to the whole community. The example is a starting recipe; keep your server's own rules and audience in mind when choosing the final values.

Step 1: Prepare your server

Open your server dashboard and select the correct server, then open Temporary roles. Enable the feature before running the example. Choose a harmless temporary role below the bot and a restricted manager role. Grant Manage Roles and prepare a log channel.

Read Roles and permissions if a destination or role cannot be selected. For channel-based actions, check permissions in the actual channel, including its category overrides. For automatic role changes, the bot needs Manage Roles and a position above the role it will assign. Only grant the permissions needed by your chosen workflow.

Step 2: Build your first working example

1. Set the duration policy

Choose the maximum allowed duration, expiry-warning window and whether the member receives a grant DM. Reapply-on-rejoin governs a member returning before the grant expires; it is not a new grant.

2. Grant a short trial

Use /temprole add with the test member, role and a short supported duration. Read the returned expiry and inspect the role on the member.

3. Manage before expiry

Use the supported extension or removal action when a grant changes. Check the existing grant first so you do not confuse a second manual role assignment with the temporary role record.

After changing the server-wide settings, use Save changes. An item editor, draft, preview or test action is a separate part of the workflow: read its save or publish action before expecting a public Discord post. Reopen the saved item to confirm the destination, access rules and values you intended.

Step 3: Understand the settings

Initial values below describe a new configuration. Your server may already have different saved values. A field with no initial value is chosen in its editor. Optional sections can stay inactive until the basic setup works. Empty and zero do not have one universal meaning; use the explanation for that specific field.

General

SettingInitial valueWhat it changes and how to use it
Manager rolesNo entriesThey can give out roles below their own highest role. Also allow /temprole for them under Server Settings → Integrations. up to 25 entries.
Longest allowed duration31,536,000Counted from now — also limits extensions and roles other features grant. 60–94608000; whole numbers.
DM the member when they get a roleOnSays which role, until when and why.
“Expires soon” DM240 = off. 0–168; whole numbers.
Log channelNot setEvery grant, extension, removal and expiry is posted here.
Give the role back when they rejoinOnThe timer keeps running while they’re gone. Off: leaving the server ends the grant.

Test the whole journey

  1. Grant a short-lived role and verify its expiry and log entry.
  1. Wait for the expiry and confirm the role is removed and the grant no longer appears active.
  1. Repeat the relevant member action with an ordinary member account and the staff action with your intended staff role. An administrator test alone can hide permission restrictions. Check both the response in Discord and the saved record or result in the dashboard.
  1. Change one setting that affects the result, save it, and repeat the same test. Record the previous value so you can restore it if the new behavior is not what you wanted.

Follow the complete workflow

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 dashboard

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.

Operation and behavior in detail

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

Diagnose actual bot responses

Use the response to identify the failing stage before changing settings. The messages below are referenced by this feature’s current handlers. Values in square brackets represent the member, amount, time or other live detail supplied in Discord; they are not text to enter. Different actions can use different guards, so this list is a diagnostic reference, not a claim that every message appears in every workflow.

Response or conditionAdmin investigation and next step
You need the Manage Roles permission or a temporary-roles manager role.Inspect the bot’s effective permission in the exact destination and the relative position of any role it must manage. Re-test the original action after correcting the specific missing access.
I couldn’t read that duration. Use something like 7d, 12h, 1w2d or 90m (at least 1 minute).Inspect this member’s eligibility and the server’s policy for this operation. Establish which condition failed before changing roles or making an exception.

After a correction, repeat the original action with the affected member permissions and inspect its final state. For a reward, payment, role change or public post, verify what already completed before applying a manual replacement. Keep the record identifier and response in your staff notes so a second admin can follow the same incident.

When something looks wrong

SymptomWhat to inspectHow to recover
The role remains after the expected expirySaved expiry, bot online state and Manage Roles plus hierarchy.Restore the required access and inspect the grant state before applying a manual correction.
The saved setup produces no visible resultWhether the feature is enabled, the required action has actually happened, and the selected destination still exists.Follow the worked example once, then inspect the response before retrying. A saved configuration alone does not perform every action.
Staff can use it, but an ordinary member cannotMember eligibility, selected roles, channel overrides and Discord command permissions.Test with the affected role combination. Correct the specific restriction and test again.
A role, reward or message is missingThe related feature, destination permissions and the result of the original action.Confirm what already completed before repeating an action that spends currency, sends a message or grants a reward.

Feature-specific questions

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 dashboard 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.

Launch checklist

  • Grant a short-lived role and verify its expiry and log entry.
  • Wait for the expiry and confirm the role is removed and the grant no longer appears active.
  • The saved setup and the actual Discord result match the example you chose.
  • A regular member and the intended staff role can complete their respective steps.
  • Optional rewards, notifications and public destinations are intentional.
  • Another admin knows which settings to change, how to inspect a result and how to stop or correct the workflow.

Share Temporary roles basics with someone who needs an overview. Use the command reference below for exact command names and required options.

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