New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

guilded.ts

Package Overview
Dependencies
Maintainers
1
Versions
68
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

guilded.ts

A powerful NPM module that allows you to easily interact with the Guilded API.

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
8
decreased by-20%
Maintainers
1
Weekly downloads
 
Created
Source

Guilded.TS

A powerful NPM module that allows you to easily interact with the Guilded API.


Packages

  • guilded.ts ( NPM ) - The main package for interacting with the official Guilded API.
  • guilded-api-typings ( NPM ) - Type definitions for the Guilded API.
  • @guildedts/builders ( NPM ) - A set of builders for creating a Guilded bot.
  • @guildedts/rest ( NPM ) - The REST API manager for Guilded.TS.
  • @guildedts/ws ( NPM ) The Websocket API manager for Guilded.TS.

Installation

npm i guilded.ts
yarn add guilded.ts
pnpm add guilded.ts

Example bot

// ESM
import Client, { Embed } from 'guilded.ts';
// CommonJS
const { Client, Embed } = require('guilded.ts');

// Create a new client
const client = new Client();

// This event is emitted when your bot is connected to Guilded's Gateway API.
client.once('ready', () => console.log(`[READY] Logged in as ${client.user.name}.`));

// This event is emitted when a message is sent on Guilded.
client.on('messageCreate', (message) => {
    if (message.content?.toLowerCase() !== 'ping') return;

	const embed = new Embed()
        .setTitle('Pong!')
        .setDescription('This is the ping command!')
        .setColor('GREEN');

	message.reply({ content: 'Pong!', embeds: [embed] });
});

// Log into guilded
client.login('YOUR_BOT_TOKEN');

Contributing

Contributing helps us maintain Guilded.TS. All contributions are greatly appreciated.

We utilize Yarn and Turbo to manage our Monorepo. If you want to contribute we highly recommend knowing the basics of these two.

Getting started

To get started, run the following scripts:

# Install all dependencies
yarn install
# Build all local packages
yarn build

Committing your changes

After you have made your desired changes, make sure you run the following script before committing your changes:

# Prepare your code
# Runs prettier along with eslint
yarn prepare

Maintained by Gamertike. | Inspired by discord.js.

Keywords

FAQs

Package last updated on 28 Apr 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc