{"id":25683196,"url":"https://github.com/danilppzz/discord-decode-method","last_synced_at":"2026-05-12T23:06:09.706Z","repository":{"id":209547733,"uuid":"724356103","full_name":"danilppzz/Discord-Decode-Method","owner":"danilppzz","description":"This is the method that discord use in the permissions when u get an invite link with scopes and bot id.","archived":false,"fork":false,"pushed_at":"2024-01-27T17:56:06.000Z","size":685,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-24T16:49:03.264Z","etag":null,"topics":["discord","javascript","method"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/danilppzz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2023-11-27T23:02:18.000Z","updated_at":"2023-11-27T23:57:51.000Z","dependencies_parsed_at":"2023-12-25T17:16:08.320Z","dependency_job_id":"20e83648-0be4-4c26-8b27-9513c85d699a","html_url":"https://github.com/danilppzz/Discord-Decode-Method","commit_stats":null,"previous_names":["soizx/decodevalue","danilppzz/discord-decode-method"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/danilppzz/Discord-Decode-Method","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danilppzz%2FDiscord-Decode-Method","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danilppzz%2FDiscord-Decode-Method/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danilppzz%2FDiscord-Decode-Method/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danilppzz%2FDiscord-Decode-Method/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/danilppzz","download_url":"https://codeload.github.com/danilppzz/Discord-Decode-Method/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/danilppzz%2FDiscord-Decode-Method/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32960346,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-12T09:19:52.626Z","status":"ssl_error","status_checked_at":"2026-05-12T09:17:33.438Z","response_time":102,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: 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","javascript","method"],"created_at":"2025-02-24T16:41:47.394Z","updated_at":"2026-05-12T23:06:09.692Z","avatar_url":"https://github.com/danilppzz.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Discord Decode Method\nFirst you need to clone this repo from the command or download the zip package.\n```git\ngit clone https://github.com/danilppzz/DecodeValue\n```\nThen you need to open the ` script.js ` file and write the perms that u want to have.\n```js\nconst Intents = {\n    WEB_HOOK: 1,\n    ADMINISTRATOR: 2,\n    READ_EVENTS: 4,\n    CONNECT: 8,\n    MANAGE_SERVER: 16,\n    SEND_MESSAGE: 32,\n};\n```\nFor make your perm you have to type first the name of the perm and then the number\n```js\nconst Intents = {  \n    EXAMPLE_PERM: [1, 2, 4, 8, 16, 32, 64, 128]\n};\n```\nThis code defines a set of permission using a JavaScript object. Each permission is assigned a numerical value that is a power of 2. The decodeIntents function takes an integer representing a combination of these permissions and decodes it into an array of corresponding permission names in uppercase. If the input value is 0 or null, it returns a default value.\n\n\u003e [!IMPORTANT]\n\u003e I'm not sure if the method that discord use is the same, but I think it is right\n\n# How to use the EndPoint\nYou need to open your browser or your testing tool ` Postman ` and copy paste this url and replace the ` botID ` and ` permissions ` with values that you want. Defualt ` scope ` in discord is bot for make a Discord Bot.\n```\nhttp://localhost:3000/invite/[botID]?permissions=[permissions]\u0026scope=[scope]\n```\n```java\nbotID=5892\npermissions=8\nscope=\"bot\"\n```\nThis will return you the server id info and the intents.\nIntents work by adding the numbers of the flags.\n```java\n[ WEB_HOOK: 1 ] + [ READ_EVENTS: 4 ] = 5\n[ ADMINISTRATOR: 2 ] + [ SEND_MESSAGE: 32 ] + [ READ_EVENTS: 4 ] = 38\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanilppzz%2Fdiscord-decode-method","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdanilppzz%2Fdiscord-decode-method","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdanilppzz%2Fdiscord-decode-method/lists"}