{"id":24370352,"url":"https://github.com/maximking1/jarvis","last_synced_at":"2025-07-01T01:34:10.105Z","repository":{"id":52610748,"uuid":"343517465","full_name":"MaximKing1/Jarvis","owner":"MaximKing1","description":"Jarvis.djs is a JavaScript discord lib used for connecting with the discord api.","archived":false,"fork":false,"pushed_at":"2024-07-18T06:29:13.000Z","size":133,"stargazers_count":3,"open_issues_count":1,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-06-15T16:17:03.613Z","etag":null,"topics":["discord","discord-api","discord-api-wrapper"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/MaximKing1.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null},"funding":{"github":null}},"created_at":"2021-03-01T18:30:23.000Z","updated_at":"2024-11-03T21:53:28.000Z","dependencies_parsed_at":"2024-07-18T08:19:06.494Z","dependency_job_id":null,"html_url":"https://github.com/MaximKing1/Jarvis","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/MaximKing1/Jarvis","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaximKing1%2FJarvis","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaximKing1%2FJarvis/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaximKing1%2FJarvis/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaximKing1%2FJarvis/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MaximKing1","download_url":"https://codeload.github.com/MaximKing1/Jarvis/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MaximKing1%2FJarvis/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":262879337,"owners_count":23378603,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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-api","discord-api-wrapper"],"created_at":"2025-01-19T04:24:18.668Z","updated_at":"2025-07-01T01:34:10.084Z","avatar_url":"https://github.com/MaximKing1.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n \u003cimg width=\"100px\" src=\"\" align=\"center\" alt=\"Jarvis\" /\u003e\n \u003ch2 align=\"center\"\u003eJarvis\u003c/h2\u003e\n \u003cp align=\"center\"\u003eJavascript Discord Lib For Interacting With The Discord API!\u003c/p\u003e\n\u003c/p\u003e\n  \u003cp align=\"center\"\u003e\n  \u003ca href=\"https://snyk.io/test/github/Strider-Bot/BLWebhooks/badge.svg\"\u003e\n      \u003cimg alt=\"Issues\" src=\"https://snyk.io/test/github/Strider-Bot/BLWebhooks/badge.svg\" /\u003e\n    \u003c/a\u003e\n    \u003ca href=\"https://github.com/MaximKing1/Jarvis/issues\"\u003e\n      \u003cimg alt=\"Issues\" src=\"https://img.shields.io/github/issues/MaximKing1/Jarvis?color=0088ff\" /\u003e\n    \u003c/a\u003e\n\u003ca href=\"https://app.fossa.com/projects/git%2Bgithub.com%2FJarvisDJS%2FJarvis?ref=badge_shield\" alt=\"FOSSA Status\"\u003e\u003cimg src=\"https://app.fossa.com/api/projects/git%2Bgithub.com%2FJarvisDJS%2FJarvis.svg?type=shield\"/\u003e\u003c/a\u003e\n    \u003ca href=\"https://github.com/MaximKing1/Jarvis/pulls\"\u003e\n      \u003cimg alt=\"GitHub pull requests\" src=\"https://img.shields.io/github/issues-pr/MaximKing1/Jarvis?color=0088ff\" /\u003e\n    \u003c/a\u003e\n    \u003cbr /\u003e\n    \u003cbr /\u003e \n  \u003c/p\u003e\n\n[![NPM](https://nodei.co/npm/jarvis.djs.png?downloads=true\u0026downloadRank=true\u0026stars=true)](https://nodei.co/npm/jarvis.djs/)\n\n## This Is Not Fully Working! Please Do Not Donwload and Complain Because This Is a Work In Progress! PR Welcomed!\n\n# Table of Contents\n\n- [Support Server](https://discord.gg/NybFm5ct)\n- [Requirements](#requirements)\n- [Installation](#installation)\n- [Usage](#usage)\n- [Events](#events)\n- [Discord Gateway](#discord-gateway)\n\n## Requirements\n\n- Node.JS =\u003e 14.0.0\n \n# Installation\n\n## NPM (recommended)\n\n```js\n# Stable\nnpm i --save jarvis.djs\n\n# Nightly Builds\nnpm i --save jarvis.djs@nightly\n```\n\n## Yarn\n\n```js\n# Stable\nyarn add jarvis.djs\n\n# Nightly Builds\nyarn add jarvis.djs@nightly\n```\n\n# Usage\n\n### Import the lib via ES6 or commonJS modules\n\n```js\n// ES6\nimport * as discord from \"jarvis.djs\";\n// or commonJS\nconst discord = require(\"jarvis.djs\");\n```\n\n### Client\n\n```js\nconst discord = require('jarvis.djs');\nconst client = new discord.Client({\n    guild_subscriptions: false,\n    intents: 32509,  // https://ziad87.net/intents/\n    presence: \"online\",\n    status: {\n        text: \"Status Text\",\n        type: 0 // Types: 0 = Playing, 1 = Streaming, 2 = Listening\n    },\n    ws: {\n      large_threshold: 250,\n      compress: false\n    }\n});\n\n// Add This Before Anything Else\nclient.login(\"TOKEN\");\n\nclient.on(\"ready\", async() =\u003e {\n    console.log(\"Ready!\")\n});\n\nclient.on(\"message\", async (message) =\u003e {\n    console.log(message.content);\n});\n```\n\n### Client Methods\n\n**Destroy Client:**\n```js\nclient.destroy(); // Will destroy the client along with the discord connection\n```\n\n**Ready Timestamp:**\n```js\nclient.readyAt();\n```\n\n**Manual REST Request:**\n```js\nclient.manualREST(\"https://discordapp.com/api/v8/gateway\", \"GET\", {\n    'Content-Type': 'application/json',\n    'authorization': 'Bot \u003cTOKEN\u003e'\n});\n```\n\n**Fetch Guild:**\n```js\nclient.fetchGuild(\"ID\").then(res =\u003e {\n    console.log(res);\n});\n```\n\n**Create Guild:**\n```js\nclient.createGuild(name, region, icon).then(res =\u003e {\n    console.log(res);\n});\n```\n\n# Events\n\n**Ready Event:**\n```js\nready - When Client Is Ready\nwarn - Warnings\nerror - When There Is An Error\n```\n\n# Discord Gateway\nThis is the connection between the client and discord api servers.\n\n\n## License\n[![FOSSA Status](https://app.fossa.com/api/projects/git%2Bgithub.com%2FJarvisDJS%2FJarvis.svg?type=large)](https://app.fossa.com/projects/git%2Bgithub.com%2FJarvisDJS%2FJarvis?ref=badge_large)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximking1%2Fjarvis","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmaximking1%2Fjarvis","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmaximking1%2Fjarvis/lists"}