export data variable to commands

This commit is contained in:
Emily 2020-10-10 14:01:56 +11:00
parent 98f47c3ac7
commit e845cfd605
4 changed files with 4 additions and 4 deletions

View file

@ -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
}
}

View file

@ -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(

View file

@ -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);
}

View file

@ -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 {