$deletecommand
Deletes the trigger command after a set amount of time. `1ms` is instant. Same as no brackets and leaving brackets blank.

FUNCTION USAGE

    $deletecommand
    $deletecommand[]
    $deletecommand[time]

Properties:

[] - Leaving brackets blank will delete the command immediately. Same as no brackets. time - When you want the command to be deleted. Time will be however long after the command was executed. Must be a number. Supports milliseconds.

Example 1: Deletes the command immediately.

1
bot.Command({
2
name: "say",
3
code: `
4
$message[]
5
$deletecommand
6
`})
Copied!

Example 2: Deletes the command after 10 seconds.

1
bot.Command({
2
name: "say",
3
code: `
4
$message[]
5
$deletecommand[10s]
6
`})
Copied!
Last modified 4mo ago
Copy link
Contents
Properties: