Pass prefix in help command
This commit is contained in:
parent
0c627c43d4
commit
d29920f871
1 changed files with 1 additions and 2 deletions
|
@ -1,12 +1,11 @@
|
|||
const fs = require('fs');
|
||||
const Discord = require('discord.js');
|
||||
const {prefix} = require('../config.json');
|
||||
|
||||
|
||||
module.exports = {
|
||||
name: 'help',
|
||||
description: 'List all available commands.',
|
||||
execute({message, args}) {
|
||||
execute({message, args, prefix}) {
|
||||
var commands = " "
|
||||
const commandFiles = fs.readdirSync('./commands').filter(file => file.endsWith('.js'));
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue