Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@novelbrasil/discord.js-embed-menu

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@novelbrasil/discord.js-embed-menu - npm Package Compare versions

Comparing version 1.2.4 to 1.2.5

2

package.json
{
"name": "@novelbrasil/discord.js-embed-menu",
"description": "Easily create Discord.js embed menus with reactions and unlimited customisable pages.",
"version": "1.2.4",
"version": "1.2.5",
"author": "eilex",

@@ -6,0 +6,0 @@ "license": "MIT",

@@ -153,2 +153,84 @@ <div align="center">

```js
/* ... */
const menu = new DiscordEmbedMenu(interaction, [
{
name: `main`,
content: new EmbedBuilder({
title: `Main menu`,
description: `Please chose an action`,
fields: [
{
name: `📝 Sub menu`,
value: `Goes to another menu.`,
inline: false
},
{
name: `❌ Close`,
value: `Close the menu.`,
inline: false
}
]
}),
buttons: {
submenu: {
action: `submenu`,
button: new ButtonBuilder().setCustomId(`submenu`)
.setLabel(`Sub Menu`)
.setEmoji(`📝`)
.setStyle(ButtonStyle.Primary)
},
delete: {
action: `delete`,
button: new ButtonBuilder().setCustomId(`delete`)
.setLabel(`Close`)
.setEmoji(`❌`)
.setStyle(ButtonStyle.Danger)
}
},
},
{
name: `submenu`,
content: new EmbedBuilder({
title: `Sub menu`,
description: `Please chose an action`,
fields: [
{
name: `📝 Sub menu`,
value: `Goes to another menu.`,
inline: false
},
{
name: `❌ Close`,
value: `Close the menu.`,
inline: false
}
]
}),
buttons: {
main: {
action: `main`,
button: new ButtonBuilder().setCustomId(`main`)
.setLabel(`Back`)
.setEmoji(`⬅️`)
.setStyle(ButtonStyle.Primary)
},
delete: {
action: `delete`,
button: new ButtonBuilder().setCustomId(`delete`)
.setLabel(`Close`)
.setEmoji(`❌`)
.setStyle(ButtonStyle.Danger)
}
},
},
]);
/* Run Menu.start() when you're ready to send the menu. */
menu.start({ followUp: true });
}
/* ... */
```
## Special Destinations

@@ -155,0 +237,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc