2020-08-18 08:30:05 +00:00
|
|
|
const Command = require("../../base/Command.js");
|
|
|
|
|
|
|
|
class Lastmessage extends Command {
|
|
|
|
constructor (client) {
|
|
|
|
super(client, {
|
|
|
|
description: "Grab last message sent to a channel.",
|
|
|
|
usage: "lastmessage",
|
|
|
|
});
|
|
|
|
}
|
|
|
|
|
2020-10-10 03:01:56 +00:00
|
|
|
async run (message, args, data) { // eslint-disable-line no-unused-vars
|
2020-10-08 02:06:46 +00:00
|
|
|
const lastMsg = await this.client.functions.getLastMessage(message.channel);
|
2020-08-18 08:30:05 +00:00
|
|
|
message.channel.send(lastMsg);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
module.exports = Lastmessage;
|