# Server.setOption(_:to:scope:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/254f8b2be7eb60cacc3ffcb3ea8e456784f582df/Sources/LibTmux/Options.swift#L169
- **Page:** https://libtmux.org/en/swift/latest/reference/server-setoption(_-to-scope-)/

```
Server.setOption(_:to:scope:)(name: String, to: String, scope: OptionScope) -> TmuxReply
```

Sets an option.

## Raises

- `TmuxError`
