mirror of
https://github.com/discordeno/discordeno.git
synced 2026-06-01 00:10:07 +00:00
cd0347a5e161028bfdd596f53674e2d5a6348950
* feat: standalone rest server * desc * fmt * <3 vlad * Update src/rest/README.md Co-authored-by: Ayyan <ayyantee@gmail.com> * Update src/rest/README.md Co-authored-by: Ayyan <ayyantee@gmail.com> * Update README.md * Update src/rest/deps.ts Co-authored-by: Ayyan <ayyantee@gmail.com> * Update src/rest/queue.ts Co-authored-by: Ayyan <ayyantee@gmail.com> * chore: ignore no-explicit-any rule * fix(rest): replace with correct import paths * deno fmt * fixes * fmt * use user agent cons * fix typings * Update src/rest/cache.ts Co-authored-by: Ayyan <ayyantee@gmail.com> * Update src/rest/cache.ts Co-authored-by: Ayyan <ayyantee@gmail.com> Co-authored-by: Ayyan <ayyantee@gmail.com>
Discordeno
Discord API library for Deno
- First-class TypeScript & JavaScript support
- Secure & stable
- Efficient & inimalistic
- Function-based API
- Builtin Documentation
Usage
Beginner Developers
Don't worry a lot of developers start out coding their first projects as a Discord bot (I did 😉) and it is not so easy to do so. Discordeno is built considering all the issues with pre-existing libraries and issues that I had when I first started out coding bots. If you are a beginner developer, you may check out these awesome official and unofficial boilerplates:
If you do not wish to use a boilerplate, you may continue reading.
Advanced Developers
Here's a minimal example to get started with:
import { Intents, startBot } from "https://deno.land/x/discordeno@10.0.1/mod.ts";
startBot({
token: "BOT TOKEN",
intents: [Intents.GUILDS, Intents.GUILD_MESSAGES],
eventHandlers: {
ready() {
console.log("Successfully connected to gateway");
},
messageCreate(message) {
if (message.content === "!ping") {
message.reply("Pong using Discordeno!");
}
},
},
});
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%