YESSSSSSSSS

This commit is contained in:
Eartharoid
2019-05-03 23:42:29 +01:00
parent ca4ddb424c
commit 74fd489354
4 changed files with 12 additions and 9 deletions

View File

@@ -1,15 +1,19 @@
const Discord = require('discord.js');
module.exports = {
name: 'help',
description: 'Displays help menu',
usage: 'help [command]',
execute(message, args, config, version, client, Discord) {
aliases: ['command', 'commands'],
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} / Ticket Log`, client.user.avatarURL)
.setColor(config.colour)
.setDescription(":white_check_mark: **Started succesfully**")
.setAuthor(`${client.user.username} / Commands`, client.user.avatarURL)
.setColor(config.colour)
.addField("...", `...`, true)
.addField("...", `...`, true)
.setFooter(`${client.guilds.get(config.guildID).name} : DiscordTickets by Eartharoid`);
message.channel.send({embed})
} else {

View File

@@ -2,7 +2,7 @@ module.exports = {
name: 'new',
description: 'Create a new ticket',
usage: 'new [brief description]',
execute(client, message, args, config, Discord) {
execute(message, args, config) {
// command starts here
message.delete();
const ticketChannel = "channel";
@@ -12,7 +12,6 @@ module.exports = {
const embed = new Discord.RichEmbed()
.setAuthor(`${client.user.username} / Ticket Log`, client.user.avatarURL)
.setTitle("New Ticket")
.setColour
.addField("Username", message.author.tag, true)
.addField("Channel", ticketChannel, true)
.setFooter(`${client.guilds.get(config.guildID).name} : DiscordTickets by Eartharoid`);