0.0.3-beta • Published 5 years ago

discord4node v0.0.3-beta

Weekly downloads
10
License
-
Repository
github
Last release
5 years ago

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