---
description: Options for an antispam filter.
---

# FilterOptions

Type: object



<table><thead><tr><th>Parameter</th><th>Type</th><th data-type="checkbox">Optional</th><th>Default</th><th>Description</th></tr></thead><tbody><tr><td>time</td><td>number</td><td>true</td><td>60000</td><td>The amount of time in ms.</td></tr><tr><td>max</td><td>number</td><td>true</td><td>100</td><td>The threshold of inputs per id allowed.</td></tr><tr><td>onGood</td><td>function</td><td>true</td><td>returns: object</td><td>What to do after an input that is not considered spam.</td></tr><tr><td>onBad</td><td>function</td><td>true</td><td>returns: object</td><td>What to do after an input that is considered spam.</td></tr></tbody></table>
