mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 08:50:07 +00:00
9bc52d2ebf8d30b989fd6560f30bd162f95daf9c
Discordeno
Discord API library for Deno
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:
Useful Links
Contributing
We appreciate your help! Before contributing, please read the Contributing Guide.
License
Description
Languages
TypeScript
98%
MDX
0.7%
CSS
0.6%
JavaScript
0.6%
Dockerfile
0.1%