3.3.5 • Published 3 years ago

discord-buttons-plugins v3.3.5

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

Discord Buttons Plugins

Easiest medium to use buttons with any discord API wrapper

npm.io

   // 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

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

3.3.1

3 years ago

3.3.5

3 years ago

3.2.6

3 years ago

3.3.4

3 years ago

3.2.5

3 years ago

3.3.3

3 years ago

3.2.4

3 years ago

3.3.2

3 years ago

3.2.7

3 years ago

3.2.3

3 years ago

3.2.2

3 years ago

3.2.1

3 years ago

3.2.0

3 years ago