FoxoChat.js Packages
    Preparing search index...

    Module @foxochat/api

    FoxoChat API

    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);
    }

    Classes

    API
    AuthAPI
    ChannelAPI
    CommonAPI
    MessageAPI
    UserAPI

    Interfaces

    Options

    Type Aliases

    ConstructorOptions

    Variables

    DefaultOptions

    References

    default → API