{"id":15292747,"url":"https://github.com/furnyr/dissonity","last_synced_at":"2025-08-23T13:19:17.695Z","repository":{"id":231590669,"uuid":"782092374","full_name":"Furnyr/Dissonity","owner":"Furnyr","description":"Open-source C# Unity implementation of the Discord Embedded App SDK","archived":false,"fork":false,"pushed_at":"2025-07-01T23:44:24.000Z","size":4690,"stargazers_count":53,"open_issues_count":8,"forks_count":10,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-08-09T04:41:50.639Z","etag":null,"topics":["csharp","discord","discord-activity","embedded-app-sdk","typescript","unity","webgl"],"latest_commit_sha":null,"homepage":"https://dissonity.dev/","language":"C#","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Furnyr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2024-04-04T16:11:28.000Z","updated_at":"2025-07-30T16:14:11.000Z","dependencies_parsed_at":"2025-07-11T10:42:16.485Z","dependency_job_id":"16a3c50b-fdc0-44b7-b236-c122f887afea","html_url":"https://github.com/Furnyr/Dissonity","commit_stats":null,"previous_names":["furnyr/unity-embedded-app-sdk"],"tags_count":16,"template":false,"template_full_name":null,"purl":"pkg:github/Furnyr/Dissonity","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Furnyr%2FDissonity","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Furnyr%2FDissonity/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Furnyr%2FDissonity/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Furnyr%2FDissonity/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Furnyr","download_url":"https://codeload.github.com/Furnyr/Dissonity/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Furnyr%2FDissonity/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":271749047,"owners_count":24814114,"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","status":"online","status_checked_at":"2025-08-23T02:00:09.327Z","response_time":69,"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":["csharp","discord","discord-activity","embedded-app-sdk","typescript","unity","webgl"],"created_at":"2024-09-30T16:26:28.926Z","updated_at":"2025-08-23T13:19:17.663Z","avatar_url":"https://github.com/Furnyr.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n\u003e [!NOTE]\n\u003e Looking for version 1? See the [v1 branch](https://github.com/Furnyr/Dissonity/tree/v1).\n\n\u003cdiv align=\"center\"\u003e\n    \u003ca href=\"https://dissonity.dev\" alt=\"a\"\u003e\u003cimg src=\"https://i.imgur.com/AmGkPpE.png\" width=\"650\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n\u003cdiv align=\"center\"\u003e\n    \u003cimg src=\"https://img.shields.io/badge/dynamic/json?url=https%3A%2F%2Fraw.githubusercontent.com%2FFurnyr%2FDissonity%2Frefs%2Fheads%2Fv2%2Funity%2Fpackage.json\u0026query=version\u0026prefix=v\u0026label=version\"\u003e\n    \u003ca href=\"https://github.com/Furnyr/Dissonity/actions\"\u003e\u003cimg src=\"https://img.shields.io/github/actions/workflow/status/Furnyr/Dissonity/unity.yaml\"\u003e\u003c/a\u003e\n\u003c/div\u003e\n\n\n## About\n\n[Dissonity](https://github.com/Furnyr/Dissonity/) is a Unity SDK that allows you to easily make Discord activities!\n\nIt is a C# implementation of the [Embedded App SDK](https://discord.com/developers/docs/developer-tools/embedded-app-sdk).\n\n## Example\n\n```cs\nusing UnityEngine;\nusing Dissonity.Models;\nusing Dissonity.Models.Builders;\nusing static Dissonity.Api;\n\npublic class MyScript : MonoBehaviour\n{\n    async void Start()\n    {\n        // Initialize Dissonity\n        await Initialize();\n\n        // Update activity\n        await Commands.SetActivity(new ActivityBuilder\n        {\n            Type = ActivityType.Playing,\n            Details = \"Selecting game mode\",\n            State = \"In a Group\"\n        });\n\n        // Get all the participants in the activity\n        Participant[] participants = await Commands.GetInstanceConnectedParticipants();\n\n        foreach (Participant participant in participants)\n        {\n            Debug.Log($\"{participant.DisplayName} is playing!\");\n        }\n\n        // Subscribe to speaking start\n        await Subscribe.SpeakingStart(ChannelId, (data) =\u003e\n        {\n            Debug.Log($\"User with id {data.UserId} is speaking!\");\n        });\n    }\n}\n```\n\n## Installation\n\n\u003e You can also install Dissonity via [OpenUPM](https://openupm.com/packages/com.furnyr.dissonity/) or with each `.unitypackage` file found in the [Releases](https://github.com/Furnyr/Dissonity/releases) tab.\n\n1. Create a new Unity project (Unity 2021.3 or later, Unity 6 recommended)\n2. Open the package manager and install the package from this git URL: `https://github.com/Furnyr/Dissonity.git?path=/unity#v2`\n3. Use the pop-up dialog to select a configuration file\n4. Set the build platform to Web / WebGL\n5. Player settings \u003e Resolution and Presentation \u003e Set the WebGL template to Dissonity\n\nDissonity is now installed! But you still need to configure a few things:\n\n## Configuration\n\n1. Open the configuration file in Assets/Dissonity/DissonityConfiguration.cs\n2. Set your app id in `\u003cSdkConfiguration\u003e.ClientId` (find it or create a Discord app [here](https://discord.com/developers/applications))\n\nUp and running! If you want to test your activity within Unity:\n\n## Testing\n\n1. Right-click the hierarchy \u003e Dissonity \u003e Discord Mock\n\nIf you run the game in a scene where there's a `@DiscordMock` object, you will be able to test the activity within Unity, simulating Discord.\n\nIf there isn't a mock object in the scene, Dissonity will automatically create one.\n\n## Production\n\nDissonity helps in the process to make the game, but you will still need to host the backend that will serve the activity to Discord and handle authentication.\n\nIf you're not sure how to continue, read the documentation.\n\n\u003e [!TIP]\n\u003e If you are also using a framework that provides Discord functionality, you should read [Third-party support](http://dissonity.dev/guides/v2/third-party-support).\n\n\n## Documentation\n\n- **Activities**: https://discord.com/developers/docs/activities/overview\n- **Dissonity**: https://dissonity.dev/\n\n## Contact\n\n- General contact: [`contact@dissonity.dev`](mailto:contact@dissonity.dev)\n- Security issues: [`security@dissonity.dev`](mailto:security@dissonity.dev)\n- Discord: `nyrrren`\n\n## License\n\nLicensed under the [Apache License, Version 2.0](LICENSE).\n\nThis project includes code from the [Discord Embedded App SDK](https://github.com/discord/embedded-app-sdk), licensed under the [MIT License](MIT_LICENSE.md).\n\n## Disclaimer\n\nThis project is not affiliated, endorsed, or sponsored by Discord Inc. or Unity Technologies.\n\nThe Discord Developer Terms of Service, Discord Developer Policy and Unity Terms of Service apply to you and the applications you develop utilizing this SDK.","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffurnyr%2Fdissonity","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffurnyr%2Fdissonity","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffurnyr%2Fdissonity/lists"}