
Security News
Open Source CAI Framework Handles Pen Testing Tasks up to 3,600× Faster Than Humans
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
discord-buttons-react
Advanced tools
discord-buttons-react is a package that allow you to use buttons as reactions.
npm install discord-buttons-react
const discord = require('discord.js');
const client = new discord.Client();
require('discord-buttons')(client); // must be below your discord.Client()
require('discord-buttons-react')(client); // must be below your discord.Client()
message.channel.createMessageReactionButton(content, ButtonsReactionArray);
const disbutreact = require("discord-buttons-react");
const embed = new Discord.MessageEmbed().setColor("BLURPLE").setDescription("Click to add reaction !")
const ReactionButton1 = new disbutreact.ReactionButton()
.setStyle('red')
.setEmoji('✨');
const ReactionButton2 = new disbutreact.ReactionButton()
.setStyle('green')
.setEmoji('🎉');
message.channel.createMessageReactionButton("test", [ReactionButton1, ReactionButton2]);
// or
message.channel.createMessageReactionButton(embed, [ReactionButton1, ReactionButton2]);
client.on("messageButtonReactionAdd", reactionButton => {
// your code
})
client.on("messageButtonReactionRemove", reactionButton => {
// your code
})
Both events return reactionButton object :
methods | result |
---|---|
clicker | .user / .member |
reactionEmoji | emoji name or id |
message | message object |
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
CAI is a new open source AI framework that automates penetration testing tasks like scanning and exploitation up to 3,600× faster than humans.
Security News
Deno 2.4 brings back bundling, improves dependency updates and telemetry, and makes the runtime more practical for real-world JavaScript projects.
Security News
CVEForecast.org uses machine learning to project a record-breaking surge in vulnerability disclosures in 2025.