Resolve Discord invite codes to server information.
invitepassing, 0.3swidgetpassing, 0.4sapplicationpassing, 0.3stemplatepassing, 0.3s/v1/social-media:discord/invite/:code5m cache1 paramchecking key…// npm i zpi-sdk
import { ZpiClient } from "zpi-sdk";
const client = new ZpiClient({ apiKey: "zpi_xxxxxxxxxxxxxxxxxxxxxxxx" });
const data = await client.run("social-media:discord", "invite", {
"code": "discord-api"
});
console.log(data);curl -X GET "https://api.zpi.web.id/v1/social-media:discord/invite/discord-api" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"/v1/social-media:discord/invite/:codeGet information about a Discord invite.codestringrequiredin pathcurl -X GET "https://api.zpi.web.id/v1/social-media:discord/invite/discord-api" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"ok": true,
"code": "discord-api",
"type": 0,
"guild": {
"id": "81384788765712384",
"icon": "https://cdn.discordapp.com/icons/81384788765712384/a363a84e969bcbe1353eb2fdfb2e50e6.png",
"name": "Discord API",
"banner": "https://cdn.discordapp.com/banners/81384788765712384/eb9ca6e176964bd43ee5b098dbbf3a78.png",
"splash": "",
"features": [
"INVITE_SPLASH",
"AUTO_MODERATION",
"TIERLESS_BOOSTING_SYSTEM_MESSAGE",
"VANITY_URL",
"PREVIEW_ENABLED",
"TIERLESS_BOOSTING",
"WELCOME_SCREEN_ENABLED",
"COMMUNITY_EXP_LARGE_UNGATED",
"SOUNDBOARD",
"THREADS_ENABLED",
"NEW_THREAD_PERMISSIONS",
"MEMBER_VERIFICATION_GATE_ENABLED",
"NEWS",
"COMMUNITY",
"CHANNEL_ICON_EMOJIS_GENERATED",
"VIP_REGIONS",
"AGE_VERIFICATION_LARGE_GUILD"
],
"nsfwLevel": 0,
"description": "",
"premiumTier": 1,
"vanityUrlCode": "discord-api",
"verificationLevel": 3
},
"channel": {
"id": "381898062269775883",
"name": "rules",
"type": 0
},
"inviter": null,
"expiresAt": null,
"memberCount": 47730,
"presenceCount": 14673
}/v1/social-media:discord/widgetWidget publik sebuah server Discord, kalau pemiliknya mengaktifkannya.guildstringoptionalcodecodestringoptionalguildcurl -X GET "https://api.zpi.web.id/v1/social-media:discord/widget?guild=81384788765712384&code=discord-api" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"ok": true,
"guild": {
"id": "81384788765712384",
"name": "Discord API"
},
"onlineSample": [
{
"status": "dnd",
"username": "4...",
"avatarUrl": "https://cdn.discordapp.com/widget-avatars/tryYienQ-9REzcwu6n6KFYE5kJCnyVNK9cguhkmHw-8/I5I_Xn4xRCCyjGQHJPuL6lTr51gZ-juTso7mGtyb9IpVDcsJRWt6VOSOSHb4JWMd3lH4L7g_vQk1uOYNIu3hvWGIIvb8GD…"
},
{
"status": "dnd",
"username": "a...",
"avatarUrl": "https://cdn.discordapp.com/widget-avatars/GSh1NQULMqdbthPBxf82mO7Lq29hlIcuM2OQtwMkk9o/dYNZwjuvmsZtEmBhiGqzXNY4gq_2tqODANlvB-HPlB-YARdm8YqjZrWHy66T9nTEiNPFQr-QJj8JzokVcrOKsdn9xYx7oZ…"
},
{
"status": "online",
"username": "a...",
"avatarUrl": "https://cdn.discordapp.com/widget-avatars/TojzuRaxslDRpPA7TjOZYXEOMSpmt_Aj_ztJAZjhjYM/91rOW31cUbQ6E9tIUhe7i8M-sg23MsXS5S4IHkQsVYZSxtP_RxmP23P_fO4KrzuDFCNHXSfAr1JDC6tI87Tq6db03jDlT_…"
}
],
"presenceCount": 13206,
"voiceChannels": [
{
"id": "81384788862181376",
"name": "General",
"position": 0
},
{
"id": "131937933270712320",
"name": "Music",
"position": 1
},
{
"id": "178478247103823872",
"name": "Music2",
"position": 2
}
],
"onlineSampleCount": 100,
"onlineSampleIsCapped": true
}/v1/social-media:discord/application/:idMetadata publik sebuah aplikasi atau bot Discord.idstringrequiredin pathcurl -X GET "https://api.zpi.web.id/v1/social-media:discord/application/235148962103951360" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"id": "235148962103951360",
"ok": true,
"icon": "https://cdn.discordapp.com/app-icons/235148962103951360/ed3dac3b6e7a851df781632a4295fcb9.png",
"name": "carl-bot",
"tags": [
"Automod",
"Moderation",
"Reaction Roles",
"logging",
"role management"
],
"guildId": "186980582863929345",
"verified": true,
"botPublic": true,
"monetized": true,
"description": "Multipurpose bot packed with features\nWebsite: https://carl.gg\nDocs: https://docs.carl.gg\nSupport: https://discord.gg/S2ZkBTnd8X\nPremium: https://carl.gg/get-premium",
"discoverable": true,
"installParams": {
"scopes": [
"applications.commands",
"bot"
],
"permissions": "573242775563510"
},
"privacyPolicyUrl": "https://botlabs.gg/privacy-policy",
"termsOfServiceUrl": "https://botlabs.gg/terms-of-use",
"botRequiresCodeGrant": false
}/v1/social-media:discord/template/:codeDetail sebuah template server Discord.codestringrequiredin pathcurl -X GET "https://api.zpi.web.id/v1/social-media:discord/template/2TffvPucqHkN" \
-H "x-api-key: zpi_xxxxxxxxxxxxxxxxxxxxxxxx"{
"ok": true,
"url": "https://discord.new/2TffvPucqHkN",
"code": "2TffvPucqHkN",
"name": "Blank Server",
"guild": {
"name": "Blank Server",
"roleCount": 1,
"channelCount": 4,
"verificationLevel": 0
},
"roles": [
{
"name": "@everyone",
"color": 0,
"hoist": false,
"mentionable": false
}
],
"creator": {
"id": "268473310986240001",
"avatar": "https://cdn.discordapp.com/avatars/268473310986240001/f749bb0cbeeb26ef21eca719337d20f1.png",
"username": "discordapp"
},
"channels": [
{
"name": "Text Channels",
"type": 4,
"position": 0
},
{
"name": "general",
"type": 0,
"position": 0
},
{
"name": "Voice Channels",
"type": 4,
"position": 0
},
{
"name": "General",
"type": 2,
"position": 0
}
],
"createdAt": "2020-04-17T20:59:35+00:00",
"updatedAt": "2020-04-17T20:59:35+00:00",
"usageCount": 47751,
"sourceGuildId": "700811170902179862"
}