[PR #49] [MERGED] Implement Discord Activity(Rich Presence) #1429

Closed
opened 2026-03-03 19:07:00 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/PlayCover/PlayCover/pull/49
Author: @KhoraLee
Created: 7/16/2022
Status: Merged
Merged: 8/28/2022
Merged by: @Depal1

Base: 2.0-UIHead: feature/discord-activity


📝 Commits (1)

  • 6f2290f feat: Implement Discord Activity(Rich Presence)

📊 Changes

16 files changed (+409 additions, -0 deletions)

View changed files

📝 PlayCover.xcodeproj/project.pbxproj (+4 -0)
📝 PlayCover/AppInstaller/Utils/Entitlements.swift (+5 -0)
📝 PlayCover/Model/AppSettings.swift (+1 -0)
PlayCover/Model/DiscordActivity.swift (+16 -0)
📝 PlayCover/Views/AppSettingsView.swift (+61 -0)
📝 PlayCover/de.lproj/Localizable.strings (+33 -0)
📝 PlayCover/en.lproj/Localizable.strings (+12 -0)
📝 PlayCover/es.lproj/Localizable.strings (+34 -0)
📝 PlayCover/fr.lproj/Localizable.strings (+33 -0)
📝 PlayCover/id.lproj/Localizable.strings (+33 -0)
📝 PlayCover/it.lproj/Localizable.strings (+33 -0)
📝 PlayCover/ja.lproj/Localizable.strings (+33 -0)
📝 PlayCover/ko.lproj/Localizable.strings (+33 -0)
📝 PlayCover/ru.lproj/Localizable.strings (+33 -0)
📝 PlayCover/vi.lproj/Localizable.strings (+12 -0)
📝 PlayCover/zh-Hans.lproj/Localizable.strings (+33 -0)

📄 Description

This PR implement discord activity(also known as Rich Presence) feature.
When you open app from PlayCover, https://github.com/PlayCover/PlayTools/pull/2 will connect to discord client via IPC and update activity.

Default activity looks like below.

image Default Activity

Because discord does not allow us to change name of application, It will display name as PlayCover and show application name(from bundle) in detail field.

But user can set specific application name by creating their own application in Discord Developer Portal. Also user can change details, state string and image shown at left side.

By setting custom activity like below, user can deliver discord activity as their wish.

image 스크린샷 2022-07-16 오후 5 44 56image 스크린샷 2022-07-16 오후 5 45 15

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/PlayCover/PlayCover/pull/49 **Author:** [@KhoraLee](https://github.com/KhoraLee) **Created:** 7/16/2022 **Status:** ✅ Merged **Merged:** 8/28/2022 **Merged by:** [@Depal1](https://github.com/Depal1) **Base:** `2.0-UI` ← **Head:** `feature/discord-activity` --- ### 📝 Commits (1) - [`6f2290f`](https://github.com/PlayCover/PlayCover/commit/6f2290f800eec113cb26ad33d058159ab0fec6ed) feat: Implement Discord Activity(Rich Presence) ### 📊 Changes **16 files changed** (+409 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `PlayCover.xcodeproj/project.pbxproj` (+4 -0) 📝 `PlayCover/AppInstaller/Utils/Entitlements.swift` (+5 -0) 📝 `PlayCover/Model/AppSettings.swift` (+1 -0) ➕ `PlayCover/Model/DiscordActivity.swift` (+16 -0) 📝 `PlayCover/Views/AppSettingsView.swift` (+61 -0) 📝 `PlayCover/de.lproj/Localizable.strings` (+33 -0) 📝 `PlayCover/en.lproj/Localizable.strings` (+12 -0) 📝 `PlayCover/es.lproj/Localizable.strings` (+34 -0) 📝 `PlayCover/fr.lproj/Localizable.strings` (+33 -0) 📝 `PlayCover/id.lproj/Localizable.strings` (+33 -0) 📝 `PlayCover/it.lproj/Localizable.strings` (+33 -0) 📝 `PlayCover/ja.lproj/Localizable.strings` (+33 -0) 📝 `PlayCover/ko.lproj/Localizable.strings` (+33 -0) 📝 `PlayCover/ru.lproj/Localizable.strings` (+33 -0) 📝 `PlayCover/vi.lproj/Localizable.strings` (+12 -0) 📝 `PlayCover/zh-Hans.lproj/Localizable.strings` (+33 -0) </details> ### 📄 Description This PR implement discord activity(also known as Rich Presence) feature. When you open app from PlayCover, https://github.com/PlayCover/PlayTools/pull/2 will connect to discord client via IPC and update activity. Default activity looks like below. |<img width="201" alt="image" src="https://user-images.githubusercontent.com/18005062/179347083-a2a1ed2a-0e77-4526-9a8f-cb427391ae64.png">|<img width="292" alt="Default Activity" src="https://user-images.githubusercontent.com/18005062/179347038-11f0be03-730e-4cbf-8eaa-b4385c87da66.png">| |---|---| Because discord does not allow us to change name of application, It will display name as `PlayCover` and show application name(from bundle) in detail field. **But** user can set specific application name by creating their own application in [Discord Developer Portal](https://discord.com/developers/applications). Also user can change details, state string and image shown at left side. By setting custom activity like below, user can deliver discord activity as their wish. <img width="750" alt="image" src="https://user-images.githubusercontent.com/18005062/187042802-187ad178-7449-4c2a-b187-74f2745030d1.png">|<img width="233" alt="스크린샷 2022-07-16 오후 5 44 56" src="https://user-images.githubusercontent.com/18005062/179347739-4e6a5b30-d03f-4dfe-a497-bdca074c23cf.png"><img width="164" alt="image" src="https://user-images.githubusercontent.com/18005062/179347789-f27dc91a-76dd-49ad-ab78-dde6550a0f6c.png">|<img width="318" alt="스크린샷 2022-07-16 오후 5 45 15" src="https://user-images.githubusercontent.com/18005062/179347744-ac19e725-5e82-4fad-9ee4-deb84785b42a.png">| |---|---|---| --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 19:07:00 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/PlayCover#1429
No description provided.