From a0c93402df05ed43119cb45f81774d8eb4693839 Mon Sep 17 00:00:00 2001 From: Supositware Date: Tue, 26 Mar 2019 23:37:32 +0100 Subject: [PATCH] that's illegal! --- commands/hidden/unowned.js | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/commands/hidden/unowned.js b/commands/hidden/unowned.js index 2e99b50..ad8789d 100644 --- a/commands/hidden/unowned.js +++ b/commands/hidden/unowned.js @@ -5,6 +5,13 @@ class unownedCommand extends Command { super('unowned', { aliases: ['unowned'], category: 'hidden', + args: [ + { + id: 'member', + type: 'member', + match: 'rest' + } + ], description: { content: 'unowned', usage: '', @@ -13,7 +20,10 @@ class unownedCommand extends Command { }); } - async exec(message) { + async exec(message, args) { + if (args.member) { + return message.channel.send('You can\'t do that! that\'s illegal!'); + } if (message.author.id == '267065637183029248') { return message.channel.send('You have been sucessfully unowned'); }