Skip to content

Commit

Permalink
discord.gg/luppux
Browse files Browse the repository at this point in the history
  • Loading branch information
Bes-js authored May 25, 2023
1 parent 8cc4538 commit 1aa556a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Shields/beş.js
Original file line number Diff line number Diff line change
Expand Up @@ -296,6 +296,7 @@ ${codeBlock("fix", `${conf.prefix}kanal-kur ${oldChannel.id}`)}
channelShield.on(Events.ChannelCreate, async (oldChannel) => {
let logs = await oldChannel.guild.fetchAuditLogs({ limit: 1, type: AuditLogEvent.ChannelCreate });
let entry = logs.entries.first();
let tür = { 2: "Ses Kanalı", 0: "Metin Kanalı", 5: "Duyuru Kanalı", 4: "Kategori", 13: "Sahne", 15: "Forum" }
if (!entry || await mainBots(entry.executor.id) || entry.executor.id == oldChannel.guild.ownerId) return;
if (await checkWhitelist(entry.executor.id)) {
return await send(`
Expand All @@ -309,7 +310,6 @@ channelShield.on(Events.ChannelCreate, async (oldChannel) => {
let member = await oldChannel.guild.members.fetch(entry.executor.id);
let response = member.bannable ? "Ceza Uyguladım!" : "Yetkim Yetmediği İçin Ceza Uygulayamadım!"
if (member && member.bannable) { await punish(channelShield, member.id, conf.Process.channelCreate) }
let tür = { 2: "Ses Kanalı", 0: "Metin Kanalı", 5: "Duyuru Kanalı", 4: "Kategori", 13: "Sahne", 15: "Forum" }

oldChannel.delete({ reason: `Shield ~ İzinsiz Kanal Açma İşlemi!` })

Expand Down

0 comments on commit 1aa556a

Please sign in to comment.