From e845cfd6059ab5d55bd112867bca5cb3739880b8 Mon Sep 17 00:00:00 2001 From: Emily J Date: Sat, 10 Oct 2020 14:01:56 +1100 Subject: [PATCH] export data variable to commands --- bot/commands/Core/help.js | 2 +- bot/commands/Core/ping.js | 2 +- bot/commands/Test/lastmessage.js | 2 +- bot/commands/Test/retrieve.js | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/bot/commands/Core/help.js b/bot/commands/Core/help.js index d3456a2..8f11172 100644 --- a/bot/commands/Core/help.js +++ b/bot/commands/Core/help.js @@ -9,7 +9,7 @@ class Help extends Command { }); } - async run (message, args, level) { // eslint-disable-line no-unused-vars + async run (message, args, data) { // eslint-disable-line no-unused-vars } } diff --git a/bot/commands/Core/ping.js b/bot/commands/Core/ping.js index 9548a2f..e586ca0 100644 --- a/bot/commands/Core/ping.js +++ b/bot/commands/Core/ping.js @@ -9,7 +9,7 @@ class Ping extends Command { }); } - async run (message, args, level) { // eslint-disable-line no-unused-vars + async run (message, args, data) { // eslint-disable-line no-unused-vars try { const msg = await message.channel.send('Pinging...') msg.edit( diff --git a/bot/commands/Test/lastmessage.js b/bot/commands/Test/lastmessage.js index 6a8345b..a3c60df 100644 --- a/bot/commands/Test/lastmessage.js +++ b/bot/commands/Test/lastmessage.js @@ -8,7 +8,7 @@ class Lastmessage extends Command { }); } - async run (message, args, level) { // eslint-disable-line no-unused-vars + async run (message, args, data) { // eslint-disable-line no-unused-vars const lastMsg = await this.client.functions.getLastMessage(message.channel); message.channel.send(lastMsg); } diff --git a/bot/commands/Test/retrieve.js b/bot/commands/Test/retrieve.js index e1d15ca..10d12a5 100644 --- a/bot/commands/Test/retrieve.js +++ b/bot/commands/Test/retrieve.js @@ -9,7 +9,7 @@ class Retrieve extends Command { }); } - async run (message, args, level) { // eslint-disable-line no-unused-vars + async run (message, args, data) { // eslint-disable-line no-unused-vars if (!args[0]) return message.channel.send("You didn't specify what key to retrieve!") try {