You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Haha-Yes/commands/owner/sendfile.js

31 lines
660 B
JavaScript

const { Command } = require('discord-akairo');
class sendfileCommand extends Command {
constructor() {
super('sendfile', {
aliases: ['sendfile'],
category: 'owner',
ownerOnly: 'true',
args: [
{
id: 'file',
type: 'string',
match: 'rest'
}
],
description: {
content: 'send a file from the server',
usage: '[a file on the server]',
examples: ['config-exemple.jsonc']
}
});
}
async exec(message, args) {
message.channel.send('Here is your file.', {files: [args.file]}).catch(() =>{
return message.channel.send('Could not find the requested file.');
});
}
}
module.exports = sendfileCommand;