Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
A simple, beginner friendly, and easy to use library for interacting with the Discord API, with minimal syntax
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?
For the full documentation, visit our website at gencord.org
With npm
$ npm i gencord
With yarn
$ yarn add gencord
Here's a quick example
const { Message, Client } = require("gencord");
const client = new Client({
token: "mysupersecrettoken",
intents: 513,
status: "online",
});
client.on("READY", () => {
console.log("Ready");
});
client.on("MESSAGE_CREATE", (messageData) => {
const message = new Message(data, client);
if (data.content === "!hello") {
message.reply(data.channel_id, "hello there!");
}
});
In Gencord, MessageEmbeds are easy to create, and send.
const { MessageEmbed, colors } = require("gencord");
client.on("MESSAGE_CREATE", (messageData) => {
const message = new Message(messageData, client);
if (message.content === "!embed") {
const embed = new MessageEmbed(client);
embed.send(message.channel_id, {
title: "Title",
description: "My description",
footer: {
text: "this is the footer",
},
color: colors.BLUE,
url: "https://google.com",
image: {
url:
"https://static.toiimg.com/photo/msid-67586673/67586673.jpg?3918697",
},
});
}
});
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.
git clone https://github.com/Gencord/gencord
, in your desired directory.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.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
A simple, beginner friendly, and easy to use library for interacting with the Discord API, with minimal syntax
The npm package gencord receives a total of 12 weekly downloads. As such, gencord popularity was classified as not popular.
We found that gencord demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.