Go to file
Helloyunho 48f378c3e7 Update CONTRIBUTING.md
Forgot to commit this
2020-11-06 16:39:03 +09:00
.vscode Add cdn 2020-10-23 12:19:40 +09:00
src Fixed 2020-11-05 12:55:45 +09:00
.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 CONTRIBUTING.md 2020-11-06 16:39:03 +09:00
LICENSE Initial commit 2020-10-20 23:58:44 +09:00
README.md Fix lint & Added reconnect handler 2020-11-04 08:00:03 +09:00
mod.ts mod.ts edit 2020-11-04 21:38:52 +09:00
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

banner

standard-readme compliant

An easy to use Discord API Library for Deno

Table of Contents

Usage

import { Client } from 'https://deno.land/x/discord-deno/models/client.ts'
import { Message } from 'https://deno.land/x/discord-deno/structures/message.ts'

const bot = new Client()

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

bot.connect(TOKEN, [GatewayIntents.GUILD_MESSAGES])

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