mirror of
https://github.com/Hessenuk/DiscordTickets.git
synced 2025-09-02 08:41:25 +03:00
update
This commit is contained in:
@@ -1,26 +1,31 @@
|
||||
const Discord = require('discord.js');
|
||||
const { version } = require('../package.json');
|
||||
module.exports = {
|
||||
name: 'help',
|
||||
description: 'Displays help menu',
|
||||
usage: 'help [command]',
|
||||
aliases: ['command', 'commands'],
|
||||
execute(message, args, config, version) {
|
||||
const client = message.client;
|
||||
name: 'help',
|
||||
description: 'Displays help menu',
|
||||
usage: '[command]',
|
||||
aliases: ['command', 'commands'],
|
||||
args: false,
|
||||
cooldown: 5,
|
||||
execute(message, args, config, version) {
|
||||
const client = message.client;
|
||||
// command starts here
|
||||
message.delete();
|
||||
if(config.useEmbeds) {
|
||||
if (config.useEmbeds) {
|
||||
const embed = new Discord.RichEmbed()
|
||||
.setAuthor(`${client.user.username} / Commands`, client.user.avatarURL)
|
||||
.setColor(config.colour)
|
||||
.setColor(config.colour)
|
||||
.addField("...", `...`, true)
|
||||
.addField("...", `...`, true)
|
||||
.setFooter(`${client.guilds.get(config.guildID).name} : DiscordTickets by Eartharoid`);
|
||||
message.channel.send({embed})
|
||||
message.channel.send({
|
||||
embed
|
||||
})
|
||||
} else {
|
||||
message.channel.send(`**Prefix =** \`${config.prefix}\`\n**Bot Version =** \`${version}\``)
|
||||
}
|
||||
|
||||
|
||||
// command ends here
|
||||
},
|
||||
},
|
||||
};
|
||||
|
@@ -1,7 +1,9 @@
|
||||
module.exports = {
|
||||
name: 'new',
|
||||
description: 'Create a new ticket',
|
||||
usage: 'new [brief description]',
|
||||
usage: '<brief description>',
|
||||
aliases: ['ticket'],
|
||||
args: true,
|
||||
execute(message, args, config) {
|
||||
// command starts here
|
||||
message.delete();
|
||||
|
Reference in New Issue
Block a user