18 lines
451 B
JavaScript
18 lines
451 B
JavaScript
|
const Command = require("../../base/Command.js");
|
||
|
|
||
|
class Lastmessage extends Command {
|
||
|
constructor (client) {
|
||
|
super(client, {
|
||
|
description: "Grab last message sent to a channel.",
|
||
|
usage: "lastmessage",
|
||
|
});
|
||
|
}
|
||
|
|
||
|
async run (message, args, level) { // eslint-disable-line no-unused-vars
|
||
|
const lastMsg = await message.util.getLastMessage(message.channel);
|
||
|
message.channel.send(lastMsg);
|
||
|
}
|
||
|
}
|
||
|
|
||
|
module.exports = Lastmessage;
|