client.on(`roleDelete`, async role => { const audit = await client.guilds.cache.get("SUNUCUID").fetchAuditLogs({ type: "ROLE_DELETE" }).then(audit => audit.entries.first()); const yapanad = audit.executor; const id = audit.executor.id; if (id === client.user.id || id === "KORUMAID1" || id === "KORUMAID2" || id === "KORUMAID3" || id === "KORUMAID4") return; let koruma = role.guild.members.cache.get(yapanad.id) let mention = role.mentionable; let hoist = role.hoist; let color = role.hexColor; let name = role.name; let perms = role.permissions; let position = role.position; role.guild.roles.create({name: name, color: color, hoist: hoist, position: position, permissions: perms, mentionable: mention}) koruma.roles.set(koruma.roles.cache.has("BOOSTERID") ? ["CEZALIID", "BOOSTERID"] : ["CEZALIID"]).catch(); const rolkoruma = new MessageEmbed() .setColor(`RANDOM`).setAuthor(`Syn ♥ Odies.Net Rol Silme Koruması`, client.user.avatarURL()) .setTimestamp() .setDescription(`${yapanad}, adlı kullanıcı bir rol sildi silinen rolü açtım ve kullanıcıyı banladım`) role.guild.owner.send(rolkoruma).catch() let logk = role.guild.channels.cache.find(x => x.name === "odies-rolkoruma"); if(!logk) return; logk.send(rolkoruma).catch() });