Update main.js

This commit is contained in:
ZyLacx 2022-01-14 18:56:01 +01:00
parent e84658a674
commit 45bd44654c

19
main.js
View file

@ -129,6 +129,10 @@ function move(message, splits){
var replyChannel = client.channels.cache.get(replyChannelId);
// create embed
// add field for every attachment
// keď je tam emebed tak možnosť cez emotes či vymazať original post alebo nie
// zisti ako sa robia replies ako robia normálny usery
replyChannel.messages.fetch(replyMessageId).then(msg => {
let newMessage = []
let allAttachments = msg.attachments.values()
@ -143,9 +147,18 @@ function move(message, splits){
})
msg.delete({timeout: 3000});
}
if (msg.embeds.length > 0){
client.channels.cache.get(mentionedChannelId).send("Can't really moove embeds, sowwy :c")
else {
if (msg.embeds.length > 0){
message.channel.send("Can't really moove embeds, sowwy :c")
}
else {
let newMsg = new Discord.MessageEmbed()
.setColor(randomColor())
.addField("MOO", `Sent by ${msg.author}\nmooved ${message.author}`)
.addField("Message:", msg.content)
client.channels.cache.get(mentionedChannelId).send(newMsg)
msg.delete({timeout: 3000})
}
}
});
message.delete({timeout: 3000});