# Server.hooks(_:)

- **Module:** Server
- **Package:** libtmux-swift
- **Language:** Swift
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-swift/blob/f02a4668570e1cc5198c941413750e021f42c214/Sources/LibTmux/Options.swift#L191
- **Page:** https://libtmux.org/reference/swift/server-hooks(_-)/

```
Server.hooks(_:)(scope: HookScope) -> [TmuxHook]
```

Hooks tmux has a command for.

`show-hooks` lists every hook name tmux knows, most with nothing bound.
Only the bound ones are reported here — an unbound name is not a hook,
it is a place one could go.

## Raises

- `TmuxError`
