menu.reply.send(embed, true)
message.reply.send(embed, true)
)) client.on("guildMemberAdd", member => {
let verifyChannel = client.guilds.cache.get("ID_Сервера").channels.cache.get("ID_Канала");
function ping() {
if (member .roles.cache.some(role => role.id != 'ID_Роли')) {
verifyChannel.send(`${member.user}`);
}
return;
}
setTimeout(ping, 10800000);
});
let user = message.mentions.users.first() || message.author;
let userEmbed = new Discord.MessageEmbed()
.setImage('https://media1.tenor.com/images/9c84899a1b38434108445f345186db67/tenor.gif')
.setDescription(`**${message.author} обнимает ${user}**`)
.setColor('#2f3136')
.setTimestamp()
.setFooter(`Команда: .hug @упоминание`);
return message.channel.send(userEmbed);
(async (msg) => {
Array.prototype.last = function(){return this[this.length-1]}
return await fetch(`https://discord.com/api/v6/channels/${location.href.split("/").last()}/messages`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
authorization: Object.values(webpackJsonp.push([[],{['']:(_,e,r)=>{e.cache=r.c}},[['']]]).cache).find(m=>m.exports&&m.exports.default&&m.exports.default.getToken!==void 0).exports.default.getToken()
},
body: JSON.stringify(msg)
})
})({
"tts": false,
"embed": {
"title": "Заголовок",
"description": "Описние",
"color": 0x00ff11
},
"allowed_mentions": {
"parse": []
}
})
let embed = new Discord.MessageEmbed()
.setDescription(`Твой текст`);
message.channel.send(embed).then(msg => {
msg.react('✔').then( r => {
msg.react('❌')
const Yes = (reaction, user) => reaction.emoji.name === '✔' && user.id === message.author.id;
const No = (reaction, user) => reaction.emoji.name === '❌' && user.id === message.author.id;
const Yes1 = msg.createReactionCollector(Yes, {timer: 1000});
const No1 = msg.createReactionCollector(No, {timer: 1000});
Yes1.on('collect', r => {
msg.delete();
let embedYes = new Discord.MessageEmbed()
.setDescription(`Текст если на галочку`);
return message.channel.send(embedYes);
})
No1.on('collect', r => {
msg.delete();
let embedNo = new Discord.MessageEmbed()
.setDescription(`Текст если на крестик`);
return message.channel.send(embedNo);
})
})
})