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

gencord

Package Overview
Dependencies
Maintainers
2
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gencord

A simple, beginner friendly, and easy to use library for interacting with the Discord API, with minimal syntax

  • 0.1.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
12
increased by500%
Maintainers
2
Weekly downloads
 
Created
Source

NPM downloads

About

Support Server

A beginner friendly Discord API wrapper.

Gencord is a simple, beginner friendly, and easy to use library for interacting with the Discord API, with minimal syntax.

Why Gencord?

  • Extremely fast, and efficient (2 dependencies)
  • Beginner friendly
  • Slash Commands + Inline Replies support
  • JavaScript + TypeScript Support

For the full documentation, visit our website at gencord.js.org

Installation

With npm

$ npm install gencord

With yarn

$ yarn add gencord

Here's a quick example of a ping pong bot

const { Message, Client } = require("gencord");

const client = new Client({
  token: "mysupersecrettoken",
  intents: 513,
  status: "online",
});

client.on("READY", () => {
  console.log("Ready");
});

client.on("message", (message) => {
  if (message.content === "!ping") {
    message.channel.send(`Pong! ${client.ping()}ms`);
  }
});

MessageEmbeds

In Gencord, MessageEmbeds are easy to create, and send.

const { MessageEmbed, colors } = require("gencord");

client.on("message", (message) => {
  if (message.content === "!embed") {
    const embed = new MessageEmbed();
    embed.setColor(colors.BLUE);
    embed.setTitle("My Title");

    message.channel.send(embed);
  }
});

Gencord at the current state

Gencord is at the pre-alpha state right now, which means there is no NPM package currently published. If you would like to test out the library, please use the following instructions.

  1. Download the code by running the command git clone https://github.com/Gencord/gencord, in your desired directory.
  2. Run the command npm install, or yarn install, to install all of the dependencies of Gencord locally. The library only has 2 dependencies, so it should take no time.
  3. All testing changes should be made in the test directory, as this is where the testing of the project is done. Next, create a token.json file in the root dir, with 1 key called token, and paste your bot's token there. To start the current example, run the command npm run test-dev, in the terminal. Your bot should start, and to look at the example's commands, check out src/test/test.ts.

FAQs

Package last updated on 03 Mar 2021

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