Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(sdk): list member-add mode in the Go and Java settings docs

Yudhi Armyndharis315a39a3ea49
diff --git a/sdk/go/types_group.go b/sdk/go/types_group.go
index 64a1513ad..838f802eb 100644
--- a/sdk/go/types_group.go
+++ b/sdk/go/types_group.go
@@ -110,8 +110,9 @@ type JoinGroupResponse struct {
GroupID string `json:"groupId"`
}
-// GroupSettings is the announce / locked / ephemeral-timer state of a group —
-// the response of GetGroupSettings and the patch body of UpdateGroupSettings.
+// GroupSettings is the announce / locked / ephemeral-timer / member-add-mode
+// state of a group — the response of GetGroupSettings and the patch body of
+// UpdateGroupSettings.
// Every field is a pointer: the engine may omit any of them on reads, and on
// updates unset fields are omitted from the body so only the provided settings
// are touched. At least one field must be set for an update — the server
diff --git a/sdk/java/src/main/java/com/rmyndharis/openwa/model/GroupSettings.java b/sdk/java/src/main/java/com/rmyndharis/openwa/model/GroupSettings.java
index c2cfd7c87..cdb097121 100644
--- a/sdk/java/src/main/java/com/rmyndharis/openwa/model/GroupSettings.java
+++ b/sdk/java/src/main/java/com/rmyndharis/openwa/model/GroupSettings.java
@@ -2,10 +2,11 @@ package com.rmyndharis.openwa.model;
/**
* Group settings — {@code announce} (only admins can send messages), {@code locked} (only admins
- * can edit group info) and {@code ephemeralSeconds} (disappearing-message timer). Every field is
- * optional: unset fields are omitted from the serialized body, so an update only touches the
- * settings that were set. Setting {@code ephemeralSeconds} returns HTTP 501 on the whatsapp-web.js
- * engine.
+ * can edit group info), {@code ephemeralSeconds} (disappearing-message timer) and
+ * {@code memberAddMode} ({@code "all"}: any member may add participants, {@code "admins"}: only
+ * admins). Every field is optional: unset fields are omitted from the serialized body, so an update
+ * only touches the settings that were set. Setting {@code ephemeralSeconds} returns HTTP 501 on the
+ * whatsapp-web.js engine.
*/
public record GroupSettings(Boolean announce, Boolean locked, Integer ephemeralSeconds, String memberAddMode) {
/**