export data variable to commands
This commit is contained in:
parent
98f47c3ac7
commit
e845cfd605
4 changed files with 4 additions and 4 deletions
|
@ -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
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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(
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue