I think i’m close but I need som help getting over thie finish line.
I’m looking to have a toggle macro for disabling and enabling chat.
C_SocialRestrictions.SetChatDisabled(disabled)
C_SocialRestrictions.IsChatDisabled()
I found the API calls, so i tried something like;
/run C_SocialRestrictions.SetChatDisabled(not C_SocialRestrictions.IsChatDisabled())
which did not work…
Did not work how?
/run C_SocialRestrictions.SetChatDisabled(not C_SocialRestrictions.IsChatDisabled()) print("Chat Disabled:", C_SocialRestrictions.IsChatDisabled())
Appears to work.
1 Like
This does, i guess i was missing some operations there, Thank you!
If you want to sync up the settings you could
/run local disable = not C_SocialRestrictions.IsChatDisabled() C_SocialRestrictions.SetChatDisabled(disable) ChatConfigFrame_OnChatDisabledChanged(disable) print("Chat Disabled:", C_SocialRestrictions.IsChatDisabled())
1 Like