Socket
Book a DemoInstallSign in
Socket

discord.js-easy

Package Overview
Dependencies
Maintainers
1
Versions
3
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

discord.js-easy

Make discord bots easily!

latest
npmnpm
Version
1.0.3
Version published
Maintainers
1
Created
Source

discord.js-easy

This is for discord bot beginners.

Required node version: 16.6

Discord.js version: 13

How to use

This is simple to use! This is a simple !test command

const Discord = require("discord.js-easy")
const client = new Discord.Client("your-bot-token", {
    intents: ["GUILDS", "GUILD_MESSAGES"]
})

const command = new Discord.Command({
    name: "!test",
    send: "Test complete."
})

command.on("execute", (m, c) => {
    console.log(`Command ${c.name} ran with content ${m.content}`)
})

Wanna do cool stuff like changing roles and making channels?

Just use client! You will need to use the discord.js package for stuff like embeds. Otherwise, it's not needed.

const client = new Discord.Client("your-bot-token", {
    intents: ["GUILDS", "GUILD_MESSAGES"]
})
client.on("messageCreate", msg => {
    console.log(msg.content)
})

Need help or got any bugs/feature requests? Join the discord server!

FAQs

Package last updated on 04 Nov 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

About

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.

  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc

U.S. Patent No. 12,346,443 & 12,314,394. Other pending.