🛑
Antispammer
  • Antispammer
  • Docs
    • Filter
      • FilterOptions
    • Complex
Powered by GitBook
On this page
  • Constructor
  • Methods
  1. Docs

Complex

Constructor

new antispam.complex(filters);
Parameter
Type
Description

filters

array

An array of antispam filters.

Methods

.addFilter(filter)

Adds a filter to the complex multifilter.

Parameter
Type
Description

filter

object

An antispam filter.

returns array

.removeFilter(filterIndex)

Removes a filter by idex.

Parameter
Type
Description

filterIndex

number

An index in the array of filters.

returns array

.check(id)

Adds a use to a user by ID to each filter and acts upon it depending on if it is considered spam or not.

Parameter
Type
Description

id

string

A string that identifes a user.

returns function

.clear(id)

Clears all uses from a user in each filter by ID.

Parameter
Type
Description

id

string

A string that identifes a user.

returns void

.has(id)

Checks if a user is spamming by ID.

Parameter
Type
Description

id

string

A string that identifes a user.

returns boolean

PreviousFilterOptions

Last updated 3 years ago