Comments (10)
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.
Send the code of the command so I can search if there is any error in my code or yours.
from advanced-command-handler.
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.
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.
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.
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.
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.
I did a typo, it's ((command) =>
, not (command) =>
^^'
from advanced-command-handler.
[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.
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)
- 2021 Plan HOT 8
- [QUESTION] Configuration HOT 8
- Bot not responding to commands HOT 7
- guildCreate event is not sending messages HOT 8
- Not working HOT 1
- 'Channels' option in commands options HOT 6
- CommandHandler.launch({}) returns an error HOT 6
- Putting not existing permissions in commands throw an error HOT 2
- Specific NSFW HOT 1
- How can I make an reaction event? HOT 2
- Error when loading commands. HOT 12
- Add patch note to update HOT 1
- isOwner function is not a function HOT 2
- Help command in the default commands HOT 2
- Disabled command HOT 5
- Owner bypass HOT 4
- Add typings for TS HOT 2
- Wrong place for the dayjs export after compilation
- Can't launch in v3.0.0-beta.3
- The bot does not respond to commands - 2021 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from advanced-command-handler.