The API client for foxochat.js
Install with npm / yarn / pnpm:
npm install @foxochat/api
yarn add @foxochat/api
pnpm add @foxochat/api
import API from "@foxochat/api";
const api = new API(rest);
api.rest.token = TOKEN;
try {
await api.message.create(CHANNEL_ID, {
content: "floof by coof",
});
} catch (error) {
console.error(error);
}