5.7 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:
Useful Links
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.
- Creating an Application on the Developer Portal, name something cool and pick a sweet icon!
- After creating an application. Save the Client ID. Thats the unique identifier for a Discord Bot.
- 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!!!
- Invite the bot to the server, you can use the Discord Permissions Calculator for creating the invite link with custom permissions. By default,
0means no permissions and8means 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://raw.githubusercontent.com/Skillz4Killz/Discordeno/v7/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 Client from "https://raw.githubusercontent.com/Skillz4Killz/Discordeno/v7/src/module/client.ts";
import { sendMessage } from "https://raw.githubusercontent.com/Skillz4Killz/Discordeno/v7/src/handlers/channel.ts";
import { Intents } from "https://raw.githubusercontent.com/Skillz4Killz/Discordeno/v7/src/types/options.ts";
import config from "./config.ts";
Client({
token: config.token,
intents: [Intents.GUILD_MESSAGES, Intents.GUILDS],
eventHandlers: {
ready: () => {
console.log(`Logged!`);
},
messageCreate: (message) => {
if (message.content === "!ping") {
sendMessage(message.channel, "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. |
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:
- Coming soon to NTM Development
Development Team
Skillz4Killz (Creator and Developer)
- GitHub: @Skillz4Killz
Contributors
NTM Nathan (Documentation Developer)
- Website: https://dev.ntmnathan.com/
- GitHub: @NTMNathan
EternallLight
- Website: https://web-mystery.com/
- GitHub: @EternallLight
Androz2091
- GitHub: @Androz2091
If you would like to join everyone else on the contribution list, feel free to join the Support Server for Discordeno!