View on GitHub

Discord4Node

Module that allows you to interact with the Discord API

NPM

STILL IN DEVELOPMENT

Getting Started

Simply run npm i discord4node (or yarn add discord4node)

Usage

Create Client

const discord4node = require("discord4node");
const client = new discord4node({
    token: ""
})

client.login()

Event: ready

client.on('ready', () => {})

Event: message

client.on('message', (message) => {})

Function: send message

client.sendMessage(channelid, string)

Function: send embed message

client.sendEmbed(channelid, embedObject)

See working example here

You can find the embed object here