update imports
This commit is contained in:
parent
4c3e5e635c
commit
5f6c498cb2
2 changed files with 1 additions and 3 deletions
|
@ -9,7 +9,7 @@ class Lastmessage extends Command {
|
||||||
}
|
}
|
||||||
|
|
||||||
async run (message, args, level) { // eslint-disable-line no-unused-vars
|
async run (message, args, level) { // eslint-disable-line no-unused-vars
|
||||||
const lastMsg = await message.util.getLastMessage(message.channel);
|
const lastMsg = await this.client.functions.getLastMessage(message.channel);
|
||||||
message.channel.send(lastMsg);
|
message.channel.send(lastMsg);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -35,8 +35,6 @@ module.exports = class {
|
||||||
while (args[0] &&args[0][0] === "-") {
|
while (args[0] &&args[0][0] === "-") {
|
||||||
message.flags.push(args.shift().slice(1));
|
message.flags.push(args.shift().slice(1));
|
||||||
}
|
}
|
||||||
|
|
||||||
message.util = this.client.messageUtil;
|
|
||||||
|
|
||||||
cmd.run(message, args, data);
|
cmd.run(message, args, data);
|
||||||
this.client.logger.cmd(`Command ran: ${message.content}`);
|
this.client.logger.cmd(`Command ran: ${message.content}`);
|
||||||
|
|
Loading…
Reference in a new issue