Update main.js

This commit is contained in:
ZyLacx 2021-12-27 16:55:13 +01:00
parent defe5b2d8e
commit a14f3e8d41

View file

@ -125,9 +125,9 @@ function move(message, splits){
currAttachment = allAttachments.next().value currAttachment = allAttachments.next().value
movedMessageContent.push(new Discord.MessageAttachment(currAttachment.url)); movedMessageContent.push(new Discord.MessageAttachment(currAttachment.url));
} }
client.channels.cache.get(mentionedChannelId).send(movedMessageContent).then(msgToEdit => { // client.channels.cache.get(mentionedChannelId).send(movedMessageContent).then(msgToEdit => {
msgToEdit.edit("Sent by <@" + msg.author + "> \nmooved <@" + message.author + ">\n" + msgToEdit.content); // msgToEdit.edit("Sent by <@" + msg.author + "> \nmooved <@" + message.author + ">\n" + msgToEdit.content);
}); // });
} }
else{ else{
movedMessageContent = msg.content; movedMessageContent = msg.content;