> For the complete documentation index, see [llms.txt](https://scripting.breeze.rip/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://scripting.breeze.rip/api/breeze/settings/setting.md).

# Setting

### Extended by

* [`RangeSetting`](/api/breeze/settings/rangesetting.md)
* [`ColorSetting`](/api/breeze/settings/colorsetting.md)
* [`IntSetting`](/api/breeze/settings/intsetting.md)
* [`ModeSetting`](/api/breeze/settings/modesetting.md)
* [`BooleanSetting`](/api/breeze/settings/booleansetting.md)
* [`DoubleSetting`](/api/breeze/settings/doublesetting.md)

### Methods

#### description()

> **description**(): `string`

**Returns**

`string`

The description of the setting.

***

#### name()

> **name**(): `string`

**Returns**

`string`

The name of the setting.

***

#### visible()

> **visible**(`visible`): `void`

You can use this to hide settings temporarily depending on the user config. The callback should return a boolean.

**Parameters**

**visible**

`Function`

The function to determine if the setting should be visible or not.

**Returns**

`void`

**Example**

```ts
const delay = new IntSetting("Delay", "The amount of ticks to wait in between attacks.", false);

delay.visible(() => {
	return someOtherSetting.getValue()
});
```
