Nature's Particle Manager

    This package has been deprecated

    Author message:

    Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

    discord-buttons-plugins

    3.3.5 • Public • Published

    Discord Buttons Plugins

    Easiest medium to use buttons with any discord API wrapper

       // SETUP
       const buttonClient = require('discord-buttons-plugins');
       const Discord = require("discord.js");
       const client = Discord.Client();
       buttonClient(client);
       
       // SETUP MESSAGE BUTTON
       const button = new buttonClient.MessageButton()
    	 .setLabel("Click me")
    	 .setStyle("green")
    	 .setID("click");
    	 
    	
       // SEND MESSAGE WITH BUTTON
       
       buttonClient.send("There will be a button below this message",{
       channel: "CHANNEL ID",
       buttons: [ [button] ]
       })

    List interaction

    // listen to interaction 
    buttonClient.on("click", (inta) =>{
    inta.reply("Thanks for clicking me :3")
    });
    
    buttonClient.on("click", (inta) =>{
    inta.channel.delete()
    });
    
    buttonClient.on("click", (inta) =>{
    inta.guild.channels.create("Channel Testing :D")
    });
    
    buttonClient.on("click", (inta) =>{
    let user = inta.clicker.user.username;
    console.log(user);
    
    let user_id = inta.clicker.id;
    console.log(user_id);
    
    let member = inta.clicker.member;
    console.log(member);
    
    let fetch = inta.clicker.fetch;
    console.log(fetch);
    });

    L I N K S

    • 💬 Discord: Discord4Bots / MinCoder
    • ⚙️ Developer: CTK WARRIOR#7923
    • 🔧 Admin: @么Sintya#0001

    F E A T U R E S

    • Easy to handle and use
    • Made with simplicity
    • Less complexity

    C O N T A C T

    Install

    npm i discord-buttons-plugins

    DownloadsWeekly Downloads

    1

    Version

    3.3.5

    License

    ISC

    Unpacked Size

    11 kB

    Total Files

    6

    Last publish

    Collaborators

    • foughtyew