Skip to content
Server Helpers isNewAccount

$isNewAccount — Tells whether an account is younger than a number of days

Tells whether an account is younger than a number of days. Anti-raid guard.

Syntax

$isNewAccount[userID;(days)]

Parameters

  • userID (ID, required) — The user.
  • days (number, optional) — Default: 7.

Return Value

  • true or false.

Usage

$onlyIf[$isNewAccount[$authorID;3]==false;Your account is too new.]

Example

$onlyIf[$isNewAccount[$authorID;3]==false;Your account is too new.]
$sendMessage[Welcome!]

Try it

Paste an example into the playground to preview its message (functions that act on Discord are not run), or build the same thing with blocks.