const{ RichDisplay }=require("elara-react"),{ MessageEmbed }=require("discord.js");constmenu=newRichDisplay(newMessageEmbed())menu.addPage(embed=>{embed.setTitle(`Title!`)returnembed;});menu.run(awaitmessage.channel.send(`Loading, one moment please!`),{filter: (react,user)=>user.id===message.author.id})// Only include // , { filter: (react, user) => user.id === message.author.id }// If you want it to be locked to the message author.
RichMenu
const{ RichMenu }=require("elara-react"),{ MessageEmbed }=require("discord.js");constmenu=newRichMenu(newMessageEmbed())menu.addOption(`Option 1`,`Description for the option`);// Up to 10 options.letmsg=awaitmessage.channel.send(`Loading, one moment please.`),collector=awaitmenu.run(msg,{filter: (react,user)=>user.id===message.author.id}),choice=awaitcollector.selection;if(choice===null||choice===undefined)returnmsg.edit(`You didn't provide a choice?`);// returns a number.// 0-9if(choice===1)returnmsg.edit(`You've selected option 1!`);// Only include // , { filter: (react, user) => user.id === message.author.id }// If you want it to be locked to the message author.