djs-zetsu
v2.0.3
Published
Djs-zetsu is a npm made for discord.js users to make their work easier! Checkout the functions of this NPM to know more.
Downloads
37
Maintainers
Readme
npm install djs-zetsu
Welcome
// Define Your DISCORDJS CLIENT & Import Important Things
const { Intents, Client } = require("discord.js")
const client = new Client({
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MEMBERS,
Intents.FLAGS.GUILD_MESSAGES,
Intents.FLAGS.DIRECT_MESSAGES,
],
params: ["CHANNEL"],
})
// Import Welcome Func
const { welcome } = require("djs-zetsu")
// Use it
welcome(client, {
DMmessage: `@MEMBER Thanks for Joining @GUILD`, // Message that will be sent in DM
message: `@MEMBER Just Hopped into the Server!`, // Message that will be sent in Channel
channelId: `922497844798181497`, // Channel Id where message will be sent
}) // Welcome func
// You can either use one of DMmessage/message or use both
// DMmessage only:
welcome(client, {
DMmessage: `@MEMBER Thanks for Joining @GUILD`, // Message that will be sent in DM
})
// Channel only:
welcome(client, {
message: `@MEMBER Just Hopped into the Server!`, // Message that will be sent in Channel
channelId: `922497844798181497`, // Channel Id where message will be sent
})
/**
* FLAGS: Yes! This Function comes with FLAGS
* FLAGS are OPTIONAL
* @MEMBER => Member who Joined
* @GUILD => Name of Server in which Member Joined
*/
Leave
// Define Your DISCORDJS CLIENT & Import Important Things
const { Intents, Client } = require("discord.js")
const client = new Client({
intents: [
Intents.FLAGS.GUILDS,
Intents.FLAGS.GUILD_MEMBERS,
Intents.FLAGS.GUILD_MESSAGES,
Intents.FLAGS.DIRECT_MESSAGES,
],
params: ["CHANNEL"],
})
// Import Leave Func
const { leave } = require("djs-zetsu")
// Use it
leave(client, {
message: `@MEMBER Just left us!`, // Message that will be sent in Channel
channelId: `922497844798181497`, // Channel Id where message will be sent
}) // Leave func
/**
* FLAGS: Yes! This Function comes with FLAGS
* FLAGS are OPTIONAL
* @MEMBER => Member who Left
* @GUILD => Name of Server from which Member Left
*/
RPS
const { rps } = require("djs-zetsu")
rps(interaction, { // Your Interaction
embedColor: "RANDOM", // hex code allowed
})
/** NOTE:
* In the same interaction/slashCommand add a option
* with ->
* name: "opponent",
* type: "USER",
* required: true,
* description: "Your Opponent of the Game"
* Name MUST be opponent in small letters!
*/