domain:state()

{{since('20230320-124340-559cb7b0')}}

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().