Add Owner Utility Group

This commit is contained in:
Dragon Fire
2020-06-07 16:55:55 -04:00
parent 14396092f1
commit 2002733dd7
11 changed files with 22 additions and 22 deletions
@@ -1,29 +0,0 @@
const Command = require('../../structures/Command');
module.exports = class CommandLeaderboardExportCommand extends Command {
constructor(client) {
super(client, {
name: 'command-leaderboard-export',
aliases: [
'cmd-lb-export',
'cmd-leaderboard-export',
'command-lb-export',
'export-cmd-lb',
'export-cmd-leaderboard',
'export-command-lb',
'export-command-leaderboard'
],
group: 'util',
memberName: 'command-leaderboard-export',
description: 'Exports a command leaderboard JSON file.',
details: 'Only the bot owner(s) may use this command.',
ownerOnly: true,
guarded: true
});
}
run(msg) {
const result = this.client.exportCommandLeaderboard();
return msg.say({ files: [{ attachment: result, name: 'command-leaderboard.json' }] });
}
};