# ButtonBuilder

Defined in: [sdk/js/src/builders/button.ts:17](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/builders/button.ts#L17)

Type 2.

## Constructors

### Constructor

> **new ButtonBuilder**(): `ButtonBuilder`

#### Returns

`ButtonBuilder`

## Accessors

### customId

#### Get Signature

> **get** **customId**(): `string`

Defined in: [sdk/js/src/builders/button.ts:52](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/builders/button.ts#L52)

The custom id, if any.

##### Returns

`string`

## Methods

### setCustomId()

> **setCustomId**(`id`): `this`

Defined in: [sdk/js/src/builders/button.ts:37](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/builders/button.ts#L37)

#### Parameters

##### id

`string`

#### Returns

`this`

***

### setDisabled()

> **setDisabled**(`disabled?`): `this`

Defined in: [sdk/js/src/builders/button.ts:47](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/builders/button.ts#L47)

#### Parameters

##### disabled?

`boolean` = `true`

#### Returns

`this`

***

### setEmoji()

> **setEmoji**(`value`): `this`

Defined in: [sdk/js/src/builders/button.ts:33](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/builders/button.ts#L33)

#### Parameters

##### value

`string`

#### Returns

`this`

***

### setLabel()

> **setLabel**(`label`): `this`

Defined in: [sdk/js/src/builders/button.ts:29](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/builders/button.ts#L29)

#### Parameters

##### label

`string`

#### Returns

`this`

***

### setStyle()

> **setStyle**(`style`): `this`

Defined in: [sdk/js/src/builders/button.ts:25](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/builders/button.ts#L25)

#### Parameters

##### style

[`ButtonStyle`](/docs/reference/js/zaun-bot/type-aliases/buttonstyle/)

#### Returns

`this`

***

### setURL()

> **setURL**(`url`): `this`

Defined in: [sdk/js/src/builders/button.ts:42](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/builders/button.ts#L42)

A link button (`https://` only; opened after the reader confirms). Sets the style.

#### Parameters

##### url

`string`

#### Returns

`this`

***

### toWit()

> **toWit**(): `Button`

Defined in: [sdk/js/src/builders/button.ts:56](https://github.com/zaunchat/zaun-bot/blob/main/sdk/js/src/builders/button.ts#L56)

#### Returns

`Button`
