/[sudobot]/trunk/docs/app/(docs)/commands/automation/expire/page.mdx
ViewVC logotype

Contents of /trunk/docs/app/(docs)/commands/automation/expire/page.mdx

Parent Directory Parent Directory | Revision Log Revision Log


Revision 626 - (show annotations)
Sat Sep 7 09:38:45 2024 UTC (6 months, 3 weeks ago) by rakinar2
File size: 712 byte(s)
chore: sync with git

1 ---
2 title: "Command: `expire`"
3 short_name: expire
4 ---
5
6 import Modes from "@/components/MDX/Modes";
7
8 # `expire`
9
10 Sends a message and deletes it after the given timeframe.
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 and delete the message after that.
15
16 ### Syntax
17
18 ```
19 -expire <time_interval> [content]
20 /expire content: [content] time_interval: [time] channel: [channel] (OPTIONAL)
21 ```
22
23 ### Required Permissions
24
25 `ManageMessages`
26
27 ### Modes
28
29 <Modes modes={["legacy", "interaction"]} />
30
31 ### Examples
32
33 ```
34 -expire 10s Hello world!
35 /expire content: Hello World! time_interval: 10h channel: #general
36 ```

[email protected]
ViewVC Help
Powered by ViewVC 1.1.26