1 |
--- |
2 |
title: "Command: `temprole`" |
3 |
short_name: temprole |
4 |
--- |
5 |
|
6 |
import Modes from "@/components/MDX/Modes"; |
7 |
|
8 |
# `temprole` |
9 |
|
10 |
Temporarily gives a role to a member. |
11 |
|
12 |
## Notes |
13 |
|
14 |
If you don't specify a unit of time like s, m, h, etc, it will default to seconds. So if you put 100 by itself, it will put it down as 100 seconds. |
15 |
|
16 |
### Syntax |
17 |
|
18 |
``` |
19 |
-temprole [time] [user] [role] |
20 |
/temprole member: [member] role: [role] duration: [how long you want user to have role for] start_after: [time] (OPTIONAL) |
21 |
``` |
22 |
|
23 |
### Required Permissions |
24 |
|
25 |
`ManageRoles` |
26 |
|
27 |
### Modes |
28 |
|
29 |
<Modes modes={["legacy", "interaction"]} /> |
30 |
|
31 |
### Examples |
32 |
|
33 |
``` |
34 |
-temprole 10m @ninsacc @Role 1 |
35 |
/temprole member: @ninsacc role: @Role 2 duration: 10m start_after: 1m |
36 |
``` |