Hey! I have decided to make a Discord API wrapper called DinoCord! I have a discord server to help with support and might even make a few Youtube tutorials as well! I have made it in typescript and have got types for anyone using typescript but it also supports javascript, I have placed the links below for anyone intrested in using the libary:
A Discord API Wrapper For Everyone
NOTE: this is in very early beta! For support please join the discord server
Docs: DinoCord Docs Thease can be ahead of the npm release! However the release will usually catch up quickly
Installing
You can install DinoCord from npm with the following command:
npm i DinoCord
yarn add dinocord
Example
Here is a basic example:
import { Client, StatusType, Token, PresenceType } from 'dinocord'
const client = new Client("TOKEN")
client.onReady(async (e) => {
console.log(`Online as ${e.user.username}#${e.user.tag}`)
client.setStatus("DinoBot!", StatusType.DND, PresenceType.PLAYING)
});
client.onMessage(async (e) => {
console.log(`New Message: ${e.message.content} | With the id ${e.message.snowflake} | Sent by ${e.sender.snowflake}`);
if(e.sender.snowflake != client.user.snowflake) {
if(e.message.content.toLowerCase().includes('dinocord')) {
e.reply(`<@${e.sender.snowflake}>, DinoCord is curently in a beta stage and isn't fully implimented!`)
}
}
});
client.login()