Discord Gelişmiş Avatar Komutu

Katılım
8 Şub 2021
Konular
9
Mesajlar
20
Tepki puanı
22
Puanları
2,510
Elimden geldiğince düzgün ve hatasız yapmaya çalıştım


JavaScript:
const Discord = require("discord.js");

exports.run = async (client, message, args) => {
  const menü = new Discord.MessageSelectMenu()
    .setCustomId("select")
    .setPlaceholder("Bir Boyut Seç")
    .setMinValues(1)
    .setMaxValues(1)
    .addOptions([
      {
        label: "Silmek için tıkla!",
        value: "sil",
        emoji: "❌",
      },
      {
        label: "1024",
        value: "binyirmidört",
      },
      {
        label: "512",
        value: "beşyüzoniki",
      },
      {
        label: "256",
        value: "ikiyüzellialtı",
      },
      {
        label: "128",
        value: "yüzyirmisekiz",
      },
      {
        label: "64",
        value: "altmışdört",
      },
      {
        label: "32",
        value: "otuziki",
      },
      {
        label: "16",
        value: "onaltı",
      },
    ]);
  // -------------------------- EMBEDLER -------------------------- \\
  const member = message.mentions.members.first();
  if (member) {
    let userId = member.id;
    client.users
      .fetch(userId, { cache: false, force: true })
      .then((kullanici) => {
        const embed = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 1024 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed2 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 512 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed3 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 256 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed4 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 128 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed5 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 64 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed6 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 32 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed7 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 16 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        // -------------------------- EMBEDLER -------------------------- \\
        const row = new Discord.MessageActionRow().addComponents(menü);
        message.channel
          .send({ embeds: [embed], components: [row] })
          .then(async (msg) => {
            const filter = (x) => x.user.id === message.author.id;
            let collector = msg.createMessageComponentCollector({
              filter,
              time: 300000,
            });

            collector.on("collect", async (interaction) => {
              if (!interaction.isSelectMenu()) return;

              let choice = interaction.values[0];

              if (choice === "binyirmidört") {
                console.log(
                  "https://cdn.discordapp.com/avatars/" +
                    response.data.id +
                    "/" +
                    response.data.avatar
                );
                msg.edit({ embeds: [embed] });
              }
              if (choice === "beşyüzoniki") {
                console.log(
                  "https://cdn.discordapp.com/avatars/" +
                    response.data.id +
                    "/" +
                    response.data.avatar
                );

                msg.edit({ embeds: [embed2] });
              }
              if (choice === "ikiyüzellialtı") {
                msg.edit({ embeds: [embed3] });
              }
              if (choice === "yüzyirmisekiz") {
                msg.edit({ embeds: [embed4] });
              }
              if (choice === "altmışdört") {
                msg.edit({ embeds: [embed5] });
              }
              if (choice === "otuziki") {
                msg.edit({ embeds: [embed6] });
              }
              if (choice === "onaltı") {
                msg.edit({ embeds: [embed7] });
              }
              if (choice === "sil") {
                msg.delete();
              }

              interaction.deferUpdate();
            });

            collector.on("end", async (interaction) => {
              msg.edit({ content: "Button click Timeout" }).catch(() => {});
            });
          });
      })
      .catch(() => {});
  } else if (
    Number(args[0]) ||
    message.guild.members.cache.get(message.author.id)
  ) {
    client.users
      .fetch(args[0] || message.guild.members.cache.get(message.author.id), {
        cache: false,
        force: true,
      })
      .then((kullanici) => {
        const embed = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 1024 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed2 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 512 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed3 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 256 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed4 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 128 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed5 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 64 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed6 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 32 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed7 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 16 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        // -------------------------- EMBEDLER -------------------------- \\
        const row = new Discord.MessageActionRow().addComponents(menü);
        message.channel
          .send({ embeds: [embed], components: [row] })
          .then(async (msg) => {
            const filter = (x) => x.user.id === message.author.id;
            let collector = msg.createMessageComponentCollector({
              filter,
              time: 300000,
            });

            collector.on("collect", async (interaction) => {
              if (!interaction.isSelectMenu()) return;

              let choice = interaction.values[0];

              if (choice === "binyirmidört") {
                msg.edit({ embeds: [embed] });
              }
              if (choice === "beşyüzoniki") {
                msg.edit({ embeds: [embed2] });
              }
              if (choice === "ikiyüzellialtı") {
                msg.edit({ embeds: [embed3] });
              }
              if (choice === "yüzyirmisekiz") {
                msg.edit({ embeds: [embed4] });
              }
              if (choice === "altmışdört") {
                msg.edit({ embeds: [embed5] });
              }
              if (choice === "otuziki") {
                msg.edit({ embeds: [embed6] });
              }
              if (choice === "onaltı") {
                msg.edit({ embeds: [embed7] });
              }
              if (choice === "sil") {
                msg.delete();
              }

              interaction.deferUpdate();
            });

            collector.on("end", async (interaction) => {
              msg.edit({ content: "Button click Timeout" }).catch(() => {});
            });
          });
      })
      .catch(() => {});
  }
};

exports.conf = {
  aliases: [],
};

exports.help = {
  name: "avatar",
};
 

Ekli dosyalar

  • Adsız.png
    Adsız.png
    88 KB · Görünt.: 135
Katılım
8 Haz 2022
Konular
28
Mesajlar
41
Tepki puanı
46
Puanları
860
Ellerine sağlık çok güzel olmuş <3
 
Katılım
8 Haz 2022
Konular
28
Mesajlar
41
Tepki puanı
46
Puanları
860
Ama code çalışmıyo yada bende hata var
 
Katılım
8 Haz 2022
Konular
16
Mesajlar
81
Çözümler
1
Tepki puanı
432
Puanları
2,710
Elimden geldiğince düzgün ve hatasız yapmaya çalıştım


JavaScript:
const Discord = require("discord.js");

exports.run = async (client, message, args) => {
  const menü = new Discord.MessageSelectMenu()
    .setCustomId("select")
    .setPlaceholder("Bir Boyut Seç")
    .setMinValues(1)
    .setMaxValues(1)
    .addOptions([
      {
        label: "Silmek için tıkla!",
        value: "sil",
        emoji: "❌",
      },
      {
        label: "1024",
        value: "binyirmidört",
      },
      {
        label: "512",
        value: "beşyüzoniki",
      },
      {
        label: "256",
        value: "ikiyüzellialtı",
      },
      {
        label: "128",
        value: "yüzyirmisekiz",
      },
      {
        label: "64",
        value: "altmışdört",
      },
      {
        label: "32",
        value: "otuziki",
      },
      {
        label: "16",
        value: "onaltı",
      },
    ]);
  // -------------------------- EMBEDLER -------------------------- \\
  const member = message.mentions.members.first();
  if (member) {
    let userId = member.id;
    client.users
      .fetch(userId, { cache: false, force: true })
      .then((kullanici) => {
        const embed = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 1024 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed2 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 512 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed3 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 256 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed4 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 128 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed5 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 64 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed6 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 32 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed7 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 16 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        // -------------------------- EMBEDLER -------------------------- \\
        const row = new Discord.MessageActionRow().addComponents(menü);
        message.channel
          .send({ embeds: [embed], components: [row] })
          .then(async (msg) => {
            const filter = (x) => x.user.id === message.author.id;
            let collector = msg.createMessageComponentCollector({
              filter,
              time: 300000,
            });

            collector.on("collect", async (interaction) => {
              if (!interaction.isSelectMenu()) return;

              let choice = interaction.values[0];

              if (choice === "binyirmidört") {
                console.log(
                  "https://cdn.discordapp.com/avatars/" +
                    response.data.id +
                    "/" +
                    response.data.avatar
                );
                msg.edit({ embeds: [embed] });
              }
              if (choice === "beşyüzoniki") {
                console.log(
                  "https://cdn.discordapp.com/avatars/" +
                    response.data.id +
                    "/" +
                    response.data.avatar
                );

                msg.edit({ embeds: [embed2] });
              }
              if (choice === "ikiyüzellialtı") {
                msg.edit({ embeds: [embed3] });
              }
              if (choice === "yüzyirmisekiz") {
                msg.edit({ embeds: [embed4] });
              }
              if (choice === "altmışdört") {
                msg.edit({ embeds: [embed5] });
              }
              if (choice === "otuziki") {
                msg.edit({ embeds: [embed6] });
              }
              if (choice === "onaltı") {
                msg.edit({ embeds: [embed7] });
              }
              if (choice === "sil") {
                msg.delete();
              }

              interaction.deferUpdate();
            });

            collector.on("end", async (interaction) => {
              msg.edit({ content: "Button click Timeout" }).catch(() => {});
            });
          });
      })
      .catch(() => {});
  } else if (
    Number(args[0]) ||
    message.guild.members.cache.get(message.author.id)
  ) {
    client.users
      .fetch(args[0] || message.guild.members.cache.get(message.author.id), {
        cache: false,
        force: true,
      })
      .then((kullanici) => {
        const embed = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 1024 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed2 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 512 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed3 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 256 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed4 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 128 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed5 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 64 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed6 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 32 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed7 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 16 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        // -------------------------- EMBEDLER -------------------------- \\
        const row = new Discord.MessageActionRow().addComponents(menü);
        message.channel
          .send({ embeds: [embed], components: [row] })
          .then(async (msg) => {
            const filter = (x) => x.user.id === message.author.id;
            let collector = msg.createMessageComponentCollector({
              filter,
              time: 300000,
            });

            collector.on("collect", async (interaction) => {
              if (!interaction.isSelectMenu()) return;

              let choice = interaction.values[0];

              if (choice === "binyirmidört") {
                msg.edit({ embeds: [embed] });
              }
              if (choice === "beşyüzoniki") {
                msg.edit({ embeds: [embed2] });
              }
              if (choice === "ikiyüzellialtı") {
                msg.edit({ embeds: [embed3] });
              }
              if (choice === "yüzyirmisekiz") {
                msg.edit({ embeds: [embed4] });
              }
              if (choice === "altmışdört") {
                msg.edit({ embeds: [embed5] });
              }
              if (choice === "otuziki") {
                msg.edit({ embeds: [embed6] });
              }
              if (choice === "onaltı") {
                msg.edit({ embeds: [embed7] });
              }
              if (choice === "sil") {
                msg.delete();
              }

              interaction.deferUpdate();
            });

            collector.on("end", async (interaction) => {
              msg.edit({ content: "Button click Timeout" }).catch(() => {});
            });
          });
      })
      .catch(() => {});
  }
};

exports.conf = {
  aliases: [],
};
  
exports.help = {
  name: "avatar",
};
Eline sağlık bilgilendrici bi kodlama olmuş
 

Sperayz

Yönetici
Katılım
13 Mar 2022
Konular
70
Mesajlar
405
Tepki puanı
400
Puanları
4,561
Kod içeriği çok güzel olmuş emeklerine sağlık.
 
Katılım
2 Haz 2022
Konular
4
Mesajlar
12
Tepki puanı
10
Puanları
760
Elimden geldiğince düzgün ve hatasız yapmaya çalıştım


JavaScript:
const Discord = require("discord.js");

exports.run = async (client, message, args) => {
  const menü = new Discord.MessageSelectMenu()
    .setCustomId("select")
    .setPlaceholder("Bir Boyut Seç")
    .setMinValues(1)
    .setMaxValues(1)
    .addOptions([
      {
        label: "Silmek için tıkla!",
        value: "sil",
        emoji: "❌",
      },
      {
        label: "1024",
        value: "binyirmidört",
      },
      {
        label: "512",
        value: "beşyüzoniki",
      },
      {
        label: "256",
        value: "ikiyüzellialtı",
      },
      {
        label: "128",
        value: "yüzyirmisekiz",
      },
      {
        label: "64",
        value: "altmışdört",
      },
      {
        label: "32",
        value: "otuziki",
      },
      {
        label: "16",
        value: "onaltı",
      },
    ]);
  // -------------------------- EMBEDLER -------------------------- \\
  const member = message.mentions.members.first();
  if (member) {
    let userId = member.id;
    client.users
      .fetch(userId, { cache: false, force: true })
      .then((kullanici) => {
        const embed = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 1024 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed2 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 512 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed3 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 256 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed4 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 128 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed5 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 64 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed6 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 32 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed7 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 16 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        // -------------------------- EMBEDLER -------------------------- \\
        const row = new Discord.MessageActionRow().addComponents(menü);
        message.channel
          .send({ embeds: [embed], components: [row] })
          .then(async (msg) => {
            const filter = (x) => x.user.id === message.author.id;
            let collector = msg.createMessageComponentCollector({
              filter,
              time: 300000,
            });

            collector.on("collect", async (interaction) => {
              if (!interaction.isSelectMenu()) return;

              let choice = interaction.values[0];

              if (choice === "binyirmidört") {
                console.log(
                  "https://cdn.discordapp.com/avatars/" +
                    response.data.id +
                    "/" +
                    response.data.avatar
                );
                msg.edit({ embeds: [embed] });
              }
              if (choice === "beşyüzoniki") {
                console.log(
                  "https://cdn.discordapp.com/avatars/" +
                    response.data.id +
                    "/" +
                    response.data.avatar
                );

                msg.edit({ embeds: [embed2] });
              }
              if (choice === "ikiyüzellialtı") {
                msg.edit({ embeds: [embed3] });
              }
              if (choice === "yüzyirmisekiz") {
                msg.edit({ embeds: [embed4] });
              }
              if (choice === "altmışdört") {
                msg.edit({ embeds: [embed5] });
              }
              if (choice === "otuziki") {
                msg.edit({ embeds: [embed6] });
              }
              if (choice === "onaltı") {
                msg.edit({ embeds: [embed7] });
              }
              if (choice === "sil") {
                msg.delete();
              }

              interaction.deferUpdate();
            });

            collector.on("end", async (interaction) => {
              msg.edit({ content: "Button click Timeout" }).catch(() => {});
            });
          });
      })
      .catch(() => {});
  } else if (
    Number(args[0]) ||
    message.guild.members.cache.get(message.author.id)
  ) {
    client.users
      .fetch(args[0] || message.guild.members.cache.get(message.author.id), {
        cache: false,
        force: true,
      })
      .then((kullanici) => {
        const embed = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 1024 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed2 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 512 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed3 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 256 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed4 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 128 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed5 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 64 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed6 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 32 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        const embed7 = new Discord.MessageEmbed()
          .setAuthor({
            name: `${kullanici.username}'in Avatarı`,
            iconURL: client.user.avatarURL(),
          })
          .setImage(kullanici.avatarURL({ dynamic: true, size: 16 }))
          .setFooter({
            text: `Talep Eden ${message.author.username}`,
            iconURL: message.author.avatarURL({ dynamic: true }),
          })
          .setColor("BLURPLE");

        // -------------------------- EMBEDLER -------------------------- \\
        const row = new Discord.MessageActionRow().addComponents(menü);
        message.channel
          .send({ embeds: [embed], components: [row] })
          .then(async (msg) => {
            const filter = (x) => x.user.id === message.author.id;
            let collector = msg.createMessageComponentCollector({
              filter,
              time: 300000,
            });

            collector.on("collect", async (interaction) => {
              if (!interaction.isSelectMenu()) return;

              let choice = interaction.values[0];

              if (choice === "binyirmidört") {
                msg.edit({ embeds: [embed] });
              }
              if (choice === "beşyüzoniki") {
                msg.edit({ embeds: [embed2] });
              }
              if (choice === "ikiyüzellialtı") {
                msg.edit({ embeds: [embed3] });
              }
              if (choice === "yüzyirmisekiz") {
                msg.edit({ embeds: [embed4] });
              }
              if (choice === "altmışdört") {
                msg.edit({ embeds: [embed5] });
              }
              if (choice === "otuziki") {
                msg.edit({ embeds: [embed6] });
              }
              if (choice === "onaltı") {
                msg.edit({ embeds: [embed7] });
              }
              if (choice === "sil") {
                msg.delete();
              }

              interaction.deferUpdate();
            });

            collector.on("end", async (interaction) => {
              msg.edit({ content: "Button click Timeout" }).catch(() => {});
            });
          });
      })
      .catch(() => {});
  }
};

exports.conf = {
  aliases: [],
};

exports.help = {
  name: "avatar",
};
Baya güzel bir komut sanırsam sürüm V13 ondan dolayı kullanamıyorum :)
 
  • Beğen
Tepkiler: Rynix
Katılım
8 Şub 2021
Konular
9
Mesajlar
20
Tepki puanı
22
Puanları
2,510
Evet v13 sürümünde yaptım, ama istersen v12 yapabilirim.