state
On this page
domain:state()#
Returns whether the domain is attached or not. The result is a string that is either:
"Attached"- the domain is attached"Detached"- the domain is not attached
See also: domain:detach() and domain:detach().