1.0.0 • Published 4 years ago

discord-bot-send v1.0.0

Weekly downloads
1
License
ISC
Repository
-
Last release
4 years ago

Getting Started

Example Code

const Bot = require("discord-bot-send"),
      bot = new Bot("YOUR_BOT_TOKEN");
      // embed is also optional.. but you need to have either the content  or embed filled out.. 
      bot.send("channelID", {
          content: optional_content, 
          embed: {
              title: "Test!"
          }
      })
      .then(console.log).catch(console.log) // This will log the response back from the send message or the error that the bot got while trying to send to the channel you provided.

Why even make this?

Well I was bored and found it interesting I guess. 🤷‍♀️