Rexogamer 2e19bb28f9 ci: use correct version of pnpm + node 20
turns out [this is optional](https://github.com/pnpm/action-setup/tree/master#version) if `packageManager` is set in `package.json` (which it is). I imagine the version mismatch was the cause of our woes
2024-06-26 11:30:00 +01:00
2023-04-08 10:57:11 +01:00
2023-04-07 09:58:47 +01:00
2023-04-07 09:58:47 +01:00
2024-06-26 11:26:11 +01:00
2024-06-26 10:04:17 +01:00
2024-06-26 10:02:46 +01:00
2023-04-09 14:17:52 +01:00
2024-06-08 11:15:23 +01:00

revolt.js

revolt.js revolt-api

revolt.js is a JavaScript library for interacting with the entire Revolt API.

Example Usage

// esm / typescript
import { Client } from "revolt.js";
// ...or commonjs
const { Client } = require("revolt.js");

let client = new Client();

client.on("ready", async () =>
  console.info(`Logged in as ${client.user.username}!`)
);

client.on("messageCreate", async (message) => {
  if (message.content === "hello") {
    message.channel.sendMessage("world");
  }
});

client.loginBot("..");

Reactivity with Signals & Solid.js Primitives

All objects have reactivity built-in and can be dropped straight into any Solid.js project.

const client = new Client();
// initialise the client

function MyApp() {
  return (
    <h1>Your username is: {client.user?.username ?? "[logging in...]"}</h1>
  );
}

Revolt API Types

Warning

It is advised you do not use this unless necessary. If you find somewhere that isn't covered by the library, please open an issue as this library aims to transform all objects.

All revolt-api types are re-exported from this library under API.

import { API } from "revolt.js";

// API.Channel;
// API.[..];
S
Description
Typescript library for interacting with Stoat
Readme MIT 12 MiB
Latest
2026-01-16 13:28:35 -05:00
Languages
TypeScript 99.4%
JavaScript 0.5%