DiscordTickets/commands/close.js
Eartharoid d005cc48d1 update
2019-05-04 16:09:05 +01:00

23 lines
410 B
JavaScript

const Discord = require('discord.js');
const config = require('../config.json');
module.exports = {
name: 'close',
description: 'Close a ticket',
usage: '',
aliases: ['none'],
example: '',
args: false,
cooldown: config.cooldown,
guildOnly: true,
execute(message, args) {
const client = message.client;
// command starts here
message.delete();
// command ends here
},
};