discord4node
v0.0.3-beta
Published
Module that allows you to interact with the Discord API
Downloads
6
Maintainers
Readme
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