Go to file
DjDeveloperr 4228cd8f52 README Update, remove client from Cache Adapters, clean up test code 2020-11-06 13:57:56 +05:30
.vscode Add cdn 2020-10-23 12:19:40 +09:00
examples Added Simplified Intents, and an example 2020-11-06 13:01:53 +05:30
src README Update, remove client from Cache Adapters, clean up test code 2020-11-06 13:57:56 +05:30
.eslintrc.js Now we can listen and send event 2020-10-26 02:03:53 +09:00
.gitignore Fix some lint errors and make more runtime errors(for now) 2020-11-02 15:58:23 +09:00
CONTRIBUTING.md Update readme and add contributing.md 2020-11-03 01:09:12 +09:00
LICENSE Initial commit 2020-10-20 23:58:44 +09:00
README.md README Update, remove client from Cache Adapters, clean up test code 2020-11-06 13:57:56 +05:30
mod.ts Added Simplified Intents, and an example 2020-11-06 13:01:53 +05:30
package.json Project start 2020-10-22 01:30:42 +09:00
tsconfig.json MASSIVE UPDATE NOW WITH EVENTS 2020-10-30 23:51:40 +09:00

README.md

discord-deno

standard-readme compliant

An easy to use Discord API Library for Deno.

  • Lightweight and easy to use.
  • 100% Discord API Coverage.
  • Customizable caching.
    • Built in support for Redis.
    • Write Custom Cache Adapters.
  • Complete TypeScript support.

Note: Library is yet under development and not completely usable. You're still always welcome to use, but there may be breaking changes.

Table of Contents

Usage

Right now, the package is not published anywhere, as its not completely usable. You can import it from this Raw GitHub URL: https://raw.githubusercontent.com/discord-deno/discord.deno/main/mod.ts

For a quick example, run this:

deno run --allow-net https://raw.githubusercontent.com/discord-deno/discord.deno/main/examples/ping.ts

And input your bot's token and Intents.

Here is a small example of how to use discord.deno,

import { Client, Message, Intents } from 'https://raw.githubusercontent.com/discord-deno/discord.deno/main/mod.ts'

const client = new Client()

client.on('ready', () => {
  console.log(`Ready! User: ${client.user?.tag}`)
})

client.on('messageCreate', (msg: Message): void => {
  if (msg.content === '!ping') {
    msg.channel.send(`Pong! WS Ping: ${client.ping}`)
  }
})

// Replace with your bot's token and intents (Intents.All, Intents.Presence, Intents.GuildMembers)
client.connect('super secret token comes here', Intents.All)

Docs

Not made yet.

Maintainer

@Helloyunho

Contributing

See the contributing file!

PRs are accepted.

Small note: If editing the README, please conform to the standard-readme specification.

License

MIT © 2020 Helloyunho