2.5.6 • Published 4 years ago

discord-button-builder v2.5.6

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

📥 | Installation

npm install discord-button-builder

📝 | Setup

const builder = require('discord-button-builder');

🗒 | Syntax

//Style-default : PRIMARY|SUCCESS|SECONDARY|DANGER
builder('customId','Styles','Label');

//Style-Link:LINK
//Simultaneous use of links and emoji is currently not supported in this module.
//Please wait for an update.
builder('url-here','LINK','Label');

//Style-Emoji(Optional)
builder('customId','Styles','Label','😆');

📋 | Usage

client.on('messageCreate', async message => {
    if (message.content.startsWith("!button")) {
        const button = builder('button-ids','PRIMARY','Button Text!');
        await message.channel.send({
            content: "ㅤㅤ",
            components: [ new Discord.MessageActionRow().addComponents(button) ]
        });
    }
2.5.6

4 years ago

2.5.5

4 years ago

2.5.1

4 years ago

2.5.0

4 years ago

2.0.0

4 years ago

1.0.0

4 years ago