Repository
Current version released
4 years ago
Coward is a Deno module for easy interaction with the Discord API
Usage
You must be using Deno v1.0.2 or higher.
import { Client } from "https://deno.land/x/coward@v0.2.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.2.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 client.postMessage(message.channel.id, "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!