Skip to content

Commit 1b4dcef

Browse files
Add spam RTM events
1 parent cdd0c97 commit 1b4dcef

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

README.md

+6
Original file line numberDiff line numberDiff line change
@@ -3523,6 +3523,12 @@ Available events are listed below:
35233523
* **Message Notify Unread Received** [`user`, `plugin`]:
35243524
* `message:notify:unread:received`
35253525

3526+
* #### **Spam Events**: [Reference](https://docs.crisp.chat/references/rtm-api/v1/#spam-events)
3527+
* **Spam Message** [`user`]:
3528+
* `spam:message`
3529+
* **Spam Decision** [`user`]:
3530+
* `spam:decision`
3531+
35263532
* #### **People Events**: [Reference](https://docs.crisp.chat/references/rtm-api/v1/#people-events)
35273533
* **People Profile Created** [`user`, `plugin`]:
35283534
* `people:profile:created`

lib/crisp.js

+4
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,10 @@ Crisp.DEFAULT_RTM_EVENTS = [
9595
"message:notify:unread:send",
9696
"message:notify:unread:received",
9797

98+
// Spam Events
99+
"spam:message",
100+
"spam:decision",
101+
98102
// People Events
99103
"people:profile:created",
100104
"people:profile:updated",

0 commit comments

Comments
 (0)