how can i make button Bot Discord

how can i make button Bot Discord In V13
3 Replies
d.js toolkit
d.js toolkit2y ago
• What's your exact discord.js npm list discord.js and node node -v version? • Post the full error stack trace, not just the top part! • Show your code! • Explain what exactly your issue is. • Not a discord.js issue? Check out #useful-servers.
NoMoreLife
NoMoreLifeOP2y ago
let allCommands = categories.map((cat) => {
let cmds = commands
.filter((cmd) => cmd.category == cat)
.map((cmd) => `\`${cmd.name}\``)
.join(" * ");

return {
name: `${emoji[cat]} ${cat}`,
value: cmds,
inline: true,
};
});


let help_embed = new EmbedBuilder()
.setAuthor({
name: `Prefix (-) Dont Use (/) Because it's not updated برجاء عدم استخدام ال سلاش لانها لم تكن متحدثه`,
iconURL: client.user.displayAvatarURL({ dynamic: true }),
})

.addFields(allCommands)
.setFooter(client.getFooter(user));

send({
embeds: [help_embed],
});
};
};
let allCommands = categories.map((cat) => {
let cmds = commands
.filter((cmd) => cmd.category == cat)
.map((cmd) => `\`${cmd.name}\``)
.join(" * ");

return {
name: `${emoji[cat]} ${cat}`,
value: cmds,
inline: true,
};
});


let help_embed = new EmbedBuilder()
.setAuthor({
name: `Prefix (-) Dont Use (/) Because it's not updated برجاء عدم استخدام ال سلاش لانها لم تكن متحدثه`,
iconURL: client.user.displayAvatarURL({ dynamic: true }),
})

.addFields(allCommands)
.setFooter(client.getFooter(user));

send({
embeds: [help_embed],
});
};
};
this my code
d.js docs
d.js docs2y ago
Suggestion for @nomorelifeguide Message Components: Buttons read more
Want results from more Discord servers?
Add your server