A Simple Package Using discord.js Library. Code Without The Need For Prior Knowledge Includes: Command Handler , Discord Utils , Tickets , Interaction And More!
📉 | Benefits
- No need a prior knowledge!
- Accessible and easy to use
📦 | Installation
-
type
npm i discord-manager
in your console. -
Make sure you have discord version 13 or later.
-
Start writing your code! If you need and help, take a look at our documentation!
📚 | Documentation (V1.0.14 Update)
Utils:
- getUser(userID)
- getUserBadges(user)
Type: Discord User
- getGuildUser(guild_id , user_id)
- getGuild(guildID)
- createRole(guildID, options)
name - String
color - Hex Color (String)
mentionable - Boolean
hoist - Boolean
permissions - Array / String (Discord Permissions List)
reason - String
- deleteRole(roleID)
- getChannel(channelID || channelName)
- createChannel(guild_id, type, options)
reason - String
topic - String
nsfw - Boolean
userLimit (Voice Only) - Number
permission - Array / String
parent - Discord Category Channel
- deleteChannel(channelID)
- getChannelFromMention(channelMention)
- getRole(guild_id, role_id)
- banUser(guild_id, user_id, options)
Reason - String
Days - Days
- kickUser(guild_id, user_id, reason)
- printDate(date, format)
Discord Together: (Supports all discord versions!)
- createActivity(voice_channel_id, activity)
youtube
poker
betrayal
chess
fishington
spellCast
awkword
puttparty
Invite Manager:
const Discord = require("discord.js")
const discordClient = new Discord.Client()
const DM = require('discord-manager')
const Handler = new DM.InviteHandler(discordClient , {
quiet: false, // If true, disable logs
}) // Automatically creates a new handler for you!
// Now you can access the event from the handler! Example:
client.on('guildInviteJoin' , (invite , inviter , member) => {
if (inviter !== null) {
console.log(`${member.user.username} joined the guild! Invited by: ${inviter.user.username} using the invite code: ${invite.code}`)
}
})
Examples
const Discord = require("discord.js")
const discordClient = new Discord.Client()
const DM = require("discord-manager")
const utils = new DM.Utils(discordClient)
discordClient.on("messageCreate" ,async message => {
if (message.content.startsWith(`!createrole`)) {
const role = await utils.createRole(message.guild.id, {
name: "Thats So Easy!!",
color: "0x00ff00",
Mentionable: true,
hoist: true,
permissions: [ "ADMINISTRATOR" ],
})
console.log(role)
}
}
})