mirror of
https://git.suyu.dev/suyu/discord-rpc.git
synced 2026-01-07 15:09:24 +01:00
add Discord_ClearPresence() (#104)
send-presence example updated - start a line with 'c' to toggle whether presence information is sent or not. Added ClearPresence to .cs bindings Added ClearPresence to UE4 blueprint class.
This commit is contained in:
parent
b0e31a9e25
commit
6a59509b7b
7 changed files with 55 additions and 18 deletions
|
|
@ -145,3 +145,8 @@ void UDiscordRpc::UpdatePresence()
|
|||
|
||||
Discord_UpdatePresence(&rp);
|
||||
}
|
||||
|
||||
void UDiscordRpc::ClearPresence()
|
||||
{
|
||||
Discord_ClearPresence();
|
||||
}
|
||||
|
|
|
|||
|
|
@ -108,6 +108,11 @@ public:
|
|||
Category = "Discord")
|
||||
void UpdatePresence();
|
||||
|
||||
UFUNCTION(BlueprintCallable,
|
||||
meta = (DisplayName = "Clear presence", Keywords = "Discord rpc"),
|
||||
Category = "Discord")
|
||||
void ClearPresence();
|
||||
|
||||
UPROPERTY(BlueprintReadOnly,
|
||||
meta = (DisplayName = "Is Discord connected", Keywords = "Discord rpc"),
|
||||
Category = "Discord")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue