1.2.0 • Published 4 years ago

guildcord v1.2.0

Weekly downloads
-
License
Apache-2.0
Repository
github
Last release
4 years ago

About

Guildcord is a simple Node.js module to interact with the Guilded Client API.

Note ⚠️

Using the API to 'bot' your user account is a gray area in Guilded terms of ToU compliance. Use it on your own risk.

Installation

# NPM
npm install guildcord

# Yarn
yarn add guildcord

Usage

Basic Login

const { Client } = require("guildcord");
const client = new Client();

client.login("email", "password"); // This connection won't stay long until next update.

client.on("ready", () => {
    console.log(client.user.id);
});

Send Webhook

const { Webhook, Embed } = require("guildcord");
const hook = new Webhook({
    url: "Guilded webhook url"
});

hook.send("Hello World");

// With embed
const Guildcord = new Embed()
    .assignTitle("Guildcord")
    .assignDescription("A simple library for interacting with the Client API")
    .assignColor(5814783)
    .assignTitleUrl("https://github.com/guildcord/guildcord");

hook.send({
  content: "About Guildcord",
  embeds: [Guildcord]
});

License

Guildcord is licensed under Apache-2.0

1.2.0

4 years ago

1.0.0

4 years ago

0.0.0

4 years ago