Discord Gelişmiş Avatar Komutu

Oyuncular Şehri
Katılım
8 Şub 2021
Konular
6
Mesajlar
15
Tepki puanı
15
Puanları
1,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.: 24

Sayko

Deneme Yazar
Katılım
8 Haz 2022
Konular
16
Mesajlar
26
Tepki puanı
21
Puanları
160
Ellerine sağlık çok güzel olmuş <3
 

Sayko

Deneme Yazar
Katılım
8 Haz 2022
Konular
16
Mesajlar
26
Tepki puanı
21
Puanları
160
Ama code çalışmıyo yada bende hata var
 

1VatanUgruna

Deneme Yazar
Elmas Üye
Katılım
8 Haz 2022
Konular
12
Mesajlar
60
Çözümler
1
Tepki puanı
433
Puanları
1,360
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ş
 

schwarznacht

Yazar Şefi
Katılım
13 Mar 2022
Konular
63
Mesajlar
260
Tepki puanı
183
Puanları
2,610
Kod içeriği çok güzel olmuş emeklerine sağlık.
 
Katılım
2 Haz 2022
Konular
4
Mesajlar
10
Tepki puanı
7
Puanları
160
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
6
Mesajlar
15
Tepki puanı
15
Puanları
1,510
Evet v13 sürümünde yaptım, ama istersen v12 yapabilirim.