Files
discordeno/docs/content/gettingstarted.md

5.9 KiB

title, metaTitle, metaDescription
title metaTitle metaDescription
Getting Started Getting Started | Discordeno Discordeno aims for a simple, easy and stress-free interaction with the Discord API. Always supporting the latest version to ensure stability, consistency and the best developer experience.

Getting Started

Discordeno aims for a simple, easy and stress-free interaction with the Discord API. Always supporting the latest version to ensure stability, consistency and the best developer experience.

This website serves as the purpose for introducing Discordeno to developers. The full documentation for all the functions and methods can be visited by clicking the link below:

View Documentation on Deno

Requirements

  • Deno 1.0 or higher

Creating your First Discord Bot Application

Plenty of guides are available on how to create a Discord Bot Application.

  1. Creating an Application on the Developer Portal, name something cool and pick a sweet icon!
  2. After creating an application. Save the Client ID. Thats the unique identifier for a Discord Bot.
  3. Now, go and create a bot by clicking the Bot tab. You will see a Token section and thats the Discord Bot's token. Make sure you don't share that token with anyone!!!
  4. Invite the bot to the server, you can use the Discord Permissions Calculator for creating the invite link with custom permissions. By default, 0 means no permissions and 8 means Administrator.

Now you've created an Application but it will need some code in order for it to be online. Thats when Discordeno comes in handy!

Make sure you store your tokens in a file that is NOT deployed by adding it to the .gitignore file. Don't share your bot token with anybody.

Installation

You can install Discordeno by importing:

import Client from "https://x.nest.land/Discordeno@9.0.1/src/module/client.ts";

Example Usage

Starting with Discordeno is very simple, you can start from scratch without any boilerplates/frameworks: Add this snippet of code into a new TypeScript file:

import StartBot from "https://x.nest.land/Discordeno@9.0.1/src/module/client.ts";
import { sendMessage } from "https://x.nest.land/Discordeno@9.0.1/src/handlers/channel.ts";
import { Intents } from "https://x.nest.land/Discordeno@9.0.1/src/types/options.ts";
import config from "./config.ts";

StartBot({
    token: config.token,
    intents: [Intents.GUILD_MESSAGES, Intents.GUILDS],
    eventHandlers: {
        ready: () => {
            console.log(`Logged!`);
        },
        messageCreate: (message) => {
            if (message.content === "!ping") {
                sendMessage(message.channelID, "Pong");
            }
        }
    }
});

Alternatively, you can use boilerplate template repositories that were created by wonderful developers. This will get the base of your bot pre-built for you. Overtime, developers create other command frameworks for this library and they will be listed here:

Bot Name Developer Links Description
Official Boilerplate Skillz4Killz#4500 GitHub, Support Server This is a very minimalistic design for a boilerplate for your bot to get you started.
DenoBot NTM Nathan#0001 GitHub, Support Server Another boilerplate example of the first one, with more commands and improvements.
Discordeno Helper Suyashtnt Github A reimplementation of DenoBot using the discordeno-helper framework

Open Sourced Bots:

Bot Name Developer Links
discordeno-mattis Mattis6666 Github

Tutorials

Below you will find youtube playlists that display channels using Discordeno for their tutorials.

Web-Mystery Tutorials:

YouTube Tutorials:


Development Team

Skillz4Killz (Creator and Developer)

Contributors

NTM Nathan (Documentation Developer)

EternallLight

Androz2091


If you would like to join everyone else on the contribution list, feel free to join the Support Server for Discordeno!