# C_SocialRestrictions: World of Warcraft Forever API

Forever 1.60.1 (70959), Interface 16001, Lua 5.1, from Blizzard's own API documentation. Page: https://wowaddons.gg/forever-api/C_SocialRestrictions

## Functions

### C_SocialRestrictions.AcknowledgeAgeVerificationRestriction

```lua
C_SocialRestrictions.AcknowledgeAgeVerificationRestriction()
```

### C_SocialRestrictions.AcknowledgeRegionalChatDisabled

```lua
C_SocialRestrictions.AcknowledgeRegionalChatDisabled()
```

### C_SocialRestrictions.CanReceiveChat

```lua
canReceiveChat = C_SocialRestrictions.CanReceiveChat()
```

Returns true if the player meets all conditions that allow them to receive chat messages.

Returns:
- `canReceiveChat`: bool

### C_SocialRestrictions.CanSendChat

```lua
canSendChat = C_SocialRestrictions.CanSendChat()
```

Returns true if the player meets all conditions that allow them to send chat messages.

Returns:
- `canSendChat`: bool

### C_SocialRestrictions.IsAgeVerificationRestricted

```lua
restricted = C_SocialRestrictions.IsAgeVerificationRestricted()
```

Returns true if the account is restricted by the Age Verification feature.

Returns:
- `restricted`: bool

### C_SocialRestrictions.IsAgeVerificationRestrictedMinor

```lua
isMinor = C_SocialRestrictions.IsAgeVerificationRestrictedMinor()
```

Returns true if the Age Verification restriction is because the account belongs to a minor, as opposed to an adult who has not yet verified their age.

Returns:
- `isMinor`: bool

### C_SocialRestrictions.IsChatDisabled

```lua
disabled = C_SocialRestrictions.IsChatDisabled()
```

Returns:
- `disabled`: bool

### C_SocialRestrictions.IsFriendsDisabled

```lua
disabled = C_SocialRestrictions.IsFriendsDisabled()
```

Returns:
- `disabled`: bool

### C_SocialRestrictions.IsMuted

```lua
isMuted = C_SocialRestrictions.IsMuted()
```

Returns:
- `isMuted`: bool

### C_SocialRestrictions.IsSilenced

```lua
isSilenced = C_SocialRestrictions.IsSilenced()
```

Returns:
- `isSilenced`: bool

### C_SocialRestrictions.IsSquelched

```lua
isSquelched = C_SocialRestrictions.IsSquelched()
```

Returns:
- `isSquelched`: bool

### C_SocialRestrictions.SetChatDisabled

```lua
C_SocialRestrictions.SetChatDisabled(disabled)
```

Arguments:
- `disabled`: bool

## Events

### ALERT_AGE_VERIFICATION_RESTRICTED

No payload.

### ALERT_REGIONAL_CHAT_DISABLED

No payload.

### CHAT_DISABLED_CHANGE_FAILED

Payload, after the event's name:
- `disabled`: bool

### CHAT_DISABLED_CHANGED

Payload, after the event's name:
- `disabled`: bool

---
Make an addon with your AI: tell it "Read https://wowaddons.gg/agents.md, then make me a World of Warcraft Forever addon that …, try it with me in the game, and publish it."
