Introduction

CIopen in new windowCodeFactoropen in new windowGitHub Releaseopen in new windowNPMopen in new window

Welcome to the official documentation for Hoshii library. Hoshii is a NodeJS library that allows you to interact with the Guilded APIopen in new window easily. The rest of this documentation will guide you through what features Hoshii supports.

Installation

You are required to have NodeJS version 16.16.0 or higher installed.

npm install hoshii
yarn add hoshii
pnpm add hoshii

Examples

const Hoshii = require("hoshii");
const client = new Hoshii.Client("TOKEN");

client.on("ready", () => {
  console.log(`${client.user.name} is Ready!`);
});

client.on("chatMessageCreate", (message) => {
  if (message.member.bot) return;

  if (message.content === "!ping") {
    return client.createChannelMessage(message.channelID, {
      content: "Pong!",
    });
  }
});

client.connect();
Last Updated:
Contributors: Reinhardt