mirror of
https://github.com/discordeno/discordeno.git
synced 2026-05-31 07:50:07 +00:00
68 lines
2.1 KiB
Markdown
68 lines
2.1 KiB
Markdown
# Discordeno
|
|
|
|
> Discord API library for Deno
|
|
|
|
[](https://discord.com/invite/5vBgXk3UcZ)
|
|

|
|

|
|
|
|
- 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
|
|
- [GitHub](https://github.com/Skillz4Killz/Discordeno-bot-template)
|
|
- [Features](https://github.com/Skillz4Killz/Discordeno-bot-template#features)
|
|
|
|
If you do not wish to use a boilerplate, you may continue reading.
|
|
|
|
### Advanced Developers
|
|
|
|
Here's a minimal example to get started with:
|
|
|
|
```typescript
|
|
import {
|
|
Intents,
|
|
sendMessage,
|
|
startBot,
|
|
} from "https://deno.land/x/discordeno@10.0.0/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") {
|
|
sendMessage(message.channelID, "Pong using Discordeno!");
|
|
}
|
|
},
|
|
},
|
|
});
|
|
```
|
|
|
|
## Useful Links
|
|
|
|
- [Website](https://discordeno.mod.land)
|
|
- [Documentation](https://doc.deno.land/https/deno.land/x/discordeno/mod.ts)
|
|
- [Support server](https://discord.com/invite/5vBgXk3UcZ)
|
|
|
|
## Contributing
|
|
|
|
We appreciate your help!
|
|
|
|
Before contributing, please read the [Contributing Guide](https://github.com/discordeno/discordeno/blob/master/.github/CONTRIBUTING.md).
|
|
|
|
### License
|
|
|
|
[MIT © discordeno](https://github.com/discordeno/discordeno/blob/master/LICENSE)
|