Skip to main content

Coward

Coward is a Deno module for easy interaction with the Discord API

All Contributors license maintainability deno documentation chat

Usage

You must be using Deno v1.0.2 or higher.

import { Client } from "https://deno.land/x/coward@v0.3.1/mod.ts";

Please don’t use this in anything important yet. It is barely functional, and as such is not production ready. Also note, coward uses Evt for events. You can read the documentation for that here.

Ping-Pong Example

import { Client } from "https://deno.land/x/coward@v0.3.1/mod.ts";

let client = new Client("TOKEN");

client.evt.ready.attach(() => {console.log("READY!")});

client.evt.messageCreate.attach(async ({message}) => {
  if(message.content == "!ping") {
    await message.channel.createMessage("Pong!");
  }
})

client.connect()

License

Please refer to LICENSE.

Contributing

Any contributions to Coward are accepted and encouraged. This can range from submitting bug reports, requesting features, improving documentation, or writing code. Please refer to CONTRIBUTING.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Joralmo

πŸ’» πŸ›

Exists

πŸ’»

This project follows the all-contributors specification. Contributions of any kind welcome!