Buttons

You can handle button interactions with this package as well. You have to give the button's custom ID and when that button is clicked , the program which you attach to it runs.

Basic Syntax :

module.exports = {
    name : "button-customID",
    async run({interaction}){ // Button Interaction -> interaction
        //YOUR CODE
    }
}

We are currently working on this functionality and you thus will be adding some more features !

Last updated