mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-30 15:30:07 +00:00
2.1 KiB
2.1 KiB
Discordeno
Discord API library for Deno
- First-class TypeScript & JavaScript support
- Secure & stable
- Builtin Documentation
- Minimalistic
- Function-based API
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:
- Official Discordeno Boilerplate
- Dencord Starter
- [Add your Own]
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,
sendMessage,
startBot,
} from "https://deno.land/x/discordeno@9.4.0/mod.ts";
startBot({
token: "BOT TOKEN",
intents: [Intents.GUILD_MESSAGES, Intents.GUILDS],
eventHandlers: {
ready() {
console.log("Successfully connected to gateway");
},
messageCreate(message) {
if (message.content === "ping") {
sendMessage(message.channelID, "Pong using Discordeno!");
}
},
},
});
Useful Links
Contributing
We appreciate your help!
Before contributing, please read the Contributing Guide.