mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-02 17:00:08 +00:00
602a74591e1dcb2c48b89bcae68c81a3cff68d19
* Adding missing await and updating some deps * Adding missing await and updating some deps * Adding missing await and updating some deps * Fix close code 4009 until deno fixes the issue: https://github.com/denoland/deno/pull/8776 * Fix heartbeating * Add await for the requestGuildMembers in requestAllMembers * Change body && body.file to body?.file * Fix lint #1 * Change body && body.file to body?.file * Fix lint * Deno lint * Update request.ts * Fix deno lint error * Update src/ws/shard_manager.ts Co-authored-by: ayntee <ayyantee@gmail.com> * Fix fetchMembers * Fix getMembersByQuery * Try to fix RequestMembersQueue processing * Deno lint * Fix requestGuildMembers * Fix requestGuildMembers * Fix requestAllMembers * Undo useless changes * Fix merge conflict * Fix merge conflict * Change for loop to Promise.all * Deno fmt Co-authored-by: ayntee <ayyantee@gmail.com> Co-authored-by: Skillz4Killz <23035000+Skillz4Killz@users.noreply.github.com>
Discordeno
Discord API library for Deno
Features
- Secure & stable: Discordeno is actively maintained to ensure great performance and convenience. Moreover, it internally checks all missing permissions before forwarding a request to the Discord API so that the client does not get globally-banned by Discord.
- Simple, Efficient, & Lightweight: Discordeno is simplistic, easy-to-use, versatile while being efficient and lightweight. Follows Convention Over Configuration design paradigm ― prefers defaults options or values that are recommended by Discord or the best configuration for the majority of the users.
- Functional API: Functional API ensures an overall concise yet 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 designed and built considering all the issues that I and a lot of developers 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%