1.0.0 • Published 2 years ago

revolt.io v1.0.0

Weekly downloads
-
License
Apache-2
Repository
github
Last release
2 years ago

Revolt.io NPM version

Overview

A JS/TS library to interacting with Revolt API

Features

  • Follow discord.js philosophy
  • Works on both nodejs and deno
  • Lightweight
  • Voice Support (work in progress..)

Revolt.io vs Revolt.js

TypeRevolt.ioRevolt.jswinner
Performanceunknownunknownmissing benchmark
Size286KB470KBRevolt.io
Packages312Revolt.io
Deno SupportYesNoRevolt.io
Browser SupportNoYesRevolt.js
JS GuidelinesFollowdoesn't careRevolt.io

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')

Links

License

Refer to the LICENSE file.

1.0.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.11

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.2

2 years ago