Include request in-channel

This commit is contained in:
= 2021-08-10 15:34:11 -04:00
parent 74f3b5c9f7
commit 28a8c5346c

View File

@ -6,7 +6,7 @@ module.exports = {
usage: '<request or feedback>', usage: '<request or feedback>',
execute(message, file) { execute(message, file) {
const request = file.name; const request = file.name;
message.channel.send(fn.textEmbed('Your request has been submitted!', message.author, file.extension)); message.channel.send(fn.textEmbed('Your request has been submitted!\nRequest: ' + request, message.author, file.extension));
message.client.users.fetch(process.env.ownerID).then(user => {user.send(fn.textEmbed(request, message.author, file.extension));}).catch(error => { console.error(error);} ); message.client.users.fetch(process.env.ownerID).then(user => {user.send(fn.textEmbed(request, message.author, file.extension));}).catch(error => { console.error(error);} );
fn.uploadRequest(message.author, file.name); fn.uploadRequest(message.author, file.name);
} }