mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2024-11-09 14:23:08 +02:00
part 2
This commit is contained in:
parent
2964d1b9a6
commit
8a2c9fa90c
@ -1,7 +1,7 @@
|
||||
const Discord = require('discord.js');
|
||||
const { version } = require('../package.json');
|
||||
const config = require('../config.json');
|
||||
const log = require(`leekslazylogger`);
|
||||
|
||||
module.exports = {
|
||||
name: 'help',
|
||||
description: 'Displays help menu',
|
||||
@ -38,11 +38,11 @@ module.exports = {
|
||||
if (message.channel.type === 'dm') return;
|
||||
// message.channel.send(`A list of commands has been sent to you.`);
|
||||
})
|
||||
.catch(error => {
|
||||
.catch(() => {
|
||||
// console.error(`Could not send help DM to ${message.author.tag}.\n`, error);
|
||||
log.warn(`Could not DM help menu to ${message.author.tag}, sending to server channel instead`);
|
||||
message.channel.send(`:x: **Sorry!** There was an error whilst sending the help menu via DMs.`)
|
||||
message.channel.send(data, { split: true })
|
||||
message.channel.send(`:x: **Sorry!** There was an error whilst sending the help menu via DMs.`);
|
||||
message.channel.send(data, { split: true });
|
||||
});
|
||||
} else {
|
||||
const name = args[0].toLowerCase();
|
||||
@ -105,4 +105,4 @@ module.exports = {
|
||||
}
|
||||
// command ends here
|
||||
},
|
||||
};
|
||||
};
|
Loading…
Reference in New Issue
Block a user