ZspamDetect

Returns true if the user has exceeded the message count threshold within the time window. Best used inside an onMessage event.

Syntax

ZspamDetect{userID;threshold?;windowSeconds?}

Arguments

NameTypeRequiredDefault
userIDsnowflakeYes-
thresholdnumberNo10
windowSecondsnumberNo60

Example

ZspamDetect{ZuserID;10;60}