Ayyan e5a8f3b358 chore: setup "deno lint" (#331)
* chore: setup "deno lint"

* ci(lint): add --unstable flat to lint script

* lint

* lint

* refactor: destructure assignment for Message#guildID

* chore: remove TODO comment

* refactor: remove redundant async

* chore: switch to Deno stable vscode ext

* chore: remove ignore comments

* chore: remove ignore comments

* chore: remove @ts-ignore comment

* fixes

* fixes

* chore: remove deno-lint-ignore comment

* chore: add index signature
2021-01-03 20:12:42 +04:00
2020-12-27 18:49:55 +04:00
2021-01-03 20:12:42 +04:00
2021-01-03 20:12:42 +04:00
2021-01-01 11:20:02 +04:00
2021-01-03 20:12:42 +04:00
2021-01-03 20:12:42 +04:00
2021-01-01 14:24:04 +04:00
2020-12-26 20:16:11 -05:00
2021-01-03 16:35:32 +04:00

Discordeno

Discord API library for Deno

Discord Lint Test

  • First-class TypeScript & JavaScript support
  • Secure & stable
  • Efficient & inimalistic
  • Function-based API
  • Builtin Documentation

Usage

Beginner Developers

Don't worry a lot of developers start out coding their first projects as a Discord bot (I did 😉) and it is not so easy to do so. Discordeno is built considering all the issues with pre-existing libraries and issues that I had when I first started out coding bots. If you are a beginner developer, you may check out these awesome official and unofficial boilerplates:

If you do not wish to use a boilerplate, you may continue reading.

Advanced Developers

Here's a minimal example to get started with:

import { Intents, startBot } from "https://deno.land/x/discordeno@10.0.1/mod.ts";

startBot({
  token: "BOT TOKEN",
  intents: [Intents.GUILDS, Intents.GUILD_MESSAGES],
  eventHandlers: {
    ready() {
      console.log("Successfully connected to gateway");
    },
    messageCreate(message) {
      if (message.content === "!ping") {
        message.reply("Pong using Discordeno!");
      }
    },
  },
});

Contributing

We appreciate your help!

Before contributing, please read the Contributing Guide.

License

MIT © discordeno

Languages
TypeScript 98%
MDX 0.7%
CSS 0.6%
JavaScript 0.6%
Dockerfile 0.1%