mirror of
https://github.com/PlayCover/PlayCover.git
synced 2026-04-26 08:15:56 +03:00
[PR #49] [MERGED] Implement Discord Activity(Rich Presence) #1429
Labels
No labels
UI
app-support
bug
bug
documentation
duplicate
enhancement
game-support
good first issue
help wanted / caution
inactive
invalid
macos-beta
pull-request
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/PlayCover#1429
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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-UI← Head:feature/discord-activity📝 Commits (1)
6f2290ffeat: 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.
Because discord does not allow us to change name of application, It will display name as
PlayCoverand 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.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.