World of Warcraft Forever API · C_SocialRestrictions.md, for your AI
C_SocialRestrictions
12 functions, 4 events, as Blizzard documents them for Forever 1.60.1 (70959).
Making an addon with an 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. It checks every call against this API before you try it in the game, then publishes it here. How it works.
Functions
C_SocialRestrictions.AcknowledgeAgeVerificationRestriction
C_SocialRestrictions.AcknowledgeAgeVerificationRestriction()
C_SocialRestrictions.AcknowledgeRegionalChatDisabled
C_SocialRestrictions.AcknowledgeRegionalChatDisabled()
C_SocialRestrictions.CanReceiveChat
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
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
restricted = C_SocialRestrictions.IsAgeVerificationRestricted()
Returns true if the account is restricted by the Age Verification feature.
Returns
restricted | bool |
|---|
C_SocialRestrictions.IsAgeVerificationRestrictedMinor
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
disabled = C_SocialRestrictions.IsChatDisabled()
Returns
disabled | bool |
|---|
C_SocialRestrictions.IsFriendsDisabled
disabled = C_SocialRestrictions.IsFriendsDisabled()
Returns
disabled | bool |
|---|
C_SocialRestrictions.IsMuted
isMuted = C_SocialRestrictions.IsMuted()
Returns
isMuted | bool |
|---|
C_SocialRestrictions.IsSilenced
isSilenced = C_SocialRestrictions.IsSilenced()
Returns
isSilenced | bool |
|---|
C_SocialRestrictions.IsSquelched
isSquelched = C_SocialRestrictions.IsSquelched()
Returns
isSquelched | bool |
|---|
C_SocialRestrictions.SetChatDisabled
C_SocialRestrictions.SetChatDisabled(disabled)
Arguments
disabled | bool |
|---|
Events
ALERT_AGE_VERIFICATION_RESTRICTED
No payload.
ALERT_REGIONAL_CHAT_DISABLED
No payload.
CHAT_DISABLED_CHANGE_FAILED
disabled | bool |
|---|
CHAT_DISABLED_CHANGED
disabled | bool |
|---|