mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-31 16:00:07 +00:00
3d39b3878a1ef69102ec284de98fa2cc29ca77c6
* p1 of bigints change * shtuff fixes and bits * Commit from GitHub Actions (Lint) * finish bigint structs * typings fixes * Commit from GitHub Actions (Lint) * more fixes * Commit from GitHub Actions (Lint) * more fixes * Commit from GitHub Actions (Lint) * blame wolf * Commit from GitHub Actions (Lint) * foxed * Commit from GitHub Actions (Lint) * fix unit tests * Commit from GitHub Actions (Lint) * change: guildUpdate guild ID can't change * delete server has been renamed to delete guild * fixes Co-authored-by: Skillz4Killz <Skillz4Killz@users.noreply.github.com> Co-authored-by: ITOH <72305210+itohatweb@users.noreply.github.com>
Discordeno
Discord API library for Deno
Discordeno follows Semantic Versioning
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!");
}
},
},
});
Templates
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 templates:
Links
Contributing
We appreciate your help! Before contributing, please read the Contributing Guide.
Description
Languages
TypeScript
98%
MDX
0.7%
CSS
0.6%
JavaScript
0.6%
Dockerfile
0.1%