This package has been deprecated

    Author message:

    Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

    discord-manager

    1.0.14 • Public • Published

    discord-manager


    NPM version NPM downloads

    NPM Banner

    A Simple Package Using discord.js Library. Code Without The Need For Prior Knowledge Includes: Command Handler , Discord Utils , Tickets , Interaction And More!

    📉 | Benefits

    1. No need a prior knowledge!
    2. Accessible and easy to use

    📦 | Installation

    1. type npm i discord-manager in your console.

    2. Make sure you have discord version 13 or later.

    3. 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)
      } 
    
      }
    })

    Install

    npm i discord-manager

    DownloadsWeekly Downloads

    11

    Version

    1.0.14

    License

    ISC

    Unpacked Size

    23.5 kB

    Total Files

    7

    Last publish

    Collaborators

    • ryns