From 7a022ce9c3c6f3e0063d58acc49828cef308e6ed Mon Sep 17 00:00:00 2001
From: loicbersier <loic.bersier1@gmail.com>
Date: Fri, 31 May 2019 16:26:06 +0200
Subject: [PATCH] Reload command

---
 commands/owner/reload.js | 30 ++++++++++++++++++++++++++++++
 1 file changed, 30 insertions(+)
 create mode 100644 commands/owner/reload.js

diff --git a/commands/owner/reload.js b/commands/owner/reload.js
new file mode 100644
index 00000000..117e01fa
--- /dev/null
+++ b/commands/owner/reload.js
@@ -0,0 +1,30 @@
+const { Command } = require('discord-akairo');
+
+class reloadCommand extends Command {
+	constructor() {
+		super('reload', {
+			aliases: ['reload'],
+			category: 'owner',
+			ownerOnly: 'true',
+			args: [
+				{
+					id: 'command',
+					type: 'string',
+					match: 'rest'
+				}
+			],
+			description: {
+				content: 'reload command',
+				usage: '[command]',
+				examples: ['ping']
+			}
+		});
+	}
+
+	async exec(message, args) {
+		this.handler.reload(args.command);
+		return message.channel.send(`Sucessfully reloaded command ${args.command}`);
+	}
+}
+
+module.exports = reloadCommand;
\ No newline at end of file