Ayyan 417315f89e feat: add rateLimit event (#447)
* fix(controllers): change return value of INTERACTION_CREATE event

* feat: add rateLimit event

Closes https://github.com/discordeno/discordeno/issues/349

* Revert "fix(controllers): change return value of INTERACTION_CREATE event"

This reverts commit 9bc52d2ebf.

* https://open.spotify.com/track/6fxVffaTuwjgEk5h9QyRjy
2021-01-24 23:04:34 +04:00
2020-12-27 18:49:55 +04:00
2021-01-20 23:29:59 +04:00
2021-01-03 20:12:42 +04:00
2021-01-24 23:01:46 +04:00
2021-01-24 23:04:34 +04:00
2021-01-01 14:24:04 +04:00
2021-01-20 13:51:44 +04:00

Discordeno

Discord API library for Deno

Discord Lint Test

Features

  • Secure & stable: Discordeno is comparatively more stable than the other libraries. One of the greatest issues with almost every library is stability; types are outdated, less (or minimal) parity with the API, core maintainers have quit or no longer actively maintain the library, and whatnot. Discordeno, on the other hand, is actively maintained to ensure great performance and convenience. Discordeno internally checks all missing permissions before forwarding a request to the API so that the client does not get globally-banned by Discord.
  • Efficient & lightweight: Discordeno is simplistic, easy-to-use, versatile, and efficient. Uses Convention Over Configuration design paradigm ― prefers defaults that Discord recommends or the best configuration for the majority of the users.
  • Functional API: This will produce an overall concise and more performant code while removing the difficulties of extending built-in classes and inheritance.

Getting Started

Minimal Example

Here is a minimal example to get started with:

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

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

Boilerplates

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

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%