$setSlowMode
Sets the slowmode of the desired channel in seconds. 60 seconds equals 1 minute.

FUNCTION USAGE

  • $setSlowMode[channelID]
  • $setSlowMode[channelID;time]

Properties:

channelID - The ID of the channel to set the slowmode of. time - The time to set the channels slowmode to. If field is not defined or left empty, the function will remove the slowmode.

Example:

1
bot.Command({
2
name: "slow",
3
code: `
4
This channels slowmode is set to 1800 seconds or 30 minutes
5
$setSlowMode[$channelID;1800]
6
$onlyIf[$isNumber[$message[1]]==true;Time must be a number! Time is read in seconds!]
7
`})
Copied!
Don't use 2m or 6h just convert the time into seconds and use those amount of seconds.
Last modified 4mo ago
Copy link
Contents
Properties: