A Discord API Wrapper For Everyone 🦕
NOTE: this is in very early beta and isn't ready for use on release server yet! For support please join the discord server :D
Docs: DinoCord Docs Thease can be ahead of the npm release! However the release will usually catch up quickly 📨
The prerequisites for DinoCord are:
This is recomended for use with FXServer primerally FiveM which can be got from there docs. You can then make a JS resource as show on there scripting manual
You can install DinoCord from npm with the following command:
npm i DinoCord
yarn add dinocord
Here is a basic example:
import { Client, StatusType, PresenceType } from 'dinocord'
const client = new Client("TOKEN")
client.onReady(async (e) => {
console.log(`Online as ${e.user.username}#${e.user.tag}`)
client.setStatus("DinoCord!", StatusType.DND, PresenceType.PLAYING)
});
client.onMessage(async (e) => {
console.log(`New Message: ${e.message.content} | With the id ${e.message.snowflake}`)
await e.reply(`Hey, I'm DinoCord!`)
});
client.login()