Skip to content
MessageBuilder
Documentation menu
PARENTAL_CONSENT_STATUS

PARENTAL_CONSENT_STATUS

8 values

PARENTAL_CONSENT_STATUS enum reference: 8 values, including raw values and string names.

API reference
v4.8/Baileys runtime
On this page

On this page

All enumsEnums.PARENTAL_CONSENT_STATUS

This enum has 8 values. Value 0 is alwaysUNSET_OR_UNRECOGNIZED_ENUM_VALUE and acts as the fallback for unknown input.

ValueName
0UNSET_OR_UNRECOGNIZED_ENUM_VALUEfallback
1AWAITING_PARENTAL_APPROVAL
2AWAITING_YOUTH_CONSENT
3COMPLETED
4O18_COMPLETED
5PENDING
6TEMP_BLOCK
7UNCHANGED

Usage

PARENTAL_CONSENT_STATUS.js
javascript
import { Enums } from './lib/MessageBuilderEnums.js';

// Raw value
const raw = Enums.PARENTAL_CONSENT_STATUS.AWAITING_PARENTAL_APPROVAL; // 1

// Name from a value
const name = Enums.PARENTAL_CONSENT_STATUS.get(1); // "AWAITING_PARENTAL_APPROVAL"

// Pass-through from a string
const passthrough = Enums.PARENTAL_CONSENT_STATUS.get('AWAITING_PARENTAL_APPROVAL'); // "AWAITING_PARENTAL_APPROVAL"

.get() returns a string for numeric input and passes a string through unchanged. Unknown values resolve to UNSET_OR_UNRECOGNIZED_ENUM_VALUE.

Notes

Where is it used?

Some enums are consumed directly by builder methods such as addImage() andaddVideo(). Others are available for custom payloads through addWidget() oraddPayload().

Not an official contract

Names and values come from the internal WhatsApp schema. Changes on WhatsApp’s side can make these values irrelevant.