Skip to content

Commit 6cfab69

Browse files
committed
Some bugs fixed
1 parent 452f399 commit 6cfab69

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

src/commands/register/erkek.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ module.exports = {
4444
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 });
4545
if(user.roles.cache.has(manRole) || user.roles.cache.has(womanRole)) return message.channel.error(message, Embed.setDescription(`Belirttiğin üye zaten kayıtlı!`), { timeout: 8000, react: true });
4646

47-
let security = await client.checkSecurity(member.user, quarantineDateLimit);
47+
let security = await client.checkSecurity(user.user, quarantineDateLimit);
4848
let userPenals = await penals.find({ guildID: message.guild.id, userID: user.id });
4949
let userPoint = await penalPoints.findOne({ guildID: message.guild.id, userID: user.id });
5050
let staffDatas = await registers.find({ guildID: message.guild.id, staffID: message.author.id });

src/commands/register/isim.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ module.exports = {
3939
if(staffs.some(role => user.roles.cache.has(role)) || user.roles.cache.has(botYt) || user.hasPermission('MANAGE_ROLES')) return message.channel.error(message, Embed.setDescription(`Yetkili birine bu işlemi uygulayamazsın!`), { timeout: 8000, react: true });
4040
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 });
4141

42-
let security = await client.checkSecurity(member.user, quarantineDateLimit);
42+
let security = await client.checkSecurity(user.user, quarantineDateLimit);
4343
let userPenals = await penals.find({ guildID: message.guild.id, userID: user.id });
4444
let penalPoint = await penalPoints.findOne({ guildID: message.guild.id, userID: user.id });
4545
let staffDatas = await registers.find({ guildID: message.guild.id });

src/commands/register/kadın.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
const { Owners, Footer } = global.client.settings;
22
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;
44
const { quarantineDateLimit } = quarantine;
55
const { womanRole, otherWomanRoles } = woman;
66
const { unregisterRole } = unregister;
@@ -44,7 +44,7 @@ module.exports = {
4444
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 });
4545
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 });
4646

47-
let security = await client.checkSecurity(member.user, quarantineDateLimit);
47+
let security = await client.checkSecurity(user.user, quarantineDateLimit);
4848
let userPenals = await penals.find({ guildID: message.guild.id, userID: user.id });
4949
let userPoint = await penalPoints.findOne({ guildID: message.guild.id, userID: user.id });
5050
let staffDatas = await registers.find({ guildID: message.guild.id, staffID: message.author.id });

src/commands/staff/vip.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ module.exports = {
4545
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 });
4646
if(user.roles.cache.has(vipRole)) return message.channel.error(message, Embed.setDescription(`Belirttiğin üye zaten vip rolüne sahip!`), { timeout: 8000, react: true });
4747

48-
let security = await client.checkSecurity(member.user, quarantineDateLimit);
48+
let security = await client.checkSecurity(user.user, quarantineDateLimit);
4949
let userPenals = await penals.find({ guildID: message.guild.id, userID: user.id });
5050
let userPoint = await penalPoints.findOne({ guildID: message.guild.id, userID: user.id });
5151
let staffDatas = await registers.find({ guildID: message.guild.id });

0 commit comments

Comments
 (0)