Revolt.io NPM version

Overview

A JS/TS library to interact with Revolt API

Features

  • Built with TypeScript
  • Object-oriented
  • Lightweight
  • Voice Support (work in progress..)
  • Deno Support

Installation (NodeJS Only)

Node.js v16.x or newer is required.

$ npm i revolt.io

Example Usage

// for Deno runtime use this
// import { Client } from 'https://deno.land/x/revoltio/mod.ts'
import { Client } from 'revolt.io'

const client = new Client()

client.on('ready', () => {
    console.log('Connected')
    console.log(client.user.username)
})

client.on('message', msg => {
    if (msg.content === '!ping') {
        msg.reply('Pong!')
    }
})

// Connect to Revolt API
client.login('revolt-token-here')

// for user accounts add this extra parameter
// client.login('revolt-token-here', 'user')

License

Refer to the LICENSE file.