JSPM

zeneth

1.0.0-dev.d297cd3.1689941821
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 8
  • Score
    100M100P100Q81453F
  • License Apache-2.0

A library to interact with discord api easily

Package Exports

  • zeneth

Readme

Zeneth

Zeneth

A NodeJs Library that make interaction with discord api

Installation

npm i zeneth

or

yarn add zeneth

Setup

const {
    Client,
    Intents,
    GatewayEventNames,
} = require("zeneth");

const client = new Client({
    intents: Intents.Guilds | Intents.GuildMessages | Intents.MessageContent,
    token: "Token" ,
});


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

client.on(GatewayEventNames.MessageCreate, async(message) => {
    if (message.content === "!ping") {
        await client.createMessage(message.channelId, {
            content: `Pong!  ${client.ws.data.ping} ms`,
        });
    }
});

Structure

graph LR;
A[Zeneth] --> B[Classes];
A --> C[Client];
A --> D[Error];
A --> E[Events];
A --> F[Plugins];
A --> G[Request];
A --> H[Typings];
A --> I[Utils];
A --> J[Websocket];

LICENSE

Apache 2.0

Our ♥️ Contributors

zeneth-contributors