Giter VIP home page Giter VIP logo

Comments (10)

issue-label-bot avatar issue-label-bot commented on June 19, 2024

Issue-Label Bot is automatically applying the label bug to this issue, with a confidence of 0.87. Please mark this comment with 👍 or 👎 to give our bot feedback!

Links: app homepage, dashboard and code for this bot.

from advanced-command-handler.

Ayfri avatar Ayfri commented on June 19, 2024

Send the code of the command so I can search if there is any error in my code or yours.

from advanced-command-handler.

Aghits avatar Aghits commented on June 19, 2024

Send the code of the command so I can search if there is any error in my code or yours.

const { Command } = require('advanced-command-handler');
const { MessageEmbed } = require('discord.js');
module.exports = new Command({
    name: 'help',
    description: 'Show Help',
    // Optionnals :
    usage: 'hhelp',
    category: 'info',
    nsfw: false,
    guildOnly: false,
    ownerOnly: false,
    aliases: [],
    userPermissions: [],
    clientPermissions: [],
}, async(client, message, args) => {
    const testEmbed = new MessageEmbed()
    .setTitle('Help')
    .setDescription('To get a list of commands type hcommands')
    .addField('Need help?', 'Join https://discord.gg')
    message.channel.send(testEmbed);
})

from advanced-command-handler.

Ayfri avatar Ayfri commented on June 19, 2024

Everything seems okay, does the file is in a folder into your 'commands' folder ?

Can you send what it the output in the console when you do this :

console.log(CommandHandler.commands.find(command) => command.name === 'help'));

from advanced-command-handler.

Aghits avatar Aghits commented on June 19, 2024

Everything seems okay, does the file is in a folder into your 'commands' folder ?

Can you send what it the output in the console when you do this :

console.log(CommandHandler.commands.find(command) => command.name === 'help'));

yes https://prnt.sc/ue7vct

from advanced-command-handler.

Ayfri avatar Ayfri commented on June 19, 2024

Can you send what it the output in the console when you do this :

console.log(CommandHandler.commands.find(command) => command.name === 'help'));

from advanced-command-handler.

Aghits avatar Aghits commented on June 19, 2024

Can you send what it the output in the console when you do this :

console.log(CommandHandler.commands.find(command) => command.name === 'help'));

I don't think you can execute it...

from advanced-command-handler.

Ayfri avatar Ayfri commented on June 19, 2024

I did a typo, it's ((command) =>, not (command) => ^^'

from advanced-command-handler.

Aghits avatar Aghits commented on June 19, 2024
[9/9/2020 18:16:07.300][LOADING] Client initialized.
[9/9/2020 18:16:07.308][LOADING] Loading commands.
[9/9/2020 18:16:07.309][LOADING] Categories : (1)
[9/9/2020 18:16:07.310][LOADING] Commands in the category 'info' : (1)
[9/9/2020 18:16:07.312][LOADING] Loading the command : help.js
[9/9/2020 18:16:07.325][LOADING] 1 commands loaded.
[9/9/2020 18:16:07.328][LOADING] Loading events.
[9/9/2020 18:16:07.344][LOADING] Events : (0)
[9/9/2020 18:16:07.344][LOADING] 0 events loaded.
Command {
  name: 'help',
  run: [AsyncFunction],
  description: 'Show Help',
  usage: 'hhelp',
  category: 'info',
  aliases: [],
  clientPermissions: [],
  userPermissions: [],
  guildOnly: false,
  ownerOnly: false,
  nsfw: false
}

from advanced-command-handler.

Ayfri avatar Ayfri commented on June 19, 2024

It is normal, you don't have any events, remember what I said in the README :

This is an example, the message event is not integrated into the command handler, you have to create it yourself !

from advanced-command-handler.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.