const Discord = require('discord.js') const { parse } = require("twemoji-parser") module.exports = { name: "emojiçal", description: "emoji ekleyecek gücün olmadığı için bunu kullanıyorsun.", category: "moderation", run: async (client, message, args) => { if (!message.member.hasPermission("MANAGE_EMOJIS")) { return message.channel.send("ask the owner to give you ahaha") } if(!message.member.me.HasPermission(MANAGE_EMOJIS)) { return message.channel.send("dayı nediyon") } const emoji = args [0]; if(!emoji) return message.reply('lütfen bir emoji seç') let customemoji = Discord.util.parseemoji(emoji); if(customemoji.id) { const link = `https://cdn.discordapp.com/emojis/${customemoji}.${ customemoji.animated ? "gif": "png" }` } const name = args.slice(1).join(" "); message.guild.emojis.create( `${Link}` `${name || `${customemoji.name}`}` ) const embed = new Messageembed() .setTitle("emoji added") .setcolor ("blue") .setdescription (`emoji has been added | name: ${name || `{customemoji.name}`} | preview: [click me](${link})`) return message.channel.send(embe } else { let CheckEmoji = parse(emoji, {assetType: "png"}); if(!checkemoji[0]) return message.reply ("only custom emojis my freindo") } } }