discord lookup api
1.0.0
Discord Lookup API는 주어진 ID를 사용하여 사용자에 대한 기본 정보를받을 수있는 API입니다.
API가 반환합니다.
API에는 내장 CORS 지원이 있으므로 걱정할 필요가 없습니다.
데이터는 3 시간 동안 캐시됩니다 (또는 Redis 서버가 다시 시작될 때까지)
여기에서 API에 자유롭게 액세스 할 수 있습니다
또는 vercel을 통해 자신의 API 인스턴스를 배포 할 수 있습니다.
참고이 버전에는 Vercel 제한으로 인해 캐싱이 없습니다. API를 사용하려면 불화 봇 토큰이 있어야합니다. 당신은 여기서 하나를 얻을 수 있습니다
현재 링크에 ID를 지정해야합니다 (적절한 웹 사이트는 현재 개발 중입니다).
https://discordlookup.mesalytic.moe/v1/user/604779545018761237
{
"id" : " 604779545018761237 " ,
"tag" : " mesa#0101 " ,
"badges" : [
" HOUSE_BRAVERY " ,
" EARLY_VERIFIED_BOT_DEVELOPER " ,
" ACTIVE_DEVELOPER "
],
"avatar" : {
"id" : " 02a161dcd6d590fbce550d6872468cc7 " ,
"link" : " https://cdn.discordapp.com/avatars/604779545018761237/02a161dcd6d590fbce550d6872468cc7 " ,
"is_animated" : false
},
"banner" : {
"id" : " a_b987e17d75cc964905b04a575636c60e " ,
"link" : " https://cdn.discordapp.com/banners/604779545018761237/a_b987e17d75cc964905b04a575636c60e " ,
"is_animated" : true ,
"color" : " #385d6d "
}
}
https://discordlookup.mesalytic.moe/v1/application/437190817195753472
{
"id" : " 437190817195753472 " ,
"name" : " Helixus " ,
"icon" : " https://cdn.discordapp.com/avatars/437190817195753472/9d7e869d626efd6d0e61ac9e552e6fb6 " ,
"description" : " Helixus aims to do what would normally need multiple bots, and does it all by itself ! n You can play Music (from some sources), log what happens in your server, send some memes, and much more! nn Invite it now to see the full capacity of Helixus! n **SUPPORT**: https://discord.gg/pBATVfHg " ,
"summary" : " " ,
"type" : null ,
"hook" : true ,
"guild_id" : " 418433461817180180 " ,
"bot_public" : true ,
"bot_require_code_grant" : false ,
"terms_of_service_url" : " https://gist.github.com/mesalytic/c132c786b47c86599021237f0303b952 " ,
"privacy_policy_url" : " https://gist.github.com/mesalytic/598c963ddfa4562ec7c867574ed7cedf " ,
"install_params" :{
"scopes" :[ " bot " , " applications.commands " ],
"permissions" : " 1926057290966 "
},
"verify_key" : " 82449bea917a3e2b4a407254cc548e5d35de9cb8a888d692d65f31471ddc5fa0 " ,
"flags" :{
"bits" : 10764288 ,
"detailed" :[ " GATEWAY_GUILD_MEMBERS " , " GATEWAY_MESSAGE_CONTENT " , " APPLICATION_COMMAND_BADGE " ]
},
"tags" :[ " image " , " logging " , " meme " , " mini-game " , " music " ]
}
https://discordlookup.mesalytic.moe/v1/guild/81384788765712384
요청 ID에 링크 된 길드 에는 서버 위젯 및/또는 서버 검색이 활성화되어 있어야합니다. 그렇지 않으면 오류가 발생합니다.
{
"id" : " 81384788765712384 " ,
"name" : " Discord API " ,
"instant_invite" : null ,
"presence_count" : 18759
}
참고 Redis 서버가 설치되어 있어야하고 사용할 준비가되어 있어야합니다.
npm i
)node server.js
)를 시작합니다.