master
Kit Kasune 3 years ago
parent edb9082bc2
commit dac7ef3659
  1. 2
      events/guildCreate.js
  2. 2
      events/guildMemberAdd.js
  3. 2
      events/messageUpdate.js

@ -19,7 +19,7 @@ module.exports = async (client, guild) => {
.setTitle(guild.name)
.setThumbnail(guild.iconURL({size: 2048}))
.addField('Owner', client.users.cache.get(guild.ownerId).tag, true)
.addField('Members', guild.members.cache.size, true)
.addField('Members', `${guild.members.cache.size}`, true)
.addField('Position', `Server #${client.guilds.cache.size}`, true)
.setColor('55ff7f')
.setFooter('Natsuki')

@ -14,6 +14,6 @@ module.exports = async (client, member) => {
&& member.guild.channels.cache.get(tg.wch).permissionsFor(client.user.id).has("SEND_MESSAGES")
&& !client.users.cache.get(member.id).bot
) {
try {member.guild.channels.cache.get(tg.wch).send(await sendResponse(member, member.guild.channels.cache.get(tg.wch), 'xdlol', client, tr.responses.get(tr.bindings.get('welcome'))));} catch {}
try {member.guild.channels.cache.get(tg.wch).send(await sendResponse(member, member.guild.channels.cache.get(tg.wch), 'xdlol', client, tr.responses.get(tr.bindings.get('welcome'))).catch(() => {}));} catch {}
}
};

@ -9,6 +9,8 @@ module.exports = async (client, oldM, newM) => {
//if (!Object.keys(snipe.edit).includes(oldM.guild.id)) {snipe.edit[oldM.guild.id] = {};};
//snipe.edit[oldM.guild.id][oldM.channel.id] = {old: oldM, cur: newM};
if (!oldM.guild.id) {return;}
let ts = client.guildconfig.logs.has(oldM.guild.id) && client.guildconfig.logs.get(oldM.guild.id).has('medit') ? client.guildconfig.logs.get(oldM.guild.id).get('medit') : null;
if (ts) {if (oldM.guild.channels.cache.has(ts) && oldM.guild.channels.cache.get(ts).permissionsFor(client.user.id).has("SEND_oldMS")) {
let embed = new Discord.MessageEmbed()

Loading…
Cancel
Save