1.0.2 • Published 6 years ago

topbots-api v1.0.2

Weekly downloads
-
License
ISC
Repository
-
Last release
6 years ago

Kullanım

Projeye Dahil Etme

var client = require("topbots-api");
var api = client("API-KEY");

Kullanıcı Çekme

api.getUser("15571596624278323")
.catch(console.log)
.then((user)=>{
    console.log(user);
    /*
        {
        userID: '155715966242783232',
        userName: 'TechNafo',
        userDiscriminator: '9210',
        userAvatar: 'https://cdn.discordapp.com/avatars/155715966242783232/c...'
        }
    */
});

Bot Çekme

api.getBot("155715966242783232")
.catch(console.log)
.then((bot)=>{
    console.log(bot);
    /*
        {
        botID: '155715966242783232',
        botName: 'TechNafo',
        botDiscriminator: '9210',
        botPrefix: '!!',
        botLib: 'discord.js',
        botDesc: 'Kısa açıklama',
        botGithub: 'github-url',
        botWebsite: 'website-url',
        botTags: [ 'Müzik', 'Eğlence' ],
        botDC: 'discord-server-url',
        botInvite: 'özel-yetki-kodu',
        botAvatar: 'https://cdn.discordapp.com/avatars/155715966242783232/c...',
        botVerif: false,
        botCert: false,
        botVote: 273,
        botOwner: '555395511847223296'
        }
    */
});

Kullanıcın Botlarını Çekme

api.getUserBots("609468086369910824")
.catch(console.log)
.then((bots)=>{
    console.log(bots);
    /*
        [
          {
                botID: '155715966242783232',
                botName: 'TechNafo',...
          },
          {
                botID: '155715966242783232',
                botName: 'TechNafo',...
          }
        ]
    */
});

Oy Kontrol Etme

api.getUserVoted("546303073962950657","155715966242783232")
.catch(console.log)
.then((vote)=>{
    console.log(vote);
    // false
});

Hatalar ve Anlamları

  • 200 : İşlem başarıyla gerçekleştirildiğini gösteririr
  • 500 : Girilen verilerden bitanesinin geçersiz olsuğunu gösterir
  • 205 : Girilen TOKEN 'in yanlış olduğunu gösterir

API'yi kullanırken herhangi bir sorunla karşılaşırsanız discord sunucumuza gelebilirsiniz.

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago