
Security News
Meet Socket at Black Hat Europe and BSides London 2025
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.
discord-buttons-plugins
Advanced tools
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] ]
})
// 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);
});
CTK WARRIOR#7923@么Sintya#0001 FAQs
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Socket is heading to London! Stop by our booth or schedule a meeting to see what we've been working on.

Security News
OWASP’s 2025 Top 10 introduces Software Supply Chain Failures as a new category, reflecting rising concern over dependency and build system risks.

Research
/Security News
Socket researchers discovered nine malicious NuGet packages that use time-delayed payloads to crash applications and corrupt industrial control systems.