--- editUrl: false next: false prev: false title: "ButtonCommand" --- ## Extends - [`Module`](/v4/api/interfaces/module/) ## Properties ### description? > `optional` **description**: `string` #### Inherited from [`Module`](/v4/api/interfaces/module/).[`description`](/v4/api/interfaces/module/#description) #### Source [src/types/core-modules.ts:39](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L39) *** ### execute() > **execute**: (`ctx`, `tbd`) => `unknown` #### Parameters • **ctx**: `ButtonInteraction`\<`CacheType`\> • **tbd**: [`SDT`](/v4/api/type-aliases/sdt/) #### Returns `unknown` #### Overrides [`Module`](/v4/api/interfaces/module/).[`execute`](/v4/api/interfaces/module/#execute) #### Source [src/types/core-modules.ts:81](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L81) *** ### meta > **meta**: `object` #### absPath > **absPath**: `string` #### id > **id**: `string` #### Inherited from [`Module`](/v4/api/interfaces/module/).[`meta`](/v4/api/interfaces/module/#meta) #### Source [src/types/core-modules.ts:40](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L40) *** ### name? > `optional` **name**: `string` #### Inherited from [`Module`](/v4/api/interfaces/module/).[`name`](/v4/api/interfaces/module/#name) #### Source [src/types/core-modules.ts:36](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L36) *** ### onEvent > **onEvent**: [`ControlPlugin`](/v4/api/interfaces/controlplugin/)\<`any`[]\>[] #### Inherited from [`Module`](/v4/api/interfaces/module/).[`onEvent`](/v4/api/interfaces/module/#onevent) #### Source [src/types/core-modules.ts:37](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L37) *** ### plugins > **plugins**: [`InitPlugin`](/v4/api/interfaces/initplugin/)\<`any`[]\>[] #### Inherited from [`Module`](/v4/api/interfaces/module/).[`plugins`](/v4/api/interfaces/module/#plugins) #### Source [src/types/core-modules.ts:38](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L38) *** ### type > **type**: [`Button`](/v4/api/enumerations/commandtype/#button) #### Overrides [`Module`](/v4/api/interfaces/module/).[`type`](/v4/api/interfaces/module/#type) #### Source [src/types/core-modules.ts:80](https://github.com/sern-handler/handler/blob/222ecd9b61ad0b94830a2a9444118f01e1b7d6cd/src/types/core-modules.ts#L80)