Lightweight package for discord.js that supports many cool features.download now!!
- Easy to Use
- Lightweight
- Cool Features
- ๐ Moderation
- โญ๏ธ Utility
- ๐ฎ Games and Fun (Will be working)
- ๐ General (Will be working)
Confirm Buttons
const { confirmButtons } = require("zeck.js");
const { EmbedBuilder, ButtonStyle } = require("discord.js");
await interaction.deferReply();
const embed = new EmbedBuilder()
.setTitle("Some Title")
.setDescription("Some Description")
.setColor("#303136")
// etc
confirmButtons(interaction, {
embed: embed,
authorOnly: `Only <@${interaction.member.id}> can use these buttons`,
yes: {
style: ButtonStyle.Primary,
label: "Yes",
emoji: "โ๏ธ",
},
no: {
style: ButtonStyle.Secondary,
label: "No",
emoji: "๐",
},
}).then(async (confirm) => {
if (confirm === "yes") {
interaction.editReply({
content: `Content to show when pressed yes`,
});
if (confirm === "no") {
interaction.editReply({
content: `Content to show when pressed no`,
});
}
if (confirm === "time") {
interaction.editReply({
content: `Time up content`,
});
}
});
more examples at example directory.