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