{"id":19953663,"url":"https://github.com/mopsgamer/discord-env-types","last_synced_at":"2026-03-06T10:04:46.715Z","repository":{"id":196830151,"uuid":"697229843","full_name":"Mopsgamer/discord-env-types","owner":"Mopsgamer","description":"Type definitions for Discord environment.","archived":false,"fork":false,"pushed_at":"2024-06-21T12:29:03.000Z","size":264,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-08-17T11:28:56.070Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":null,"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/Mopsgamer.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null}},"created_at":"2023-09-27T10:08:03.000Z","updated_at":"2024-06-30T18:37:34.000Z","dependencies_parsed_at":null,"dependency_job_id":"948def5d-4a5b-4997-a4bf-8589dee351b9","html_url":"https://github.com/Mopsgamer/discord-env-types","commit_stats":null,"previous_names":["mopsgamer/discord-env-types"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/Mopsgamer/discord-env-types","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mopsgamer%2Fdiscord-env-types","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mopsgamer%2Fdiscord-env-types/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mopsgamer%2Fdiscord-env-types/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mopsgamer%2Fdiscord-env-types/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Mopsgamer","download_url":"https://codeload.github.com/Mopsgamer/discord-env-types/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Mopsgamer%2Fdiscord-env-types/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30171656,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-06T07:56:45.623Z","status":"ssl_error","status_checked_at":"2026-03-06T07:55:55.621Z","response_time":250,"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":[],"created_at":"2024-11-13T01:17:13.340Z","updated_at":"2026-03-06T10:04:41.701Z","avatar_url":"https://github.com/Mopsgamer.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"# discord-env-types\n\n\u003cp\u003e\n\u003ca aria-label=\"NPM version\" href=\"https://www.npmjs.com/package/discord-env-types\"\u003e\n\u003cimg alt=\"\" src=\"https://img.shields.io/npm/v/discord-env-types.svg?style=for-the-badge\u0026labelColor=0869B8\"\u003e\u003c/a\u003e\n\u003ca aria-label=\"License\" href=\"#\"\u003e\n\u003cimg alt=\"\" src=\"https://img.shields.io/npm/l/discord-env-types.svg?style=for-the-badge\u0026labelColor=579805\"\u003e\u003c/a\u003e\n\u003c/p\u003e\nThis package adds Discord environment types.\n\n\u003e [!WARNING]  \n\u003e The Discord environment is subject to change and some declarations may lie.\n\n## Installation\n\n```npm\nnpm install --save-dev discord-env-types\n```\n\n## Usage\n\nIf you want to declare global Discord environment variables:\n\n```ts\nimport type DET from \"discord-env-types\";\n\nDiscordNative.clipboard.copy(\"test\");\n```\n\n```ts\nimport type DET from \"discord-env-types\";\n\nconst PickedNative: Pick\u003cDET.DiscordNative, \"clipboard\" | \"settings\"\u003e = ...;\nPickedNative.clipboard.copy(\"test\");\n\nDiscordNative.clipboard.copy(\"test\");\n```\n\nIf you want to use types only, without global declarations:\n\n```ts\nimport type DET from \"discord-env-types/lib\";\n\nconst PickedNative: Pick\u003cDET.DiscordNative, \"clipboard\" | \"settings\"\u003e = ...;\nPickedNative.clipboard.copy(\"test\");\n\nDiscordNative.clipboard.copy(\"test\"); // Error: Cannot find name 'DiscordNative'.\n```\n\n## Declarations\n\ndiscord-env-types declares the types of the following variables:\n\n- `__BILLING_STANDALONE__`\n- `__DISCORD_WINDOW_ID`\n- `__localeData__`\n- `__OVERLAY__`\n- `__SECRET_EMOTION__`\n- `__SENTRY__`\n- `__sentry_instrumentation_handlers__`\n- `__SENTRY_IPC__`\n- `__timingFunction`\n- `_`\n- `_ws`\n- `DiscordErrors`\n- `DiscordNative`\n- `DiscordSentry`\n- `DiscordVideo`\n- `GLOBAL_ENV`\n- `webpackChunkdiscord_app`\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmopsgamer%2Fdiscord-env-types","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmopsgamer%2Fdiscord-env-types","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmopsgamer%2Fdiscord-env-types/lists"}