Introduction
Welcome to the official documentation for Hoshii library. Hoshii is a NodeJS library that allows you to interact with the Guilded API easily. The rest of this documentation will guide you through what features Hoshii supports.
- Documentation: hoshii.js.org
- GitHub: github.com/helloreindev/hoshii
- Guilded Server: guilded.gg/hoshii
- NPM: npmjs.com/package/hoshii
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();