mirror of
https://github.com/LouisRaverdy/DiscordRPC.git
synced 2025-10-23 00:14:29 +00:00
Compare commits
8 Commits
add-licens
...
Unreal-Eng
Author | SHA1 | Date | |
---|---|---|---|
![]() |
b64eabc1ae | ||
![]() |
f4a009ceb4 | ||
![]() |
419f2eb786 | ||
![]() |
9feb8b49df | ||
![]() |
e3965228a6 | ||
![]() |
a8e405111d | ||
![]() |
9f55233275 | ||
![]() |
a17b65824b |
@@ -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"
|
||||
]
|
||||
}
|
||||
|
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