mirror of
https://github.com/LouisRaverdy/DiscordRPC.git
synced 2025-10-22 16:04:21 +00:00
Compare commits
8 Commits
Author | SHA1 | Date | |
---|---|---|---|
![]() |
f4a009ceb4 | ||
![]() |
419f2eb786 | ||
![]() |
9feb8b49df | ||
![]() |
e3965228a6 | ||
![]() |
a8e405111d | ||
![]() |
9f55233275 | ||
![]() |
a17b65824b | ||
![]() |
7e302aa747 |
@@ -5,14 +5,14 @@
|
||||
"FriendlyName": "Discord RPC",
|
||||
"Description": "Wrap the Discord RPC library.",
|
||||
"Category": "Messaging",
|
||||
"CreatedBy": "Chris Marsh <chris@discordapp.com> and updated by Louis R.",
|
||||
"CreatedByURL": "https://discordapp.com/",
|
||||
"CreatedBy": "Chris Marsh & Louis Raverdy",
|
||||
"CreatedByURL": "https://github.com/LouisRaverdy/DiscordPluginUE",
|
||||
"DocsURL": "https://github.com/LouisRaverdy/DiscordPluginUE",
|
||||
"MarketplaceURL": "",
|
||||
"SupportURL": "https://github.com/LouisRaverdy/DiscordPluginUE",
|
||||
"CanContainContent": true,
|
||||
"IsBetaVersion": true,
|
||||
"Installed": false,
|
||||
"IsBetaVersion": false,
|
||||
"Installed": true,
|
||||
"Modules": [
|
||||
{
|
||||
"Name": "DiscordRpc",
|
||||
@@ -21,7 +21,6 @@
|
||||
"WhitelistPlatforms" :
|
||||
[
|
||||
"Win64",
|
||||
"Linux",
|
||||
"Mac"
|
||||
]
|
||||
}
|
||||
|
21
LICENSE
Normal file
21
LICENSE
Normal file
@@ -0,0 +1,21 @@
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2022 Louis Raverdy
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
10
README.md
10
README.md
@@ -21,12 +21,18 @@ You need to create something like this in your **Game Instance** :
|
||||
|
||||

|
||||
|
||||
> **Note :** Make sure your Game Instance is defined as default in the Project Settings. (Project Settings -> Maps & Modes -> Game Instance Class)
|
||||
|
||||
For remove your presence when you exit the game you need to add this to your **Game Instance** :
|
||||
|
||||

|
||||
|
||||
## Nodes
|
||||
|
||||
For edit your presence in your game use this code (read the image next to it to understand the fields of the node) :
|
||||
To update your presence for your game, you can use this code (read the image next to it to understand the fields of the node) :
|
||||
|
||||

|
||||
|
||||
> **Note :** For use image in rich presence you need to upload them on your Discord developer game page (Rich Presence -> Art Assets)
|
||||
> **Note :** To use image in rich presence you need to upload them on your Discord developer game page (Rich Presence -> Art Assets)
|
||||
|
||||
### **More advanced documentation coming soon.**
|
||||
|
@@ -14,13 +14,13 @@ USTRUCT(BlueprintType)
|
||||
struct FDiscordUserData {
|
||||
GENERATED_USTRUCT_BODY()
|
||||
|
||||
UPROPERTY(BlueprintReadOnly)
|
||||
UPROPERTY(BlueprintReadOnly, Category = "Discord")
|
||||
FString userId;
|
||||
UPROPERTY(BlueprintReadOnly)
|
||||
UPROPERTY(BlueprintReadOnly, Category = "Discord")
|
||||
FString username;
|
||||
UPROPERTY(BlueprintReadOnly)
|
||||
UPROPERTY(BlueprintReadOnly, Category = "Discord")
|
||||
FString discriminator;
|
||||
UPROPERTY(BlueprintReadOnly)
|
||||
UPROPERTY(BlueprintReadOnly, Category = "Discord")
|
||||
FString avatar;
|
||||
};
|
||||
|
||||
@@ -53,36 +53,36 @@ USTRUCT(BlueprintType)
|
||||
struct FDiscordRichPresence {
|
||||
GENERATED_USTRUCT_BODY()
|
||||
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
UPROPERTY(BlueprintReadWrite, Category = "Discord")
|
||||
FString state;
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
UPROPERTY(BlueprintReadWrite, Category = "Discord")
|
||||
FString details;
|
||||
// todo, timestamps are 64bit, does that even matter?
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
UPROPERTY(BlueprintReadWrite, Category = "Discord")
|
||||
int startTimestamp = 0;
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
UPROPERTY(BlueprintReadWrite, Category = "Discord")
|
||||
int endTimestamp = 0;
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
UPROPERTY(BlueprintReadWrite, Category = "Discord")
|
||||
FString largeImageKey;
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
UPROPERTY(BlueprintReadWrite, Category = "Discord")
|
||||
FString largeImageText;
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
UPROPERTY(BlueprintReadWrite, Category = "Discord")
|
||||
FString smallImageKey;
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
UPROPERTY(BlueprintReadWrite, Category = "Discord")
|
||||
FString smallImageText;
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
UPROPERTY(BlueprintReadWrite, Category = "Discord")
|
||||
FString partyId;
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
UPROPERTY(BlueprintReadWrite, Category = "Discord")
|
||||
int partySize = 0;
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
UPROPERTY(BlueprintReadWrite, Category = "Discord")
|
||||
int partyMax = 0;
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
UPROPERTY(BlueprintReadWrite, Category = "Discord")
|
||||
FString matchSecret;
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
UPROPERTY(BlueprintReadWrite, Category = "Discord")
|
||||
FString joinSecret;
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
UPROPERTY(BlueprintReadWrite, Category = "Discord")
|
||||
FString spectateSecret;
|
||||
UPROPERTY(BlueprintReadWrite)
|
||||
UPROPERTY(BlueprintReadWrite, Category = "Discord")
|
||||
bool instance = false;
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user