Kod DBL(Top.gg) İstatistik V12

harryzzers#7700
Katılım
19 Eyl 2021
Mesajlar
1,522
Tepkime puanı
424
Şehir
Yurtdışı
Top.gg istatistik komutu.
- Earth Development



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

exports.run = async (client, message) => {

  let embed = new Discord.MessageEmbed()

    .setColor("RANDOM")

    .setTitle(":partner: Dbl İstatistik :partner:")

   .setImage("https://top.gg/api/widget/765207268408033322.png")

  const fetch = require("node-fetch");

    const kanal = message.channel.id;

    const mesaj = embed

    const butonmesaj = "Oy Linki"

    fetch(`https://discord.com/api/v9/channels/${kanal}/messages`, {

        method: "POST",

        body: JSON.stringify({"embed":mesaj,

            "components":

            [

              {

                "type": 1,

                "components": [

                    {

                        "type": 2,

                        "label": butonmesaj,

                        "style": 5,

                        "url": "link link link"

                    }

]

            }

            ],

                             }),

        headers: {

            "Authorization": `Bot ${client.token}`,

            "Content-Type": "application/json"

        }

    })

};

exports.conf = {

  enabled: true,

  guildOnly: true,

  aliases: ["topgg", "dbl"],

  permLevel: 0

};

exports.help = {

  name: "dbli",

  description: "Botun top.gg istatistiğini gösterir",

  usage: "dblistatistik"

};
 
  • Beğen
Tepkiler: EnesKurt

Konuyu 0 kişi okuyor. (0 kayıtlı üye ve 0 ziyaretçi)

  • Bilgi