It is a discord (/) commands bot developed with Discord.js v13.

Overview

#Discord.js v13 Slash Bot
#Discord Server

🛠 Setup

  • Run the setup.bat file.
  • Wait until the process is finished.
  • Go to discord.dev page.
  • Create a bot.
  • Click on Bot on the left side.
  • Click Add Bot on the right.
  • Copy the bot's token.
  • Type the bot's token in the token field in config.json.
  • Finally open the run.bat file.

For Developers

Number Type
1 User
2 Role
3 Channel
4 String
5 Integer
6 Boolean
7 Mentionable

🔮 Example Command

module.exports = {
    name: "example",
    description: "qwe",
    options: [ // Types: 1, 2, 3, 4, 5, 6, 7
        { type: 1, name: 'user', description: 'Mention user.' },
        { type: 3, name: 'channel', description: 'Mention channel.' }
    ],
    run: async (client, interaction) => {
        /* 
            And I recommend using interaction.reply
            Because otherwise you will have to write a text to indicate who the message belongs to, 
            interaction.reply in slash commands will be best for you.
        */
        const channel = interaction.options.getChannel('channel');
        const user = interaction.options.getUser('user');
        /*
            interaction.options.get<optionType>('<optionName>');
        */
        if(channel) {
            await interaction.reply({ content: `${client.user.username} | ${channel.id}`, ephemeral: true  })
        }
        if(user) {
            await interaction.followUp({ content: `${client.user.username} | ${user.username}`, ephemeral: true  })
        }
        /*
            Why using followUp?
            > Because we can reply once in slash commands, but if we want 
            > to write more than one, we can provide multiple replies using followUp. 
            > But it is not a method that I highly recommend.
        */
    }
}

Star

  • Don't forget to star this repo for support :)
You might also like...

JavaScript / TypeScript templates for Discord.js v13, Slash Commands only!

discord.js-v13-template Slash Command Template Command Handler Events Handler Commands Example JavaScript Template TypeScript Template I will be const

Nov 15, 2022

Discord.js V13 Slash Commands, Events , Button Handler

Discord.js V13 Slash Commands, Events , Button Handler

Discord-js-v13-handler An advanced discord.js v13 command/events handler. Environment Variables To run this project, you will need to add the followin

Oct 14, 2022

About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this command handler.

discordJS-V14 About Discord bot draft that does not contain ready-made commands, compatible with discord.js v14. Create your own discord bot with this

Dec 28, 2022

v13 butonlu + mongodb'li register botudur. Sadece Merakımdan V13 uğraştım, devamı geleceğini düşünmüyorum. İstek üzerine yapılmıştır

v13 butonlu + mongodb'li register botudur. Sadece Merakımdan V13 uğraştım, devamı geleceğini düşünmüyorum. İstek üzerine yapılmıştır

Testleri yapılmıştır. Hiçbir hatası bulunmamaktadır. Starlarınızı bekliyorum. Yapmanız gereken adımlar settings.json dosyasının içindeki idleri doldur

Dec 20, 2022

Discord.js bot v13. Russian bot

Nutella-bot Discord.js bot v13. Russian bot Бот создан в России, он набирал популярность среди многих серверов. Завоевал 42 тысячи пользователей, и бы

Jun 5, 2022

All terminal commands in one place (you can Contribute to it by putting latest commands and adding Readme)

Terminal-Commands All basic terminal commands in one place Show some ❤ by some repositories You can contribute to this readme If you to contribute wit

Dec 15, 2022

OptiBOT - My discord.js V13 discord bot.

OptiBOT Just a discord.js v13 bot for my discord server. if you plan to use this bot for your server, dont. This i made this bot just for learning js

Jan 3, 2022

A package that allows your bot of discord.js v13 & v14 to create the new awesome Discord Modals and interact with them

A package that allows your bot of discord.js v13 & v14 to create the new awesome Discord Modals and interact with them

A package that allows your bot of discord.js v13 & v14 to create the new awesome Discord Modals and interact with them

Dec 23, 2022

Best fast responsive discord anti nuke bot made in javascript using Discord JS@v13

Security Plus Security Plus is an advance anti nuke bot for discord server , Developed in JavaScript by using discord.js@v13 , Security Plus don't all

Dec 23, 2022

A multipurpose bot, a clan bot, a all in one bot. The one bot u need for ur server originally made as Milrato discord Bot and by Tomato6966.

A multipurpose bot, a clan bot, a all in one bot. The one bot u need for ur server originally made as Milrato discord Bot and by Tomato6966.

Public Bot and Support Server! Invite the Public Version of this Bot so you don't need to host it by yourself or join my Discord server to get a custo

Dec 25, 2022

SlashCommands-Bot - An advanced discord bot, with Slash Commands !

SlashCommands Bot Github post is a discord bot handler with slashcommands in v13 How to install ? You need to have Node.JS 16+ git clone https://githu

Nov 16, 2022

Discord.js bot starter template, Slash Commands only (Raymond forced me to make a bot template)

boat-template Raymond forced me to make a bot template This template is meant is just for stupidness ig Getting Started Rename the config.example.ts t

Jan 5, 2022

Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js

Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js

Cyrus Cyrus is a Discord Bot with focus on Fun, Moderation, information and much more commands! Made it with Discord.js Invite : Click here Vote : Top

Dec 3, 2022

A Discord bot Template made with Discord.JS version 14 includes Prefix, Slash commands and MongoDB handler.

A Discord bot Template made with Discord.JS version 14 includes Prefix, Slash commands and MongoDB handler.

Project Language: Fork/Download for: Project Requirements: Database Available: DiscordJS V14 Bot Template - Introduction: A Discord bot project made w

Jan 3, 2023

A utility package for making discord-bot commands much easier to write with discord.js.

Cordcommand About A utility package for making discord-bot commands much easier to write with discord.js. Usage Example // initiate discord.js client

Dec 13, 2022

Um bot discord usando Discord.js v14 (slash commands)

ANTES DE TUDO LEMBRE-SE: COPIAR CÓDIGOS NÃO É PROGRAMAR! USE APENAS PARA FINS EDUCATIVOS E QUE APRENDA COM ESSE REPOSITÓRIO!!! Descrição Fiz esse repo

Dec 20, 2022

A utility package for making discord-bot commands much easier to write with discord.js.

Cordcommand About A utility package for making discord-bot commands much easier to write with discord.js. Usage Example // initiate discord.js client

Sep 15, 2022

A utility package for making discord-bot commands much easier to write with discord.js.

Cordmand About A utility package for making discord-bot commands much easier to write with discord.js. Usage Example Install this package: npm i @rein

Sep 28, 2022

An Easy to use and advanced working multiguild Waitingroom Bot written in discord.js v13 without any extra modules.

An Easy to use and advanced working multiguild Waitingroom Bot written in discord.js v13 without any extra modules.

Multiguild-Waitingroom-v13 An Easy to use and advanced working multiguild Waitingroom Bot written in discord.js v13 without any extra modules. It is m

Dec 11, 2022
Comments
  • Permission Bitfiled

    Permission Bitfiled

    When trying to start the bot, it says

    PS D:\Dateien\Dev\LXABot> node index.js
    D:\Dateien\Dev\LXABot\node_modules\discord.js\src\util\BitField.js:152
        throw new RangeError('BITFIELD_INVALID', bit);
        ^
    
    RangeError [BITFIELD_INVALID]: Invalid bitfield flag or number: undefined.
        at Function.resolve (D:\Dateien\Dev\LXABot\node_modules\discord.js\src\util\BitField.js:152:11)
        at D:\Dateien\Dev\LXABot\node_modules\discord.js\src\util\BitField.js:147:54
        at Array.map (<anonymous>)
        at Function.resolve (D:\Dateien\Dev\LXABot\node_modules\discord.js\src\util\BitField.js:147:40)
        at Client._validateOptions (D:\Dateien\Dev\LXABot\node_modules\discord.js\src\client\Client.js:546:33)
        at new Client (D:\Dateien\Dev\LXABot\node_modules\discord.js\src\client\Client.js:73:10)
        at Object.<anonymous> (D:\Dateien\Dev\LXABot\index.js:7:16)
        at Module._compile (node:internal/modules/cjs/loader:1109:14)
        at Object.Module._extensions..js (node:internal/modules/cjs/loader:1138:10)
        at Module.load (node:internal/modules/cjs/loader:989:32) {
      [Symbol(code)]: 'BITFIELD_INVALID'
    }
    

    I'd think this is because the permission integer wasnt set because there is no space for that. Please add one.

    opened by VampireTechnologyLord 3
Owner
clqu
Full-Stack Web Developer
clqu
Cross-platform Linux commands in ES6

Cross-platform Linux commands in pure ES6 Cash is a cross-platform implementation of Unix shell commands written in straight ES6. No native compiling

dc 7.8k Dec 27, 2022
Execute shell commands in terminal

Execute shell commands in terminal

skanehira 9 Dec 11, 2021
Discord bot template written with javascript, include slash.

Getting Started This Discord Template with Slash is an advanced, easy to setup, free, and unbranded Discord bot. Official Discord Server If you need h

null 8 Aug 22, 2021
A small Discord moderation bot, without a command handler

A small Discord moderation bot, without a command handler Getting started (Add Star ⭐ <3) ?? Requirements Node.js A code editor (visual studio code, a

null 10 Mar 12, 2022
Terminal ui for discord with interactive terminal

dickord why No fucking clue i was bored or something. why does it look dogshit Try and find a node module that supports terminal functions like trauma

Hima 3 Nov 7, 2022
A slash commands bot using guild commands as a custom commands alternative.

hack-n-slash A slash commands bot using guild commands as a custom commands alternative. This service uses slash-create to handle slash commands and r

Junior 2 Dec 5, 2022
A discord bot to track "owo", usually used to help with OwO bot. Made with Discord.js v13 includes Slash commands, Leaderboards, Auto Resets etc.

Discord-OwO-tracker A discord bot to track "owo", usually used to help with OwO bot Requirements Discord.js v13 (npm install discord.js@latest) applic

Astrex 4 Nov 24, 2022
A feature-rich Giveaway Bot For Discord Written In Discord.js v13. Ft. Slash Commands & Buttons. Make Giveaways and…

Giveaway - Discord Bot A feature-rich Giveaway Bot For Discord Written In Discord.js v13. Ft. Slash Commands. Make Giveaways and more..! Explore the d

Chethan Yadav 27 Dec 5, 2022
A fully customizable bot built with 147 commands, 11 categories and a dashboard using discord.js v13

Pogy the Discord Bot [DJS V13] A fully customizable bot built with 147 commands, 11 categories and a dashboard using discord.js v13 About • Features •

Pogy 61 Dec 30, 2022
Kanna is a Discord bot written in Javascript developed by Mirabellier just for fun. 🍄 Containing over 100+ commands from different categories (soon). 🌼

Kanna Kanna is a Discord bot written in Javascript developed by Mirabellier just for fun. ?? Containing over 100+ commands from different categories (

Mira 8 Dec 15, 2022