> For the complete documentation index, see [llms.txt](https://tdhandler.js.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://tdhandler.js.org/handling-files/buttons.md).

# Buttons

The properties a button-file can have

**File structure:**\
Buttons Folder\
-> Category Folder\
-> -> Button File

```javascript
module.exports = {
    // The MessageButton Options, customId is going to be its name
    button: {
        label: "help",
        customId: "help",
        style: "PRIMARY",
        disabled: false
    },
    // The permissions required by the client to click that button
    clientPermissions: null,
    // The permissions required by the client to click that button
    userPermissions: null,
    // This allows you to ignore the file in the loading process
    ignoreLoading: false,
    
    // The code to run that button
    run: ({interaction, client, tdhandler, user, member}) => {
        interaction.reply({
            content: "help I am under the water",
        })
    }
}
```
