Skip to content

glade-chat/glade.js

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

glade.js 🌿

A powerful, fully-typed Node.js library for the Glade API and real-time gateway.

npm version npm downloads license

About

glade.js is an object-oriented library that makes it easy to interact with Glade - Houses, Rooms, Messages, Members, Roles, DMs, friends, presence, and voice - over REST and the real-time gateway.

  • Object-oriented
  • Cache-backed and event-driven
  • Handles login and token refresh for you

Installation

Node.js 18.17 or newer is required.

npm install @glade-chat/glade.js

Example usage

import { Client, Events } from '@glade-chat/glade.js';

const client = new Client();

client.on(Events.Ready, () => {
  console.log(`Logged in as @${client.user.handle}`);
});

client.on(Events.MessageCreate, (message) => {
  if (message.content === '!ping') message.reply('Pong! 🌿');
});

client.login(`token`);

License

MIT

About

🌿 A powerful Node.js library for interacting with the Glade API and real-time gateway.

Resources

License

Stars

0 stars

Watchers

0 watching

Forks

Contributors