No description
.vscode | ||
src | ||
.eslintrc.js | ||
.gitignore | ||
CONTRIBUTING.md | ||
LICENSE | ||
mod.ts | ||
package.json | ||
README.md | ||
tsconfig.json |
discord-deno
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
Maintainers
Contributing
PRs are accepted.
Small note: If editing the README, please conform to the standard-readme specification.