2021-04-05 20:38:00 +03:00
|
|
|
const Command = require('../modules/commands/command');
|
2021-05-03 18:30:52 +03:00
|
|
|
const { MessageEmbed } = require('discord.js');
|
2021-04-05 20:38:00 +03:00
|
|
|
const { footer } = require('../utils/discord');
|
|
|
|
|
|
|
|
module.exports = class CloseCommand extends Command {
|
|
|
|
constructor(client) {
|
2021-04-27 13:34:34 +03:00
|
|
|
const i18n = client.i18n.getLocale(client.config.locale);
|
2021-04-05 20:38:00 +03:00
|
|
|
super(client, {
|
|
|
|
internal: true,
|
|
|
|
name: i18n('commands.close.name'),
|
|
|
|
description: i18n('commands.close.description'),
|
|
|
|
aliases: [
|
|
|
|
i18n('commands.close.aliases.delete'),
|
|
|
|
],
|
|
|
|
process_args: false,
|
|
|
|
args: [
|
|
|
|
{
|
|
|
|
name: i18n('commands.close.args.ticket.name'),
|
|
|
|
description: i18n('commands.close.args.ticket.description'),
|
|
|
|
example: i18n('commands.close.args.ticket.example'),
|
|
|
|
required: false,
|
|
|
|
}
|
|
|
|
]
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
|
|
|
async execute(message, args) {
|
|
|
|
let settings = await message.guild.settings;
|
2021-04-27 13:34:34 +03:00
|
|
|
const i18n = this.client.i18n.getLocale(settings.locale);
|
2021-05-13 18:01:09 +03:00
|
|
|
|
|
|
|
this.client.log.info(args)
|
|
|
|
message.channel.send(args[0])
|
2021-04-05 20:38:00 +03:00
|
|
|
}
|
|
|
|
};
|