Skip to main content

Discordeno

Discord API library for Deno

Discordeno follows semantic versioning

Discord Test

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 and versatile while being efficient and lightweight.
  • Functional API: The functional API ensures overall concise yet performant code while removing the difficulties of extending built-in classes and inheritance.
  • Cross Runtime: Supports both Deno and Node.js runtimes.
  • Standalone REST, Gateway, Custom Cache & more: Discordeno provides the ability to have almost every part of a bot as a standalone piece.

Getting Started

Minimal Example

Here is a minimal example to get started with:

import { createBot } from "https://deno.land/x/discordeno/mod.ts";

startBot({
  token: "BOT_TOKEN",
  intents: ["Guilds", "GuildMessages"],
  eventHandlers: {
    ready() {
      console.log("Successfully connected to gateway");
    },
    messageCreate(message) {
      // Process the message with your command handler here
    },
  },
});

Templates

Note to developers: don’t worry, a lot of developers start out by building a Discord bot as their first project, and it’s not easy. Discordeno is designed and built with all of the issues in mind that many developers have encountered when they initially started writing Discord bots using existing libraries. If you are a beginner, you can check out these awesome official and unofficial templates:

Frameworks

Contributing

We appreciate your help! Before contributing, please read the Contributing Guide.