discord.grapes
v1.0.8-beta
Published
Discord Api wrapper
Maintainers
Readme
Grapes 🍇 - Discord.grapes
New wrapper for Discord api, soon with fantastic native supports.
Installation
Use the package manager npm to install Grapes.
npm install discord.grapesDocumentation
Inizialize your bot
const grapes = require("discord.grapes") // Import the library
const bot = new grapes.Application() // Create new bot
bot.start("bot token") // Start bot with tokenMethods
getMessage
| Param Name | Param Type | Required | | ------------- |-------------| -------- | | channel_id | string | true | | message_id | string | true |
Example
<Application instance>.getMessage("channel_id", "message_id")sendMessage
| Param Name | Param Type | Required | | ------------- |-------------| -------- | | channel_id | string | true | | message_content | string | true | | embeds | array of objects | false |
Example
// without embeds
<Application instance>.sendMessage("channel_id", "message_content")
// with embeds
<Application instance>.sendMessage("channel_id", "message_content", [{ title: 'Some title', description: 'Some description here'}])