test command
This commit is contained in:
		
							parent
							
								
									dd7cd58786
								
							
						
					
					
						commit
						812f689c8c
					
				
					 1 changed files with 17 additions and 0 deletions
				
			
		
							
								
								
									
										17
									
								
								bot/commands/Test/lastmessage.js
									
										
									
									
									
										Normal file
									
								
							
							
						
						
									
										17
									
								
								bot/commands/Test/lastmessage.js
									
										
									
									
									
										Normal file
									
								
							| 
						 | 
				
			
			@ -0,0 +1,17 @@
 | 
			
		|||
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;
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue