{"id":39627188,"url":"https://github.com/liy77/darkcord","last_synced_at":"2026-01-18T08:37:04.127Z","repository":{"id":65589222,"uuid":"593551445","full_name":"liy77/darkcord","owner":"liy77","description":"A NodeJS Library to interact with discord api","archived":false,"fork":false,"pushed_at":"2024-03-23T15:42:25.000Z","size":3848,"stargazers_count":26,"open_issues_count":0,"forks_count":4,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-11-20T22:03:42.306Z","etag":null,"topics":["api","discord","http","http-server","interactions","javascript","node","nodejs","typescript","ws","zlib"],"latest_commit_sha":null,"homepage":"https://darkcord.denkylabs.com/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/liy77.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE","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},"funding":{"github":["JustAWaifuHunter"],"patreon":null,"open_collective":null,"ko_fi":null,"tidelift":null,"community_bridge":null,"liberapay":null,"issuehunt":null,"otechie":null,"lfx_crowdfunding":null,"custom":null}},"created_at":"2023-01-26T09:40:04.000Z","updated_at":"2025-07-03T16:01:16.000Z","dependencies_parsed_at":"2024-03-23T16:48:41.886Z","dependency_job_id":null,"html_url":"https://github.com/liy77/darkcord","commit_stats":{"total_commits":231,"total_committers":3,"mean_commits":77.0,"dds":"0.32900432900432897","last_synced_commit":"bde8edddfa1c4c794b313ab268823d1b695126eb"},"previous_names":["liy77/darkcord"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/liy77/darkcord","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liy77%2Fdarkcord","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liy77%2Fdarkcord/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liy77%2Fdarkcord/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liy77%2Fdarkcord/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/liy77","download_url":"https://codeload.github.com/liy77/darkcord/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/liy77%2Fdarkcord/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28534148,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["api","discord","http","http-server","interactions","javascript","node","nodejs","typescript","ws","zlib"],"created_at":"2026-01-18T08:37:03.977Z","updated_at":"2026-01-18T08:37:04.110Z","avatar_url":"https://github.com/liy77.png","language":"TypeScript","funding_links":["https://github.com/sponsors/JustAWaifuHunter"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\t\u003cbr /\u003e\n\t\u003cimg src=\"https://i.imgur.com/ZqpK5wo.png\" title=\"darkcord\" width=\"546\" /\u003e\n    \u003cbr /\u003e\n    \t\u003cp\u003e\n\t\t\u003ca href=\"https://github.com/JustAWaifuHunter/darkcord/actions\"\u003e\u003cimg src=\"https://github.com/JustAWaifuHunter/darkcord/actions/workflows/tests.yml/badge.svg\" alt=\"Tests status\" /\u003e\u003c/a\u003e\n\t\t\u003ca href=\"https://www.npmjs.com/package/darkcord\"\u003e\u003cimg src=\"https://img.shields.io/npm/dm/darkcord\" alt=\"Npm Package\" /\u003e\u003c/a\u003e\n\t\t\u003ca href=\"https://www.codefactor.io/repository/github/justawaifuhunter/darkcord\"\u003e\u003cimg src=\"https://www.codefactor.io/repository/github/justawaifuhunter/darkcord/badge\" alt=\"CodeFactor\" /\u003e\u003c/a\u003e\n\t\u003c/p\u003e\n\u003c/div\u003e\n\n## About\n\nDarkcord is a [Node.js](https://nodejs.org) module to easily interact with\n[Discord API](https://discord.com/developers/docs/intro).\n\n## Installation\n\n**Node.js 16.9.0 or newer is required to installation.**\n\n```sh-session\nnpm install darkcord\nyarn add darkcord\npnpm add darkcord\n```\n\n## Example Usage\n\n### Gateway Example\n\n```js\nimport { Client, Constants } from \"darkcord\";\n\nconst GatewayIntentBits = Constants.GatewayIntentBits;\nconst ClientIntents =\n  GatewayIntentBits.Guilds |\n  GatewayIntentBits.GuildMessage |\n  GatewayIntentBits.MessageContent;\n\nconst client = new Client(\"token\", {\n  gateway: {\n    intents: ClientIntents,\n  },\n});\n\nclient.on(\"ready\", () =\u003e {\n  console.log(`Connected to Discord Gateway`);\n});\n\nclient.on(\"interactionCreate\", async (interaction) =\u003e {\n  if (interaction.isCommand()) {\n    await interaction.reply({ content: \"Pong!\" });\n  }\n});\n\nclient.connect();\n```\n\n### HTTP Interactions Example\n\n```js\nimport { InteractionClient } from \"darkcord\";\n\nconst client = new InteractionClient(\"public key\", {\n  rest: {\n    token: \"token\",\n  },\n  webserver: {\n    port: 8080,\n  },\n});\n\nclient.on(\"connect\", () =\u003e {\n  console.log(\"Listening on port 8080\");\n});\n\nclient.on(\"interactionCreate\", async (interaction) =\u003e {\n  if (interaction.isCommand()) {\n    await interaction.reply({ content: \"Pong!\" });\n  }\n});\n\nclient.connect();\n```\n\n### Voice\n\n#### Install voice packages\n\n```sh-session\nnpm install shoukaku\nyarn add shoukaku\npnpm add shoukaku\n\nnpm install kazagumo\nyarn add kazagumo\npnpm add kazagumo\n```\n\n##### Spotify\n\n```sh-session\nnpm install kazagumo-spotify\nyarn add kazagumo-spotify\npnpm add kazagumo-spotify\n```\n\n```js\nimport { Client } from \"darkcord\";\nimport { Lava } from \"@darkcord/lava\";\n\nconst Nodes = [\n  {\n    name: \"Node 1\",\n    url: \"localhost:2333\",\n    auth: \"youshallnotpass\",\n    secure: false,\n  },\n];\n\nconst voicePlugin = Lava({\n  nodes: Nodes,\n  defaultSearchEngine: \"youtube\",\n});\n\nconst client = new Client(\"token\", {\n  gateway: {\n    intents: YOUR_INTENTS,\n  },\n  plugins: [voicePlugin],\n});\n\nclient.lava.lavalink.on(\"ready\", (node) =\u003e\n  console.log(`Node ${node} is Ready`),\n);\n\nclient.lava.on(\"playerStart\", (player) =\u003e {\n  client.channels.cache.get(player.textId).createMessage({\n    content: `Now playing **${track.title}** by **${track.author}**`,\n  });\n});\n\nclient.on(\"ready\", () =\u003e console.log(\"Client is Ready\"));\n\nclient.connect();\n```\n\n## Useful Links\n\n- [Website](https://darkcord.denkylabs.com)\n- [GitHub](https://github.com/JustAWaifuHunter/darkcord)\n- [npm](https://npmjs.com/package/darkcord)\n- [Discord API Discord server](https://discord.gg/discord-api)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliy77%2Fdarkcord","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fliy77%2Fdarkcord","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fliy77%2Fdarkcord/lists"}