# @guildedjs/guilded.js

> A Node.js library for the Guilded.gg (https://www.guilded.gg/) API written in TypeScript, usable in either JavaScript or TypeScript projects.

Latest version **2.3.1-selfbot** (published 2022-03-19) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install @guildedjs/guilded.js
pnpm add @guildedjs/guilded.js
yarn add @guildedjs/guilded.js
bun add @guildedjs/guilded.js
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 2.3.1-selfbot |
| Published | 2022-03-19 |
| First published | 2020-12-24 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 6 |
| Unpacked size | 295 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 53 |
| Author | zaid450 |
| Maintainers | pankurs, nico.03727 |
| Keywords | guildedjs, guilded.js, guilded.gg, guilded-api, guilded |

## Links

- npm: https://www.npmjs.com/package/@guildedjs/guilded.js
- Repository: https://github.com/zaida04/guilded.js-selfbot
- Homepage: https://github.com/zaida04/guilded.js-selfbot/tree/main/packages/guilded.js#readme
- Issues: https://github.com/zaida04/guilded.js-selfbot/issues
- npm.io page: https://npm.io/package/@guildedjs/guilded.js

## Dependencies (6)

- [ws](https://npm.io/package/ws.md) ^7.4.0
- [@guildedjs/rest](https://npm.io/package/@guildedjs/rest.md) ^1.0.6-selfbot
- [@guildedjs/common](https://npm.io/package/@guildedjs/common.md) ^1.0.5-selfbot
- [@guildedjs/embeds](https://npm.io/package/@guildedjs/embeds.md) ^1.0.5-selfbot
- [@discordjs/collection](https://npm.io/package/@discordjs/collection.md) ^0.1.6
- [@guildedjs/webhook-client](https://npm.io/package/@guildedjs/webhook-client.md) ^1.0.6-selfbot

## Recent versions

- 2.3.1-selfbot (latest) — 2022-03-19
- 2.3.0-selfbot — 2022-03-19
- 2.2.1 — 2021-09-05
- 2.2.0 — 2021-09-05
- 2.1.1 — 2021-08-24
- 2.1.0 — 2021-08-19
- 2.0.1 — 2021-07-23
- 2.0.0 — 2021-07-22
- 1.2.2 — 2021-06-15
- 1.2.1 — 2021-06-15
- 1.2.0 — 2021-06-15
- 1.1.5 — 2021-06-12
- 1.1.2 — 2021-06-09
- 1.0.10 — 2021-06-03
- 1.0.9 — 2021-06-02
- … 10 more at https://npm.io/package/@guildedjs/guilded.js/versions

## README

<div align="center">
<h1>Guilded.js</h1>
<p><b>A Node.js library for the <a href="https://www.guilded.gg/">Guilded.gg</a> API.</b></p>
<p>
    <a href="https://discord.gg/jf66UUN"><img src="https://img.shields.io/discord/732714723744940032.svg?label=&logo=discord&logoColor=ffffff&color=7389D8&labelColor=6A7EC2 "></a>
    <img src="https://github.com/zaida04/guilded.js-selfbot/actions/workflows/ci.yml/badge.svg" alt="CI">
    <a href="https://opensource.org/licenses/MIT"><img src="https://img.shields.io/badge/License-MIT-yellow.svg" alt="License: MIT"></a><br>
</p>
</div>

```ts
const { Client } = require("@guildedjs/guilded.js");
// import { Client } from "@guildedjs/guilded.js";

const client = new Client();

client.on("ready", () => console.log(`Bot is successfully logged in`));

client.on("messageCreate", (message) => {
    if (message.content === "poggers") {
        return message.channel.send("poggers indeed");
    }
});

client.login({
    email: "email",
    password: "password",
});
```

## 📝 About

`@guildedjs/guilded.js` is a library written in TypeScript usable in either TypeScript or JavaScript projects. It provides structures, abstraction, and utilities for interaction between the guilded API and your userbot.

Off the bat there are very noticable similarities between this package and [`discord.js`](https://discord.js.org) structure-wise. This is intentional in order to make the migration or copying of your codebase to a Guilded bot smooth and predictable. We've adopted the same managers/cache structure that they've implemented because we find that it's what works well without complications. While our structure is **influenced** by them, there are underlying differences with how we handle things like websockets, events, and utilities. In addition to that, the library is split up into multiple packages (this being the main one) and written in TypeScript over JavaScript.

## 📥 Installation

<a href="https://npmjs.org/package/@guildedjs/guilded.js"><img src="https://nodei.co/npm/@guildedjs/guilded.js.png" alt="NPM"></a>

**Recommended that you use node v12+**

-   `npm install @guildedjs/guilded.js`
-   `yarn add @guildedjs/guilded.js`

## 📃 Documentation

Documentation is located [here](https://zaida04.github.io/guildedjs-selfbot-docs)

## 📦 Dependencies

-   [`@guildedjs/guilded-api-typings`](https://github.com/zaida04/guilded.js-selfbot/tree/main/packages/guilded-api-typings) (dev dep): used for typing the REST and WS payloads
-   [`@guildedjs/common`](https://github.com/zaida04/guilded.js-selfbot/tree/main/packages/common): Utilities between `@guildedjs` packages
-   [`@guildedjs/rest`](https://github.com/zaida04/guilded.js-selfbot/tree/main/packages/rest): Rest structure for `@guildedjs` packages
-   [`@guildedjs/embeds`](https://github.com/zaida04/guilded.js-selfbot/tree/main/packages/embeds): Embed builder/utility
-   [`@guildedjs/webhook-client`](https://github.com/zaida04/guilded.js-selfbot/tree/main/packages/webhook-client): Webhook Client
-   `@discordjs/collection`: Map utility
-   `ws`: WebSocket interaction

## ✋ Contributing

Please see the main [README.md](https://github.com/zaida04/guilded.js-selfbot) for info on how to contribute to this package or the other `@guildedjs` packages.

## 🤝 Acknowledgements

-   [`Discord.js`](https://discord.js.org/#/) - Inspiration and caching strategy

## ⚖️ LICENSING

Licensed under the [MIT License](https://github.com/zaida04/guilded.js-selfbot/blob/main/LICENSE)

---
_Source: https://npm.io/package/@guildedjs/guilded.js · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
