onCustomMessageReceived
listener in order to receive the Slow mode related messages. The message sent has the category of custom
and type extension_slow-mode
.
Following are the inputs required to enable slow mode in a particular group:
Parameter | Type | Description |
---|---|---|
guid | string | The group’s ID in which the slow mode needs to be enabled. |
slowDownTimeInMS | int | The time in milliseconds for which the participants have to wait before being able to send the consecutive message. |
callExtension
method exposed by CometChat SDKs to enable slow mode as an admin/moderator.
Parameter | Type | Description |
---|---|---|
guid | string | The group’s ID in which the slow mode needs to be disabled. |
onCustomMessageReceived
listener in order to receive the Slow mode related messages. The message sent has the category of custom
and type extension_slow-mode
.
You can make use of the callExtension
method exposed by CometChat SDKs to disable slow mode as an admin/moderator.
callExtension
method exposed by the CometChat SDKs to fetch the details about slow mode as a member of a group.
Parameters | Type | Description |
---|---|---|
isSlowed | boolean | Whether the slow mode is enabled in the mentioned group.If false, the following fields are not present in the response. |
slowDownTimeInMS | int | The time interval for which a participant has to wait for sending messages. |
lastMessageSentAtTimestamp | timestamp | The timestamp at which the last message was sent by the logged in user in the mentioned group.If the scope of the logged in user is Admin or Moderator in the mentioned group, this field is not included in the response. |