Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
findcord
, Discord kullanıcı bilgilerini hızlı ve kolay bir şekilde almanıza olanak sağlayan bir Node.js paketidir.
Paketi projenize eklemek için npm veya yarn kullanabilirsiniz:
npm install findcord.js
veya
yarn add findcord.js
const Findcord = require('findcord.js');
const client = new Findcord('API_ANAHTARINIZ');
// Kullanıcı bilgilerini almak
client.fetch('Kullanıcı ID').then((response) => {
console.log(response);
});
// Kullanıcı kayıt sorgusu yapmak
client.query('Kullanıcı ID').then((response) => {
console.log(response);
});
//Örnek Kullanım
const Findcord = require('findcord.js');
const client = new Findcord('API_ANAHTARINIZ');
client.fetch('123456789012345678') // Belirli bir kullanıcının ID'si
.then((user) => {
console.log(`Kullanıcı Adı: ${user.username}`);
console.log(`Biyo: ${user.bio}`);
console.log(`Avatar URL: ${user.displayAvatarURL({ dynamic: true, size: 1024 })}`);
console.log(`Son Görülme: ${user.lastseen.message ? user.lastseen.message.content : 'Bilinmiyor'}`);
console.log(`Sunucularda Görevli Olduğu Roller:`);
user.staffs.forEach(staff => {
console.log(`- ${staff.name} sunucusunda görevli.`);
});
})
.catch(error => {
console.error('Hata oluştu:', error);
});
//Query kısmından Kullanıcı'nın Top Name, Age ve Gender Bilgisini Alabilirsiniz.
client.query('123456789012345678')
.then((query) => {
if (query.age > 18) {
console.log('Kullanıcı 18 yaşından büyük.');
} else {
console.log('Kullanıcı 18 yaşından küçük veya yaşı belirtilmemiş.');
}
console.log(`Tam Adı (Taglı): ${query.fullName({ isTagged: true })}`);
})
.catch(error => {
console.error('Hata oluştu:', error);
});
//Kullanıcıların Son Mesajlarını Analiz Etme
client.fetch('123456789012345678')
.then((user) => {
if (user.lastseen.message) {
console.log(`Son mesajın gönderildiği kanal: ${user.lastseen.message.channel.name}`);
console.log(`Son mesajın içeriği: ${user.lastseen.message.content}`);
} else {
console.log('Kullanıcının son mesajı bulunamadı.');
}
});
Bu proje MIT lisansı altında lisanslanmıştır. Detaylar için LICENSE dosyasına bakabilirsiniz.
FAQs
discord botları için tasarlanmış bir api
We found that findcord demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.