|
1 | 1 | const { Owners, Footer } = global.client.settings;
|
2 | 2 | const { guildTags, guildDiscriminator, guildChat, botYt, registration, unregister, quarantine } = global.client.guildSettings;
|
3 |
| -const { staffs, limit, requireTag, penalBlockLimit, log, woman, man, vip } = registration; |
| 3 | +const { staffs, limit, requireTag, penalBlockLimit, penalPointBlockLimit, log, woman, man, vip } = registration; |
4 | 4 | const { quarantineDateLimit } = quarantine;
|
5 | 5 | const { womanRole, otherWomanRoles } = woman;
|
6 | 6 | const { unregisterRole } = unregister;
|
@@ -44,7 +44,7 @@ module.exports = {
|
44 | 44 | if(user.roles.highest.position >= message.member.roles.highest.position) return message.channel.error(message, Embed.setDescription(`Seninle aynı veya daha yüksek rolde olan birine bu işlemi uygulayamazsın!`), { react: true });
|
45 | 45 | if(user.roles.cache.has(womanRole) || user.roles.cache.has(manRole)) return message.channel.error(message, Embed.setDescription(`Belirttiğin üye zaten kayıtlı!`), { timeout: 8000, react: true });
|
46 | 46 |
|
47 |
| - let security = await client.checkSecurity(member.user, quarantineDateLimit); |
| 47 | + let security = await client.checkSecurity(user.user, quarantineDateLimit); |
48 | 48 | let userPenals = await penals.find({ guildID: message.guild.id, userID: user.id });
|
49 | 49 | let userPoint = await penalPoints.findOne({ guildID: message.guild.id, userID: user.id });
|
50 | 50 | let staffDatas = await registers.find({ guildID: message.guild.id, staffID: message.author.id });
|
|
0 commit comments