{"id":19860343,"url":"https://github.com/bes-js/discord-invite","last_synced_at":"2026-03-07T09:02:08.464Z","repository":{"id":164876840,"uuid":"640304443","full_name":"Bes-js/discord-invite","owner":"Bes-js","description":"a powerfull discord inviter tracker","archived":false,"fork":false,"pushed_at":"2024-01-31T06:46:09.000Z","size":96,"stargazers_count":10,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2026-01-22T09:25:53.959Z","etag":null,"topics":["discord","discord-bot","discord-bots","discord-invite","discord-invite-bot","discord-invite-manager","discord-js","discord-v12","discord-v13","discord-v13-bot","discord-v14","discord-v14-bot"],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/discord-invite","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Bes-js.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2023-05-13T16:37:11.000Z","updated_at":"2025-08-02T10:05:16.000Z","dependencies_parsed_at":"2024-01-26T20:56:59.713Z","dependency_job_id":"9217c01b-ed49-4fa9-b9db-c2f4bbff388e","html_url":"https://github.com/Bes-js/discord-invite","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Bes-js/discord-invite","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bes-js%2Fdiscord-invite","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bes-js%2Fdiscord-invite/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bes-js%2Fdiscord-invite/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bes-js%2Fdiscord-invite/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Bes-js","download_url":"https://codeload.github.com/Bes-js/discord-invite/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Bes-js%2Fdiscord-invite/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30210349,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-07T05:23:27.321Z","status":"ssl_error","status_checked_at":"2026-03-07T05:00:17.256Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["discord","discord-bot","discord-bots","discord-invite","discord-invite-bot","discord-invite-manager","discord-js","discord-v12","discord-v13","discord-v13-bot","discord-v14","discord-v14-bot"],"created_at":"2024-11-12T15:04:06.167Z","updated_at":"2026-03-07T09:02:08.427Z","avatar_url":"https://github.com/Bes-js.png","language":"JavaScript","funding_links":["https://www.buymeacoffee.com/beykant"],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e \u003ca href=\"#\"\u003e \u003cimg width=500 src=\"https://github.com/Bes-js/discord-invite/blob/main/discord-invite-logo.png?raw=true\"\u003e\u003c/a\u003e\u003c/p\u003e \n\u003cp align=\"center\"\u003e\u003ca href=\"https://nodei.co/npm/discord-invite/\"\u003e\u003cimg src=\"https://nodei.co/npm/discord-invite.png\"\u003e\u003c/a\u003e\u003c/p\u003e\n\u003cp align=\"center\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/discord-invite?style=for-the-badge\"\u003e \u003cimg src=\"https://img.shields.io/github/repo-size/Bes-js/discord-invite?style=for-the-badge\"\u003e \u003cimg src=\"https://img.shields.io/npm/l/discord-invite?style=for-the-badge\"\u003e \u003cimg src=\"https://img.shields.io/npm/dt/discord-invite?style=for-the-badge\"\u003e \u003cimg src=\"https://img.shields.io/github/contributors/Bes-js/discord-invite?style=for-the-badge\"\u003e \u003cimg src=\"https://img.shields.io/github/package-json/dependency-version/Bes-js/discord-invite/@discordjs/collection?style=for-the-badge\"\u003e \u003ca href=\"https://discord.gg/luppux\" target=\"_blank\"\u003e \u003cimg src=\"https://img.shields.io/github/package-json/dependency-version/Bes-js/discord-invite/five.db?style=for-the-badge\"\u003e \u003ca href=\"https://discord.gg/luppux\" target=\"_blank\"\u003e \u003cimg alt=\"Discord\" src=\"https://img.shields.io/badge/Support-Click%20here-7289d9?style=for-the-badge\u0026logo=discord\"\u003e \u003c/a\u003e\u003c/p\u003e\n\n# [discord-invite](https://discord.gg/luppux)\n\n\u003e **Track the invites in your servers to know who invited who and with which invite!**\n\n#\n### ❔ [Support](https://discord.gg/luppux)\n### 📂 [NPM](https://npmjs.com/discord-invite)\n### 📝 [Github](https://github.com/Bes-js/discord-invite)\n\n#\n# Installation\n\n```bash\nnpm i discord-invite\n```\n#\n# Quick Example\n \n**Example For CommonJS**\n```js\n/* Importing The Package */\nconst InviteManager = require('discord-invite');\nconst invClient = new InviteManager(client); // client = Discord.Client();\n\n```\n#\n**Events**\n```js\n/* Guild Member Join Event */\nclient.on(\"memberJoin\",async(member,inviter,invite) =\u003e { });\n\n/* Guild Member Leave Event */\nclient.on(\"memberLeave\",async(member,inviter,invite) =\u003e { });\n```\n#\n**Functions**\n```js\nconst InviteManager = require('discord-invite');\nconst { Client } = require(\"discord.js\");\nconst invClient = new InviteManager(client);\n\ninvClient.inviteAdd(guildId, user); /* \u003cnull\u003e */\ninvClient.inviteRemove(guildId, user); /* \u003cnull\u003e */\ninvClient.getMemberInvites(guildId, user); /* \u003cObject\u003e */\ninvClient.getGuildInvites(guildId, limit); /* \u003cArray\u003e - limit = min 1 / max 50 / default 10 */\n```\n#\n**Example Usage;**\n```js\nconst InviteManager = require('discord-invite');\nconst { Client } = require(\"discord.js\");\nconst invClient = new InviteManager(client); // client = Discord.Client();\n\n\n/* Join Event */\n\nclient.on(\"memberJoin\", async function(member, inviter, invite) {\nif(!inviter) {\n  console.log(`${member.user.username} joined the server, but I couldn't find out who was invited.`);\n} else if(member.id == inviter.id) {\n  console.log(`${member.user.username} Joined the server by his own invitation!`);\n}else if(member.guild.vanityURLCode == inviter) {\n  console.log(`${member.user.username} Joined Server Using Vanity URL!`);\n} else {\n  invClient.inviteAdd(member.guild.id, inviter);\n  console.log(`${member.user.tag} Joined the server! inviter ${inviter.username}`);\n};\n});\n\n/* Leave Event */\n\nclient.on(\"memberLeave\",async(member,inviter,invite) =\u003e { \nif(!inviter) {\n console.log(`${member.user.tag} Lefted the server, but I couldn't find out who was invited.`);\n} else if(member.id == inviter.id) {\n console.log(`${member.user.tag} Lefted the server by his own invitation!`);\n} else if(member.guild.vanityURLCode == inviter) {\n console.log(`${member.user.tag} Lefted Server Using Vanity URL!`);\n} else {\n invClient.inviteRemove(member.guild.id, inviter);\n console.log(`${member.user.tag} Lefted the server! inviter ${inviter.tag}`);\n};\n});\n\n\nclient.login(\"your secret bot token 👻\")\n```\n**[discord-invite](https://discord.gg/luppux) Also Supports TypeScript And EsModule 🥳!**\n\n#\n# Credits\n \n**Made by [FiveSoBes](https://github.com/Bes-js), [Relivent](https://github.com/Relivent) And [Luppux Development](https://github.com/Luppux)**\n\n\n# Contact \u0026 Support \u0026 Donate\n\u003ca href=\"https://www.buymeacoffee.com/beykant\" target=\"_blank\"\u003e\u003cimg src=\"https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png\" width=\"120px\" height=\"30px\" alt=\"Buy Me A Coffee\"\u003e\u003c/a\u003e\n\n[![Discord Banner](https://api.weblutions.com/discord/invite/luppux/)](https://discord.gg/luppux)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbes-js%2Fdiscord-invite","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbes-js%2Fdiscord-invite","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbes-js%2Fdiscord-invite/lists"}