Deno.js Discord API Wrapper Denord Library Tutorial to Interact With Discord in TypeScript Full Project For Beginners

 

denord

 

Tags CI Status Dependencies License


⚠️ Work in progress. Expect breaking changes.


 

Denord is a module to interact with the discord API.

For event handling, the event module is used.

 

 

Example

 

 

import { Client } from "https://deno.land/x/denord/src/client.ts";

const client = new Client();
await client.connect("TOKEN");
console.log("ready");

for await (const [channel, message] of client.asyncOn("messageCreate")) {
  if (message.content === "!ping") {
    channel?.sendMessage({
      content: `${message.author.mention} pong`,
    });
  }
}

Leave a Reply