sanikava-djs
v2.0.2
Published
Just a module for everything but only for new discord version
Downloads
84
Readme
sanikava-djs:
Installation:
npm install sanikava-djs@latest
npm install sanikava-djs@android
Available Commands:
Examples
Add Event to InteractionCreate btnclick
client.on('interactionCreate', async interaction => {
sdjs.btnclick(interaction)
});
Make Menu
sdjs.btnrole(client, message, {
embed: embed,
data: [
{
role: "role-id",
color: "color", // default: SECONDARY
label: "name", // default: *Role Name*
emoji: "emoji id" //optional
} // etc..
]
});
Add Event to InteractionCreate menuclick
client.on('interactionCreate', async interaction => {
sdjs.menuclick(interaction)
});
Make Menu
sdjs.mr(client,message,{
placeHolder:"Text Before selecting",//default: "Take a role here"
embed:"send embed" , //optional
text: "message above menu"//default: "Select a Role"
data: [
label: "name", //default: "Role Name"
desc:"description",
val:"role id",
emoji: "emoji", //optinal
]
})