mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 08:20:08 +00:00
99ed2c2edb53420d00ced6ccbde165cfb4e278ca
* feat: add guidelines * Camelize * feat: add DiscordUser * add Discord prefix * feat: webhook types * add integration typings * add new errors and alphabetize * Add channel types * feat: add DiscordOverwrite * feat: webhook typings * feat: role typings * fix name * feat: integration types * feat: mod.ts for types * feat: add auditlog types * feat: teams typings * feat: add base user interface * feat: image typings * enable more mod.ts * feat: add emoji typings * channel typings * embed types * cleanup embed * add emoji types * add more member types * feat: add message types * add more to mod.ts * fix name * feat: add codes * feat: add guild types * feat: add integration types * add more to mod.ts * feat: add interaction types * feat: add voice types * add more to mod.ts * feat: add gateway, events * feat: add invite types * add to mod ts * feat: add template types * feat: add rate limits types * apply fixes * deno fmt * deno fmt * fix: oauth snake case * fix: oauth name * fix: add back and ignore deno fmt * fix: discord voice snake case * fix: util fmt * fix names and fmt * fix: auditlog types * lint: shut up in types * fix: no longer needed * test * fix import * fix missing error * fix error
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%