# OptionsHelper.ChatOptionsHelper

`com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper`

Chat visibility and layout settings.  
 ```js
const options = Client.getGameOptions();  
Chat.log(options.chat.getChatVisibility());  
 ```

Nested type declared in [OptionsHelper](OptionsHelper.md).

## Constructors

### new OptionsHelper.ChatOptionsHelper {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_constructor-OptionsHelper-}

```js
new OptionsHelper.ChatOptionsHelper(OptionsHelper optionsHelper, OptionsHelper OptionsHelper)
```

Stores the supplied parent reference; this does not replace the options object bound to this inner group.

**Parameters:**
- `OptionsHelper`: optionshelper retained as the parent

## Fields

### parent {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_parent}

```js
parent: OptionsHelper
```

The options helper that owns this settings group; the same instance is returned by
 [getParent()](#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_getParent-).

**Since:** 1.8.4

## Methods

### areColorsShown {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_areColorsShown-}

```js
areColorsShown(): boolean
```

**Returns:** whether chat colors are enabled

**Since:** 1.8.4

### areCommandSuggestionsEnabled {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_areCommandSuggestionsEnabled-}

```js
areCommandSuggestionsEnabled(): boolean
```

**Returns:** `true` if command suggestions are enabled, `false` otherwise.

**Since:** 1.8.4

### areMatchedNamesHidden {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_areMatchedNamesHidden-}

```js
areMatchedNamesHidden(): boolean
```

**Returns:** `true` if messages from blocked players are hidden, `false` otherwise.

**Since:** 1.8.4

### areWebLinksEnabled {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_areWebLinksEnabled-}

```js
areWebLinksEnabled(): boolean
```

**Returns:** whether opening web links from chat is enabled

**Since:** 1.8.4

### enableCommandSuggestions {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_enableCommandSuggestions-boolean-}

```js
enableCommandSuggestions(boolean val): OptionsHelper.ChatOptionsHelper
```

**Parameters:**
- `val`: whether to enable command suggestions

**Returns:** self for chaining.

**Since:** 1.8.4

### enableHideMatchedNames {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_enableHideMatchedNames-boolean-}

```js
enableHideMatchedNames(boolean val): OptionsHelper.ChatOptionsHelper
```

**Parameters:**
- `val`: whether to hide messages from blocked players

**Returns:** self for chaining.

**Since:** 1.8.4

### enableWebLinkPrompt {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_enableWebLinkPrompt-boolean-}

```js
enableWebLinkPrompt(boolean val): OptionsHelper.ChatOptionsHelper
```

Sets whether to show a warning prompt before opening chat links.

**Parameters:**
- `val`: whether the warning prompt is enabled

**Returns:** this helper

**Since:** 1.8.4

### enableWebLinks {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_enableWebLinks-boolean-}

```js
enableWebLinks(boolean val): OptionsHelper.ChatOptionsHelper
```

Sets whether opening web links from chat is enabled.

**Parameters:**
- `val`: whether opening chat links is enabled

**Returns:** this helper

**Since:** 1.8.4

### getChatDelay {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_getChatDelay-}

```js
getChatDelay(): double
```

Returns the configured delay between chat messages.

**Returns:** the current chat delay in seconds.

**Since:** 1.8.4

### getChatFocusedHeight {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_getChatFocusedHeight-}

```js
getChatFocusedHeight(): double
```

Returns the configured chat height scale while chat is focused.

**Returns:** the focused chat height scale.

**Since:** 1.8.4

### getChatLineSpacing {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_getChatLineSpacing-}

```js
getChatLineSpacing(): double
```

Returns the configured spacing between chat lines.

**Returns:** the current chat line spacing.

**Since:** 1.8.4

### getChatOpacity {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_getChatOpacity-}

```js
getChatOpacity(): double
```

**Returns:** the configured chat opacity

**Since:** 1.8.4

### getChatUnfocusedHeight {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_getChatUnfocusedHeight-}

```js
getChatUnfocusedHeight(): double
```

**Returns:** the chat height scale while chat is unfocused.

**Since:** 1.8.4

### getChatVisibility {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_getChatVisibility-}

```js
getChatVisibility(): String
```

**Returns:** the final segment of the chat-visibility translation key, including its leading dot (for example, `.full`).

**Since:** 1.8.4

### getChatWidth {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_getChatWidth-}

```js
getChatWidth(): double
```

Returns the configured chat width scale.

**Returns:** the current chat width scale.

**Since:** 1.8.4

### getNarratorMode {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_getNarratorMode-}

```js
getNarratorMode(): String
```

**Returns:** the final segment of the narrator translation key, including its leading dot (for example, `.all`).

**Since:** 1.8.4

### getParent {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_getParent-}

```js
getParent(): OptionsHelper
```

**Returns:** the options helper that owns this settings group.

**Since:** 1.8.4

### getTextBackgroundOpacity {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_getTextBackgroundOpacity-}

```js
getTextBackgroundOpacity(): double
```

Returns the configured opacity for text backgrounds.

**Returns:** the current text background opacity.

**Since:** 1.8.4

### getTextSize {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_getTextSize-}

```js
getTextSize(): double
```

Returns the configured chat text scale.

**Returns:** the current text scale.

**Since:** 1.8.4

### isDebugInfoReduced {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_isDebugInfoReduced-}

```js
isDebugInfoReduced(): boolean
```

**Returns:** `true` if reduced debug information is enabled, `false` otherwise.

**Since:** 1.8.4

### isWebLinkPromptEnabled {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_isWebLinkPromptEnabled-}

```js
isWebLinkPromptEnabled(): boolean
```

**Returns:** whether a warning prompt is enabled before opening chat links

**Since:** 1.8.4

### reduceDebugInfo {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_reduceDebugInfo-boolean-}

```js
reduceDebugInfo(boolean val): OptionsHelper.ChatOptionsHelper
```

**Parameters:**
- `val`: whether to enable reduced debug info or not

**Returns:** self for chaining.

**Since:** 1.8.4

### setChatDelay {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_setChatDelay-double-}

```js
setChatDelay(double val): OptionsHelper.ChatOptionsHelper
```

Sets the delay between chat messages.

**Parameters:**
- `val`: the new chat delay in seconds

**Returns:** self for chaining.

**Since:** 1.8.4

### setChatFocusedHeight {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_setChatFocusedHeight-double-}

```js
setChatFocusedHeight(double val): OptionsHelper.ChatOptionsHelper
```

**Parameters:**
- `val`: the chat height scale while chat is focused

**Returns:** self for chaining.

**Since:** 1.8.4

### setChatLineSpacing {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_setChatLineSpacing-double-}

```js
setChatLineSpacing(double val): OptionsHelper.ChatOptionsHelper
```

Sets the spacing between chat lines.

**Parameters:**
- `val`: the new chat line spacing

**Returns:** self for chaining.

**Since:** 1.8.4

### setChatOpacity {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_setChatOpacity-double-}

```js
setChatOpacity(double val): OptionsHelper.ChatOptionsHelper
```

Sets the chat opacity.

**Parameters:**
- `val`: the new opacity

**Returns:** this helper

**Since:** 1.8.4

### setChatUnfocusedHeight {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_setChatUnfocusedHeight-double-}

```js
setChatUnfocusedHeight(double val): OptionsHelper.ChatOptionsHelper
```

**Parameters:**
- `val`: the chat height scale while chat is unfocused

**Returns:** self for chaining.

**Since:** 1.8.4

### setChatVisibility {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_setChatVisibility-String-}

```js
setChatVisibility(String mode): OptionsHelper.ChatOptionsHelper
```

Sets chat visibility to `FULL`, `SYSTEM`, or `HIDDEN`; matching is case-insensitive.  
 Unrecognized values leave the current setting unchanged.

**Parameters:**
- `mode`: the visibility mode

**Returns:** this helper

**Since:** 1.8.4

### setChatWidth {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_setChatWidth-double-}

```js
setChatWidth(double val): OptionsHelper.ChatOptionsHelper
```

Sets the chat width scale.

**Parameters:**
- `val`: the new chat width scale

**Returns:** self for chaining.

**Since:** 1.8.4

### setNarratorMode {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_setNarratorMode-String-}

```js
setNarratorMode(String mode): OptionsHelper.ChatOptionsHelper
```

**Parameters:**
- `mode`: the narrator mode to set; accepts `OFF`, `ALL`, `CHAT`, or `SYSTEM`, case-insensitively. Other values leave the current mode unchanged.

**Returns:** self for chaining.

**Since:** 1.8.4

### setShowColors {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_setShowColors-boolean-}

```js
setShowColors(boolean val): OptionsHelper.ChatOptionsHelper
```

Sets whether chat colors are enabled.

**Parameters:**
- `val`: whether chat colors are enabled

**Returns:** this helper

**Since:** 1.8.4

### setTextBackgroundOpacity {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_setTextBackgroundOpacity-double-}

```js
setTextBackgroundOpacity(double val): OptionsHelper.ChatOptionsHelper
```

Sets the opacity of text backgrounds.

**Parameters:**
- `val`: the new text background opacity

**Returns:** this helper

**Since:** 1.8.4

### setTextSize {#com.jsmacrosce.jsmacros.client.api.helper.OptionsHelper.ChatOptionsHelper_setTextSize-double-}

```js
setTextSize(double val): OptionsHelper.ChatOptionsHelper
```

Sets the chat text scale.

**Parameters:**
- `val`: the new text scale

**Returns:** self for chaining.

**Since:** 1.8.4
